SOLVED Can't rename dataset

Status
Not open for further replies.

kalease

Dabbler
Joined
Apr 24, 2015
Messages
10
Hello-

I was able to use the forum to locate instructions on how to rename datasets, however when I run a ZFS rename I get the message pasted below. I've been troubleshooting this for the past few days and can't figure out what I need to do in order to rename the dataset.

I'm running version 9.3, any help would be greatly appreciated.

Thanks!

data/Movies 725G 4.39T 725G /mnt/data/Movies

data/TV Shows 1.68T 4.39T 1.68T /mnt/data/TV Shows

data/VB-Storage 13.6G 4.39T 13.6G /mnt/data/VB-Storage

[root@freenas] /# zfs rename data/TV Shows data/TV_Shows

too many arguments

usage:

rename [-f] <filesystem|volume|snapshot> <filesystem|volume|snapshot>

rename [-f] -p <filesystem|volume> <filesystem|volume>

rename -r <snapshot> <snapshot>

rename -u [-p] <filesystem> <filesystem>

For the property list, run: zfs set|get


For the delegated permission list, run: zfs allow|unallow
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
You have a space in the first argument you can't do that. You need to put it in quotes or escape the space character. While you are at it I suggest making the dataset all lowercase. This just simplifies things nothing more.
 

kalease

Dabbler
Joined
Apr 24, 2015
Messages
10
ahh thanks SweetandLow.

When I tried that it tell me it can't unmount the device. Doesn't ZFS rename take care of the unmount as well?

Good suggestion regarding all lower case, I'll do that.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
I think it should handle the mount and unmount for you. That is actually what the error message you are seeing means. Do you have any jails or other interesting things in this TV shows dataset?
 

kalease

Dabbler
Joined
Apr 24, 2015
Messages
10
Just TV show video files.

I have a CIFS share and a jail using this dataset to create/modify files.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Try unmounting it from the jail and deleting the cifs share. You will have to redo that stuff after the rename anyways.
 
Status
Not open for further replies.
Top