PVE 9 Single Server => New Hardware. Is there a hardware migration guide?

hive

Member
Mar 6, 2021
5
0
21
59
I need to migrate a single PVE9 server to new hardware. I have a mirrored NVMe zfs boot drive and 2 x U.2 data drives + spinning rust drives for VMs and Data.
What would be the simplest way to migrate this systems to 2 x new NVMe drives (same size but new, faster w/higher TBW specs)?
I tried just using dd to clone the NVMe drives to the new ones, and putting them in the new server, but the system did not come up. It failed on importing the rpool, and trying to force an import (pool import pool -f) results in "cannot import 'rpool': I/O error. Destroy and re-create the pool from a backup source.
I have PBS running, so I could just restore the VMs, but there is the PVE datacenter config I was hoping to migrate vs. recreate on the new server.

I've hunted around this forum and elsewhere on the inter webs and have not found a set of steps that work for me (maybe operator error?).

Does anyone have a set of steps they can point me to that have worked to migrate to new hardware, and have maintained as much of the PVE config as possible?
 
My guess is that doing a fresh install of PVE on the new drives and reimporting the config and guests would be a better approach, but you could also replace one NVMe at a time by failing and replacing each drive sequentially. You'd need to copy the partition table, let the ZFS mirror rebuild, and reconfigure the bootloader, but it should work.