Moving a zvol

Status
Not open for further replies.

byroncollege

Dabbler
Joined
Oct 1, 2013
Messages
13
Hi,
Is it possible to move a zvol.
Say I created a zvol under /mnt/tank/storage called disk1
It now shows up as /mnt/tank/storage/disk1 in the WebGUI and /dev/zvol/tank/storage/disk1 in the Shell.

It also can inherit permissions from that dataset tree.

Can I create another dataset, say /mnt/tank/iSCSI, and move the zvol into that so it now inherits the settings from the dataset tree?

Or do I have to snapshot and do a zfs send/receive on the localhost?

Cheers
 

mav@

iXsystems
iXsystems
Joined
Sep 29, 2011
Messages
1,428
It should be possible to move zvols, same as any other dataset, within a pool with `zfs rename` command.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
It should be possible to move zvols, same as any other dataset, within a pool with `zfs rename` command.
If that's done, will Freenas see the changed name? Or does it need to be done via CLI after exporting the dataset via GUI, making CLI name change, and then importing via GUI?
 

mav@

iXsystems
iXsystems
Joined
Sep 29, 2011
Messages
1,428
I seems like not cached and I can see the change seen in UI immediately.

PS: There was a bug with renaming of opened zvols that I've fixed yesterday. The fix will be in next 9.10 update.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
My bad, nevermind. I was thinking about renaming a Pool, not a Dataset.
 
Status
Not open for further replies.
Top