Migrating boot disks on a server

Currently I have a server that has a root pool in ZFS raid 1 on two 2.5" SSD disks, which are also the boot disks for the OS. I am going to be installing a pair of PCI-E NVME cards, and I would like to migrate my existing installation to these two disks.

The best way I can see of doing this would be to just use dd to duplicate the existing disks to the new disks (they have the same capacity), but I'm not sure if there's something else that would need to be done, like updating a config file somewhere to use the new device names instead of the old ones.

I also feel like there might be a problem with the device names within the zfs pool, so I was thinking that it might be necessary to replace the disks in the pool after using dd. So the overall process would be something like this:

1. Use dd to duplicate both disks
2. Wipe the pool from the zfs partition on the new disks
3. Replace one of the old disks with the new one in the zfs root pool
4. After resilvering, do it again for the other one
5. Reboot and set the server's boot devices to be the new disks

Is this process basically correct? Is there anything else that needs to be done? Should this be done in a completely different way?
 
Back
Top