Added more devices to ZFS stripe - dataset volume stays the same?

Status
Not open for further replies.

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
Hi,

Ok, so I originally had two 500 GB disks formatted into a ZFS stripe. Total ZFS volume size was around 1 TB.

I then added two more physical 500 GB disks for a total of four disks.

Then in FreeNas, I clicked on ZFS Volume Manager, selected my old volume as the volume to extend, and added the two new disks. For volume layout, I chose stripe, then hid Add Volume.

I was expecting the datastore size to now grow to 2 TB.

However, under FreeNAS, the datastore size is still showing as 1Tb even after a restart?

LML82Tl.png


The weird thing is, the size under zpool list seems to be 1.80T:


Code:
[root@freenas] ~# zpool list
NAME        SIZE  ALLOC  FREE    CAP  DEDUP  HEALTH  ALTROOT
datastore  1.80T  734G  1.08T    39%  1.00x  ONLINE  /mnt
[root@freenas] ~# zpool status
  pool: datastore
state: ONLINE
  scan: none requested
config:
 
NAME                                          STATE    READ WRITE CKSUM
datastore                                    ONLINE      0    0    0
  gptid/9245e798-68af-11e3-b1dc-10604b92dc14  ONLINE      0    0    0
  gptid/92938b1f-68af-11e3-b1dc-10604b92dc14  ONLINE      0    0    0
  gptid/2757e162-7858-11e3-a9bb-10604b92dc14  ONLINE      0    0    0
  gptid/27d1ceb6-7858-11e3-a9bb-10604b92dc14  ONLINE      0    0    0
 
errors: No known data errors



I also tried setting autoexpand=on, and rebooting, FreeNAS still shows the size as 1.1 Tb.

What should I do to make it recognise the extra?

Cheers,
Victor
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
What should I do to make it recognise the extra?
The extra is recognized, but you are not interpreting the numbers properly. The Size column is just a simple addition of the Used and Available columns. You stored 636kib + 518.8gib + 1.5gib + 20gib + 74.5mib + 336kib + 90.2gib + 430mib + 734.5mib + 334.7mib + 12.4gib + 4.8gib + 85.8gib = 735GiB of data in your pool. You have 1.1TiB available now (I'm pretty sure you did not have 1.1TB available before the expansion), so your total capacity is 735GiB + 1.1TiB = 1.8TiB
Read this thread for more detailed explanation: Storage Issue with Jail
Also, I hope you know what you are doing. Four disks in a stripe -- if one of them fails your entire pool is gone.
 
Status
Not open for further replies.
Top