Finally finished replacing my 8x 6 TB drives with 8x 12 TB SAS drives.
Resilvering for all 8 drives finally finished.
All of the drives were replaced using the zpool replace pool /dev/disk/by-id/old_drive /dev/disk/by-id/new_drive
After the resilvering was done, below is the procedure that I used to expand the ZFS pool:
This is what zpool list shows:
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
pool 189T 163T 26.2T - 41.9T 35% 86% 1.00x ONLINE -
zpool set autoexpand=on pool didn’t change the output of zpool list.
In googling the topic, someone recommend the following sequence of commands (and the respective outputs are also copied-and-pasted here as well):
root@host# partprobe
root@host# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
pool 189T 163T 26.2T - - 35% 86% 1.00x ONLINE -
root@host# zpool get autoexpand pool
NAME PROPERTY VALUE SOURCE
pool autoexpand on local
root@host# zpool set autoexpand=off pool
root@host# zpool online -e pool raidz2-2
cannot expand raidz2-2: operation not supported on this type of pool
root@host# zpool online -e pool /dev/disk/by-id/scsi-35000cca27826e008
root@host# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
pool 231T 163T 68.1T - - 29% 70% 1.00x ONLINE -
So it looks like that the ZFS pool expansion was successful.
Now, my question pertains, how do I expand the dataset?
I don’t have a quota nor a reservation set on the dataset, but the ALLOC field from zpool list is still showing the pre-expansion value.
root@host# zfs get quota,reservation pool
NAME PROPERTY VALUE SOURCE
pool quota none default
pool reservation none default
I tried Googling “zfs expand dataset” to no avail, so if someone has any ideas about this – your help is greatly appreciated.
Thank you.