I have FreeBSD 12.2 on a Lenovo PC that has only one 3.5'' drive bay. The drive is a 500GB Seagate.
According to smarctl, it is in danger of failing. I'm taking this indication at face value, and I want to
replace the drive with an identical new one. The procedure I've thought of is:
1. Connect the new drive (I have an enclosure for it) to one of the USB 3.0 ports.
It becomes known as /dev/da0.
2. Copy the GPT partition table of the old drive to the new one:
gpart backup ada0 | gpart restore -F da0
3. Use ZFS's replace facility:
zpool replace zroot ada0p3 da0p3
4. Add boot block:
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
My question is: if I now unmount and remove the USB drive, shut down the system, and replace the old internal Seagate with the new one, will the system boot? Will there be a problem having to do with "ada0" vs. "da0"?
(Or any other issue that you can think of?)
Thanks for any help.
According to smarctl, it is in danger of failing. I'm taking this indication at face value, and I want to
replace the drive with an identical new one. The procedure I've thought of is:
1. Connect the new drive (I have an enclosure for it) to one of the USB 3.0 ports.
It becomes known as /dev/da0.
2. Copy the GPT partition table of the old drive to the new one:
gpart backup ada0 | gpart restore -F da0
3. Use ZFS's replace facility:
zpool replace zroot ada0p3 da0p3
4. Add boot block:
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
My question is: if I now unmount and remove the USB drive, shut down the system, and replace the old internal Seagate with the new one, will the system boot? Will there be a problem having to do with "ada0" vs. "da0"?
(Or any other issue that you can think of?)
Thanks for any help.