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.