8.0.4 Unable to delete corrupted dataset

Status
Not open for further replies.

unca_NAS

Explorer
Joined
Mar 25, 2012
Messages
87
Cannot delete corrupted dataset "/mnt/vault/data" from GUI or via Putty

Code:
zfs list
NAME           USED  AVAIL  REFER  MOUNTPOINT
vault         2.60T  2.59T   232K  /mnt/vault
vault/data    1.33T  2.59T   702M  /mnt/vault/data
vault/foto      25G  2.59T  17.1G  /mnt/vault/foto
vault/itunes   200G  2.61T   174G  /mnt/vault/itunes
vault/something     163K  2.59T   163K  /mnt/vault/something
vault/media   1.05T  2.59T  1.05T  /mnt/vault/media

[root@freenas] ~# zfs destroy /mnt/vault/data
cannot open '/mnt/vault/data': invalid dataset name


Before unmounting I erased all files using CIFS share and Win Explorer.
The corrupted dataset reserves about 1TB of valuable space. Can it be removed?
 

unca_NAS

Explorer
Joined
Mar 25, 2012
Messages
87
Filesystem has children..

cannot destroy 'vault/data': filesystem has children
use '-r' to destroy the following datasets:
vault/data@manual-20120405
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
It looks like you have a manual snapshot for that dataset, you should be able to delete that from the GUI, and then delete the dataset. From the left sidebar look in Storage->Volumes->View All Volumes and then there is a tab at the top that says "ZFS Snapshots". Click that tab and look for the snapshot "data@manual-20120405" and delete it, then you should be able to delete your dataset either from the GUI or the command line.
 

unca_NAS

Explorer
Joined
Mar 25, 2012
Messages
87
prblem solved!

Thank you kind Sire, destroying the snapshot was the key (had completely forgot its existence) :)
 
Status
Not open for further replies.
Top