Extension of zVols ?

Status
Not open for further replies.

divB

Dabbler
Joined
Aug 20, 2012
Messages
41
One big advantage of ZFS is that it includes a volume manager.

In a certain pool, I use some space for datasets and some space for zVols to export as iSCSI device extent. Clearly, I do not want to give the final size of the zvol.

Ideally, I would start with a zvol of 10TB and increase as needed. Since the zVol is exported via iSCSI, the underlying filesystem will be resized (e.g. resize2fs).

However, in the GUI, there is no option to resize a zvol (only delete and snapshot). Using the command line, I found out that this at least gives to errors:

Code:
[root@zetta] ~# zfs get volsize test/testvol
NAME          PROPERTY  VALUE    SOURCE
test/testvol  volsize   1G       -
[root@zetta] ~# zfs set volsize=2G test/testvol
[root@zetta] ~# zfs get volsize test/testvol
NAME          PROPERTY  VALUE    SOURCE
test/testvol  volsize   2G       -
[root@zetta] ~#


Is there anything wrong about? Why is this function not in the GUI?

Regards
divB
 

amo368

Cadet
Joined
Nov 15, 2012
Messages
1
I really need to know this too. I too want to extend a zvol, right now it's 2 TB and I want to make it the full 4TB of the whole volume. I thought this would have been easy but I guess not... Anyone know how to do this?
 

divB

Dabbler
Joined
Aug 20, 2012
Messages
41
Hi, thanks for the link, it is essentially the same I used (except for the refreservation).

However, my original question is still up: Why is this not in the GUI (i.e., is there a special reason)?

Is there a chance that this gets added?
 
Status
Not open for further replies.
Top