zfs rename -f after renaming all data is gone but storage is still used

Status
Not open for further replies.

Tommaso

Dabbler
Joined
Oct 19, 2016
Messages
12
Hello all, sorry to abruptly enter the community with a question. Until today I followed many speeches and learned alot but I never felt that I could share back something.

Unfortunately, today I did something that was seen normal routine and ended up in a disaster.

I was having problem with Windows permissions on a Dataset. I tried to rename it with zfs rename to move all the data in a new dataset with the same name. That said the device was busy, and I tought it was meaning used by the SMB service. Because of this I used at that point zfs rename -f and I could rename it and immediately I created a new dataset with the previous name.

Now in the renamed one all the data is gone, but the space is still used. I feel the data is there, but I really don't know how to retrieve it. If i use ls -l or ls -a I don't see anything. I tried to reset the permissions to more friendly unix permissions without success...

please, help me :(
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
freenas version, hardware specs and zpool history output?
 

Tommaso

Dabbler
Joined
Oct 19, 2016
Messages
12
Sorry, you are right. In the panic I could not even think correctly.

FreeNAS is the last stable released in the 9.10 train.

Hardware specs are a bit odd:
It is a VM inside XenServer 7.
12GB RAM
Dell PERC H200 passed trough

Never had any problem until today, I don't know if you need clearly more details.

The zpool history is attached, but it is cluttered with many snapshots that doesn't exists anymore. All operations have been done today.
 

Attachments

  • history.txt
    2.5 MB · Views: 242

rs225

Guru
Joined
Jun 28, 2014
Messages
878
You might need to do 'zfs mount pool/dataset' then see if it mounted and where at, with the 'df' command.
 

Tommaso

Dabbler
Joined
Oct 19, 2016
Messages
12
Unfortunately it is mounted correctly. Now the dataset is Main/MOLD and it is correctly mounted in /mnt/Main/MOLD.

Unfortunately under it I can see just a folder of ebooks, but the rest is not visible.

I am running all the command as root, so I don't think there should be something hidden for me.
 

Tommaso

Dabbler
Joined
Oct 19, 2016
Messages
12
Guys I'm shying.

In the shock when I saw all the important folders disappear, all the memories of my family gone just for a "zfs rename -f " I didn't do the only thing that I should have done immediately after noticing that the space was still all there.

Checking if I wrongly moved them elsewhere..... rs225 you made me think to it, when I answered to you saying there was just a folder full of eBooks. And there they were, between the messy of authors, the folders were all there hiding.

Before all this I was playing with Windows permissions and maybe I wrongly moved them somewhere without noticing it. My mouse at work is not the most functional one.

Despite this, I thank you all, you immediately jumped in the problem trying to help and if I would not notice it probably more people would come in.

Thank you!!!!
 
Last edited:

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Relax. your data is there, but freenas doesn't know about it's location because you changed it's name behind it's back. Either reboot, or detach and then import (using the GUI) the pool.
 

Tommaso

Dabbler
Joined
Oct 19, 2016
Messages
12
Thank you. I could recover everything during the night here and moved all to a new dataset (as was the original intention).

Thanks all again
 
Status
Not open for further replies.
Top