Page 1 of 1

Increase size of a ZFS volume

Posted: 21 Feb 2015 16:29
by drnicolas
I have a mixture of 1 volume and several datasets on my NAS with ZFS.

the volume is presented to a WIndows-Server as an iSCSI-target, the dataset as CIFS-shares.

At least ONE of the CIFS shares (which is 1.5TB in size) should now be removed and the volumes increased instead.

Is this possible ? The files on the dataset can be moved to another HDD.

This means:
- move the files, so the CIFS-share is empty.
- remove it
- CHANGE the ZFS volume to a much higher value
- (copy the files to the increased ZFS)

Thank you for your help

Re: Increase size of a ZFS volume

Posted: 23 Feb 2015 02:19
by Onichan
So you have already deleted a ~1.5TB dataset and now you want to increase a ZFS volume with the new free space? Or are you asking if you can?

Anyways yes you can increase a ZFS volume live as long as you have the free space. So if deleting a dataset is how you want to free up space then that will work. If you are using snapshots then those will need to be deleted as well to actually free up the space. Just the snapshots of that dataset.

Just know that deleting the dataset is irreversible and you do loose the data unless it's backed up. (Sounds like you plan to copy the files to something then copy them to the volume after increasing it)

Also when you increase the volume on the NAS Windows won't automatically increase the partition. Just go to the disk management in Windows and you should now see free space on the disk. Just right click the disk and expand it.