I am running Ubuntu 16.04 on ZFS.
I have my OS on rpool and my data in /tank
Problem: I have added 2 6TB drives to my zvol using the following command:
# zpool add -f tank mirror ${DISK1} ${DISK2}
The drives added. I was expecting to gain something near 6TB, but I got an additional 2TB. Here is the output of df -h /tank
Filesystem Size Used Avail Use% Mounted on
tank 2.1T 0 2.1T 0% /tank
and here is the output of # zpool list tank
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
tank 2.57T 460G 2.12T - 7% 17% 1.00x ONLINE -
Here is the output of # zpool status
pool: rpool
state: ONLINE
scan: scrub repaired 0 in 0h0m with 0 errors on Sun Feb 12 00:24:58 2017
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-Samsung_SSD_850_EVO_250GB_S2R5NB0HA87070Z-part1 ONLINE 0 0 0
ata-Samsung_SSD_850_EVO_250GB_S2R5NB0HB09374D-part1 ONLINE 0 0 0
errors: No known data errors
pool: tank
state: ONLINE
scan: scrub repaired 0 in 1h8m with 0 errors on Sun Feb 12 01:32:07 2017
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
wwn-0x50014ee0561bff3f-part1 ONLINE 0 0 0
wwn-0x50014ee1011a7ad7-part1 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
ata-ST6000NE0021-2EN11C_ZA14Q289 ONLINE 0 0 0
ata-ST6000NE0021-2EN11C_ZA13YT32 ONLINE 0 0 0
cache
ata-Samsung_SSD_850_PRO_512GB_S39FNX0J102027A ONLINE 0 0 0
errors: No known data errors
I tried # zpool set autoexpand=on tank
but no joy. Still reporting 2.5TB.
Here is the output of # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 477G 0 disk
├─sda1 8:1 0 477G 0 part
└─sda9 8:9 0 8M 0 part
sdb 8:16 0 2T 0 disk
├─sdb1 8:17 0 2T 0 part
└─sdb9 8:25 0 8M 0 part
sdc 8:32 0 2T 0 disk
├─sdc1 8:33 0 2T 0 part
└─sdc9 8:41 0 8M 0 part
sdd 8:48 0 596.2G 0 disk
└─sdd1 8:49 0 596.2G 0 part
sde 8:64 0 596.2G 0 disk
└─sde1 8:65 0 596.2G 0 part
sdf 8:80 0 232.9G 0 disk
├─sdf1 8:81 0 232.9G 0 part
├─sdf2 8:82 0 1007K 0 part
└─sdf9 8:89 0 8M 0 part
sdg 8:96 0 232.9G 0 disk
├─sdg1 8:97 0 232.9G 0 part
├─sdg2 8:98 0 1007K 0 part
└─sdg9 8:105 0 8M 0 part
sr0 11:0 1 1024M 0 rom
zd0 230:0 0 4G 0 disk [SWAP]
Key:
sda = L2ARC for tank (samsung pro)
sdb & sdc = Seagate Ironwolf 6TB drive (new mirror in tank)
sdd & sde = WD 596G drive in tank mirror
sdf & sdg = rpool mirror
Do you know why my machine is only seeing these new drives as 2TB?
Is there anything I can do about it?
Will I need to destroy my tank to fix the issue (if there is a fix)?