Migration of PBS to another server

dignus

Renowned Member
Feb 12, 2009
181
22
83
I currently have an 8 drive PBS server. But we're getting to the max of what it can take. So we need to move to a larger chassis. The data is on ZFS disks, so that part is taken care off.

Two questions:
- How I do migrate all other PBS settings/logs etc.
- How to import the existing dataset? Is it as simple as zpool import to a dir and add a datastore?
 
Is your root also on a ZFS installation? You could use zfs send/zfs receive to migrate to another zfs dataset. Another option would be to create a full disk image of your root partition via dd and write that to the new root disk. Or even move the whole root disk to the new system as well?

If you import the zfs pool, datasets should be mounted with their respective mountpoints. Depending on which zfs import services are active on the system, your pools should get imported by either the cache file, scan or via a dedicated systemd import service.

Another option would be to start out with a fresh install and only sync the datastore contents via a sync job or recreate the pre-existing datastore once the zpool is imported and the datasets mounted.

Edit: fixed typos
 
Last edited:
  • Like
Reactions: news
Root is not on ZFS. Target disks are smaller than source. But I can work with rsync around that.

If I do a fresh install and physically move the datastore to the new machine, will all settings be restored magically?
 
If I do a fresh install and physically move the datastore to the new machine, will all settings be restored magically?
No, most of the settings are configured in /etc/proxmox-backup/ and task logs, ecc. are not transferred then. So you might want to re-create based on the settings in /etc/proxmox-backup/