Move a zvol inside a pool to another directory?

jstore

Dabbler
Joined
Nov 6, 2022
Messages
26
Trying to clean up and organize after not giving enough thought to layout.

I saw the threads on how to move a zvol from one pool to another but I want to move one inside a pool to different directory.

Is there a way to move a zvol (Virtual Machine Instance) inside a pool?

from /cache/Zvol1 to /cache/VM/Zvol1?

Seems like it should be easy but I don't see a way to move inside a pool. Is it just changing a mount point?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
zfs create cache/VM; zfs rename cache/Zvol1 cache/VM/Zvol1
 

jstore

Dabbler
Joined
Nov 6, 2022
Messages
26
I don't know how I missed the 'rename' flag. Makes perfect sense that it would be just like a standard mv.

Very much appreciated.
 
Top