Replacing failed disk, ZFS different sector counts

srs

Active Member
Nov 5, 2018
3
0
41
43
I've installed proxmox with ZFS using two 120gb SSDs mirrored.

One of the SSDs failed, and I want to replace it with another 120gb SSD, but it seems that each manufacturer has slightly different sector counts, so the replace fails!

My sda has 234455040 while sdb has 234441648 sectors.

Is there a way to work around this?
 
If the new disks is smaller then the previous one, you will not be able to replace it.
You would have to shrink zpool, which is currently not possible.

If you want and can tolerate some downtime you could create a new zpool on new disk and then send the data from old zpool over to new pool destroy the old one and add old disk to new zpools vdev as a mirror device.

Obviously create backups first.

Or you could reinstall.

I personally would just buy anotherSSD disk of proper size.
 

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!