proxmox 4 plan for drive failure zfs raid 10

dragonslayr

Renowned Member
Mar 5, 2015
53
2
73
proxmox 4 plan for drive failure zfs raid 10
Ok, I get the zfs commands for replacing a drive. However, during testing, I yanked out a drive:

did zpool online sda2
zpool rpool scrub

However, the sda2 caught my eye..

Upon running fdisk, I notice two of the drives have a boot partition.
on the old mdadm I would have then done this.

##################
Add drive back:
format to match (First drive is good drive, you get NO WARNING) Make sure you get it right!
sfdisk -d /dev/sda | sfdisk /dev/sda
grub-install /dev/sda
##################

So I guess my question is, how to put the boot partition back and whether to do it before or after the replacement command of zfs?
 
The Proxmox installer writes grub boot blocks to all the drives in the pool.

Do your zfs drive replacement first, and then re-run the grub installer 'dpkg-reconfigure grub-pc' remembering to select all the drives you want boot blocks on.
 
The Proxmox installer writes grub boot blocks to all the drives in the pool.

Do your zfs drive replacement first, and then re-run the grub installer 'dpkg-reconfigure grub-pc' remembering to select all the drives you want boot blocks on.

hmm, am a bit confused then, the proxmox installer created the raid 10, but two drives have a boot partition like this

/dev/sda1 34 2047 2014 1007K BIOS boot
/dev/sda2 2048 3907012749 3907010702 1.8T Solaris /usr & Apple ZFS
/dev/sda9 3907012750 3907029134 16385 8M Solaris reserved 1

And two drives do not, like this
/dev/sdd1 2048 3907012607 3907010560 1.8T Solaris /usr & Apple ZFS
/dev/sdd9 3907012608 3907028991 16384 8M Solaris reserved 1
 

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!