When installing Proxmox VE 6.2 I deliberately omitted half the drive space of a pair of mirrored 1 TB SSDs, so that I now have only ~500 GB.
Now I would like to resize these to fill the complete 1 TB.
I have tried something along these lines:
I did that for each drive in turn, but afterwards both were still the same size. I tried booting into Gparted, but it does not have the ability to resize ZFS volumes.
I have considered detaching one at a time, deleting the partitions, and then letting ZFS resilver each drive in turn, but I'm not sure it will work and I'm hoping for something simpler and less time consuming.
Any suggestions appreciated.
Code:
root@hydrox:~# lshw -class disk -short
H/W path Device Class Description
==============================================================
/0/100/1/0/0.0.0 /dev/sda disk 12TB WDC WD120EMFZ-11
/0/100/1/0/0.1.0 /dev/sdb disk 12TB WDC WD120EMFZ-11
/0/100/1/0/0.2.0 /dev/sdc disk 12TB WDC WD120EMFZ-11
/0/100/1/0/0.3.0 /dev/sdd disk 12TB WDC WD120EMFZ-11
/0/100/1/0/0.4.0 /dev/sde disk 12TB WDC WD120EMFZ-11
/0/100/1/0/0.5.0 /dev/sdf disk 12TB WDC WD120EMFZ-11
/0/100/1/0/0.6.0 /dev/sdg disk 12TB WDC WD120EMFZ-11
/0/100/1/0/0.7.0 /dev/sdh disk 12TB WDC WD120EMFZ-11
/0/100/1/0/0.8.0 /dev/sdi disk 1TB SanDisk SDSSDH3 << Boot 1
/0/100/1/0/0.9.0 /dev/sdj disk 1TB SanDisk SDSSDH3 << Boot 2
/0/100/1a/1/1/2/0.0.0 /dev/sdk disk 62GB Extreme
/0/100/1a/1/1/2/0.0.0/0 /dev/sdk disk 62GB
root@hydrox:~#
Code:
errors: No known data errors
pool: rpool
state: ONLINE
scan: resilvered 2.30M in 0 days 00:00:00 with 0 errors on Tue Jul 7 18:50:59 2020
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-SanDisk_SDSSDH3_1T00_200723A00769-part3 ONLINE 0 0 0
ata-SanDisk_SDSSDH3_1T00_195008A007C5-part3 ONLINE 0 0 0
Now I would like to resize these to fill the complete 1 TB.
I have tried something along these lines:
Code:
# Set autoexpand on for relevant zpool
zpool set autoexpand=on rpool
# Take one drive off line
zpool offline rpool ata-SanDisk_SDSSDH3_1T00_195008A007C5-part3
# Bring back online, with -e for expand
zpool online -e rpool ata-SanDisk_SDSSDH3_1T00_200723A00769-part3
I did that for each drive in turn, but afterwards both were still the same size. I tried booting into Gparted, but it does not have the ability to resize ZFS volumes.
I have considered detaching one at a time, deleting the partitions, and then letting ZFS resilver each drive in turn, but I'm not sure it will work and I'm hoping for something simpler and less time consuming.
Any suggestions appreciated.
Last edited: