ZFS drive replace missing boot partition

mwjburrell

New Member
Apr 25, 2023
4
0
1
Hi All,

I have a mirror ZFS pool that has 2x 8TB WD which has also the boot partition on. I wanted to upgrade the drive to 2x 10TB Seagate Ironwolf. My server has hot-swap bays so I was able to add the 10Tb into the existing pool to resilver. All was working fine.

Once I rebooted, I couldn't boot into proxmox as there is no boot partition on the ZFS pool. I removed the 1x 10TB, added back the 8TB drive, and was able to boot off into proxmox and move all the VM off it to another node.

So currently my Zpool is running in a degraded state with only one 10 TB running

So reading up about this in https://forum.proxmox.com/threads/moving-boot-disk-to-new-disks.105543/ I should have done this.

1. Put in new disk
2. sgdisk /dev/disk/by-id/existingdrive -R /dev/disk/by-id/newdrive
3. sgdisk -G /dev/disk/by-id/newdrive
4. zpool attach rpool /dev/disk/by-id/newdrive-part3 and wait for resilver to complete
5. pve-efiboot-tool format /dev/sdX2 (sdX being the new drive)
6. pve-efiboot-tool init /dev/sdX2 (sdX being the new drive)
7. pve-efiboot-tool refresh

Now my question is the boot partition on the 8TB can I copy it over somehow to 10TB drive? Once this is done and add a new 10TB and follow these steps to copy the boot partition from the 10TB to the new 10TB in the ZFS pool?

Sorry it long winded but learning as I go along.
 
Now my question is the boot partition on the 8TB can I copy it over somehow to 10TB drive? Once this is done and add a new 10TB and follow these steps to copy the boot partition from the 10TB to the new 10TB in the ZFS pool?
Yes. And in case you got free disk slots it would be even better to add the 10TB HDD to the two 8TB disks to form a tripple-disk mirror. Then replace one of the 8TB disks with the second 10TB disk and finally remove the last 8TB disk. That way you would still have redundancy while replacing disks.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!