ZFS - Replacing Drive

dthompson

Well-Known Member
Nov 23, 2011
146
15
58
Canada
www.digitaltransitions.ca
I know this isn't proxmox per say, but I have a server with a mirrored ZFS drive. One of the drives has started to fail.
If I swap the drive and then resilver it, is there any extra steps I need to do once this is done? I'm currently on the latest release of PVE 6.X.

Do I need to update grub or anything else like that once I add in the replacement drive so that if the other drive fails, or in case of a reboot, the node is still able to boot properly?

Sorry, I've never had to swap out a failed drive for ZFS before so just want to be sure before I rebuild.

Thank you.
 
Hey, thanks for the reply! That did the trick for me on what I was looking for.

I have another question that maybe you might have the answer to. Can I keep the same disk /dev/sda and format the zpool partition sda2 and then try and resolver before I remove and replace the entire disk?

If so, would this just be fdisk /dev/sda and remove the sda2 partition and then format it for zfs and re-add?
 
The ZFS partition is usually the first (in case that disk isn't bootable) or the third partition (in case its bootble).

I don't see the point formating and readding that disk. You said its starting to fail, so it should be replaced as fast as possible.
 

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!