ZFS Raid 1 Auto Expand Not Working

proxmon

New Member
Jul 31, 2014
8
0
1
Proxmox installed on ZFS Mirror which ran out of space. I replaced the drives 1 at a time using this method:
Code:
sgdisk -R /dev/sdnew /dev/sdold
sgdisk -G /dev/sdnew
zpool replace rpool sdold1 sdnew1
grub-install /dev/sdNew
update-grub
update-initramfs -u

Old:
2x 240GB SSDs

New:
2x 400GB SSDs

Resilver was successful and both SSDs are bootable. However, rpool does not use the additional space which is to be expected. Autoexpand should take care of this:
Code:
zpool set autoexpand=on rpool
zpool scrub rpool

However, rpool size is still at 232GB. How can I expand rpool to use the new space?
 
Have you actually resized your GPT before replacing the disk in your pool? I don't see it in your commands. Please check each disk.

I sometimes had to remove and readd the disk to the pool to trigger the expansion.