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.
 

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!