What is the best way to move data within the same pool?

gabsd

Dabbler
Joined
Feb 11, 2014
Messages
24
I have a pool called "orange" and a dataset "music" in it. I want to move the dataset to orange/media.
I am trying to do this through the GUI, and I don't know what is the best way to do it - I don't want data to go through the network.
I read several threats talking about how to move stuff from one pool to another or from one system to another using zfs send/receive, but that didn't work or I don't know how to use it.

I tried
Code:
zfs rename orange/music orange/media/music

but that gave me the error "cannot open orange/music. Dataset does not exist"

I tried
Code:
zfs rename /mnt/orange/music /mnt/orange/media/music

but that complained about the leading slash in the name.

I am sure this is a trivial thing for anyone who is not a rookie like myself.
Please help?
 

blueether

Patron
Joined
Aug 6, 2018
Messages
259
Do you want the music to be a data set of it's own, nested?

Just tested on 11.3:
create test on BackupVault
create test_top on BackupVault
zfs rename BackupVault/test BackupVault/test_top/test
 

gabsd

Dabbler
Joined
Feb 11, 2014
Messages
24
Worked perfectly, thanks!
I guess the problem was mnt/ in front of the pool name.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
The zfs command works with the pools and datasets directly, so specifying the mount location is confusing things from its perspective.
 

gabsd

Dabbler
Joined
Feb 11, 2014
Messages
24
The zfs command works with the pools and datasets directly, so specifying the mount location is confusing things from its perspective.
Thanks for the clarification. It's slowly starting to make sense :)
 
Top