• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

ZFS Missing data?

cphillips

n00b
Joined
Mar 23, 2010
Messages
52
Hi All

I've backed up a load of stuff to a ZFS pool on FreeNAS 8.0. I connected to it using iSCSI from my desktop PC.

I backed up 155Gb into a folder called Daniel. I've now gone to restore the data back to the target machine and the folder Daniel isn't there. The odd thing is that there is 155Gb of unaccounted for disk space? So I'm thinking it's still there somehow but I can't see it.

Anyone got any ideas how to get to it!? I've done this loads of times before and never had a problem. I'm baffled.

Thanks in advance.
 
You most probably have a snapshot. List all snapshots, and then remove that.

All data is still there, hidden in a snapshot. I think the snapshot is accessible through an ".zfs" directory?
 
You most probably have a snapshot. List all snapshots, and then remove that.

All data is still there, hidden in a snapshot. I think the snapshot is accessible through an ".zfs" directory?

Hi, I have no snapshots for the area where I backed the data up:

Code:
zfs list -r -t snapshot -o name,creation pool/Store
no datasets available
 
Maybe your search is wrong? Try just 'zfs list -t snapshot'.

Definitely searching for the correct term, have also searched for other files that I know were in the Daniel folder with no joy! zfs list -t snapshot also results in "no datasets available"
 
Looks that way unfortunately. Rather concerning and enough to make me not use it anymore! Thanks for your tips/advice, they are appreciated.
 
What? Is there a bug in ZFS on FreeBSD??? What kind of bug?

I am using Solaris 11, and I thought ZFS on FreeBSD was stable?
 
What? Is there a bug in ZFS on FreeBSD??? What kind of bug?

I am using Solaris 11, and I thought ZFS on FreeBSD was stable?

Not sure if I've found a bug or not but I couldn't retrieve the "missing" data. I'm on FreeNAS 8.0. FreeNAS. 8.0.2 is out now so tonight I'm going to try and do an upgrade to this to see if it helps.

Something's definitely not right!
 
I would check first to see if there is anything other than the NAS related SW that has changed.
 
If you've published an iSCSI volume, depending on how the OS/web interface is configured, this can mean one of two things:

1) a ZFS ZVOL is created and shared out using comstar or the BSD equivalent
2) a flat file is created within a standard ZFS file system volume, which is then shared out via comstar or the BSD equivalent.

Remember you can use any kind of block device OR file device as a backing for iSCSI storage. If a file was created, you'll need to find that file and delete it. If a ZVOL was created, a simple "zfs destroy -r "ZVOL PATH" should take care of this.

Another important point to make is that an iSCSI volume shared to Windows will still consume space after files have been deleted from within Windows as ZFS has no way of knowing how Windows interacts with it's block device on an NTFS level.

Do you are trying to recover the data from the iSCSI volume, correct?

Can you run the following commands for us and report back?

Code:
zfs list -t all -r
cat /etc/local/istgt/istgt.conf

The first is a dump of all your ZFS volumes/snapshots/clones
The second is a dump of the FreeNAS iscsi target config (I hope! I confess I'm not a FreeNAS expert)
 
Well my data is back. Not sure what happened or why it's back though!

I removed all iSCSI connections from the initiators, then logged back into one of the Windows 2008R2 servers, remapped the iSCSI connection as I usually would, it then said the disk needed to be checked for errors. It completed this, and my "Daniel" folder was once again there.

All space is accounted for and I can access the desired data with no problems.

Slightly worried about how this happened and if it may happen again so will definitely look at the napp-it solution I think, as suggested by danswartz.

So - it's working but I don't know why or how!

P.S. I never done the upgrade to 8.0.2 for FreeNAS as it sprang into life before I had the chance to do this.
 
So the folder was on the client? I must have misunderstood and thought you were saying the folder was on the zfs box and had vanished. Glad it's worked out.
 
It was on the client yes. I was thinking the problem was actually on the ZFS structure. chkdsk saved the day!
 
out of curiosity, why are you using an iscsi volume instead of just sharing a folder through SMB/CIFS?
 
Back
Top