Can't delete cloned snapshot!

Status
Not open for further replies.

BlazeStar

Patron
Joined
Apr 6, 2014
Messages
383
Using FreeNAS-9.3-STABLE-201511280648

I cloned a snapshot and took what I needed.

I accessed the cloned snapshot with SSH so I didn't create a share or anything.

Now I'm trying to deleted the snapshot and it won't let me:

Code:
sudo rm -r WERK-auto-20150704.0600-1y-clone/
rm: WERK-auto-20150704.0600-1y-clone/: Device busy


How can I get rid of it please?
 

jde

Explorer
Joined
Aug 1, 2015
Messages
93
Did you try deleting the snapshot through the GUI in the Storage -> Snapshot menu or did you try it through CLI?
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
Now I'm trying to deleted the snapshot and it won't let me
When you clone a snapshot in the GUI, a dataset is created. First, delete the dataset, then you will be able to delete the snapshot. Do all of this through the GUI.
 

jde

Explorer
Joined
Aug 1, 2015
Messages
93
When you clone a snapshot it becomes a dataset on the volume that you selected. You should be able to select it in the Storage -> Volumes menu in the GUI then click the "destroy dataset" button at the bottom of the screen. If you try it through the CLI (not recommended, proceed at your own risk) you'll meet to use something like the "zfs destroy" command. RM won't delete a zfs dataset.
 
Status
Not open for further replies.
Top