zpool Reporting Incorrect Disk Capacities

Old Garth

Cadet
Joined
Mar 16, 2024
Messages
2
I recently replaced all the disks in an existing pool in TrueNAS Scale (Cobia) in order to expand capacity (offline, replace, resilver, repeat). For some reason, the pool is not auto expanding, and although I think I've found some hint, I do not understand why.

Previously, all disks were 8TB nominal capacity, and all of the new disks are 18TB nominal capacity. TrueNAS Scale (the middleware) is not reporting any errors, and shows all disks at their 18TB capacity. I don't have quotas set.

Code:
zpool get autoexpand
shows the following:
Screenshot 2024-03-17 at 12.28.07 PM.png

but
Code:
zpool list -v tank
shows:
Screenshot 2024-03-17 at 12.22.39 PM.png


Note that the size is still listed at 7.28T (8TB nominal). These drives have been replaced and this should read 16.4T, consistent with the other drive capacities. Somehow, I think this is linked to the pool not auto expanding, but I'm not sure how to get ZFS to "update" this table. I have tried
Code:
zpool online -e tank <NAME>
to no avail.

Any suggestions on how I get this pool to update and/or auto expand?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

Old Garth

Cadet
Joined
Mar 16, 2024
Messages
2
Thanks, that worked.

For anyone who needs a tl;dr version/command:

Code:
# run as root
# check zpool list to confirm incorrect sized for partuuids
zpool list -v <poolName>

# use partuuid to find device name
ls -l /dev/disk/by-partuuid/<deviceName>

# confirm device ID against lsblk and identify partition (by default in TrueNAS this is partition 1)
lsblk

# command to expand partition to 100%
parted /dev/<device> resizepart <num> 100%
 
Top