How to expan iscsi zvol

Status
Not open for further replies.

lohmag

Dabbler
Joined
Dec 2, 2013
Messages
38
I created zpool and share it by iscsi but doesn't map all space. How to add 2TB to it without loosing data?
Code:
zfs get all VOL1/VOL1
NAME      PROPERTY              VALUE                  SOURCE
VOL1/VOL1  type                  volume                -
VOL1/VOL1  creation              Wed Dec  4 14:36 2013  -
VOL1/VOL1  used                  18.2T                  -
VOL1/VOL1  available            2.24T                  -
VOL1/VOL1  referenced            18.2T                  -
VOL1/VOL1  compressratio        1.15x                  -
VOL1/VOL1  reservation          none                  default
VOL1/VOL1  volsize              18.5T                  local
VOL1/VOL1  volblocksize          16K                    -
VOL1/VOL1  checksum              on                    default
VOL1/VOL1  compression          lz4                    inherited from VOL1
VOL1/VOL1  readonly              off                    default
VOL1/VOL1  copies                1                      default
VOL1/VOL1  refreservation        none                  default
VOL1/VOL1  primarycache          all                    default
VOL1/VOL1  secondarycache        all                    default
VOL1/VOL1  usedbysnapshots      0                      -
VOL1/VOL1  usedbydataset        18.2T                  -
VOL1/VOL1  usedbychildren        0                      -
VOL1/VOL1  usedbyrefreservation  0                      -
VOL1/VOL1  logbias              latency                default
VOL1/VOL1  dedup                off                    inherited from VOL1
VOL1/VOL1  mlslabel                                    -
VOL1/VOL1  sync                  standard              default
VOL1/VOL1  refcompressratio      1.15x                  -
VOL1/VOL1  written              18.2T                  -
VOL1/VOL1  logicalused          16.7T                  -
VOL1/VOL1  logicalreferenced    16.7T                  -
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Uh.. you've only got 2.24TB free! You aren't supposed to go past 90% full on normal zpools. If you are doing iSCSI you are supposed to try to stay below 50% used for performance reasons. And once you fragment your pool to hell you'll never be able to recover as there's no defrag for ZFS.

But, if you still feel that your ill-conceived idea should be followed through, check out the manual. It explains how to do what you want.
 

lohmag

Dabbler
Joined
Dec 2, 2013
Messages
38
What does it mean logicalused and logicalreferenced?
How much volume my zfs has and size of iscsi share. In windows it apearing as 18.2T hard drive or when i write 16.7T there wil be errors?
 

ewhac

Contributor
Joined
Aug 20, 2013
Messages
177
Status
Not open for further replies.
Top