After removing jail, all files missing but space is still allocated

Status
Not open for further replies.

Xytek

Cadet
Joined
Nov 12, 2013
Messages
9
So after spending hours of moving and copying all my media files to new 4TB drive, I started to play with DLNA plugin. I was troubleshooting why i couldn't see a different directory under my main media folder when i decieded to just remove it and start again. Apparently i did something bad (tm). I freaked and reloaded a previous config to see if that would help.. it didn't. So here i am.
Looking through the forums, others have had similar issues with missing files. Here is some output:
Code:
[root@MediaNexus] ~# mount
/dev/ufs/FreeNASs1a on / (ufs, local, read-only)
devfs on /dev (devfs, local, multilabel)
/dev/md0 on /etc (ufs, local)
/dev/md1 on /mnt (ufs, local)
/dev/md2 on /var (ufs, local)
/dev/ufs/FreeNASs4 on /data (ufs, local, noatime, soft-updates)
diskad0 on /mnt/diskad0 (zfs, local, nfsv4acls)
diskad0/media on /mnt/diskad0/media (zfs, local, nfsv4acls)
diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail on /mnt/diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail (zfs, local, nfsv4acls)
diskad0/media/Media_Stor on /mnt/diskad0/media/Media_Stor (zfs, local, nfsv4acls)
diskad0/media/dlna_1 on /mnt/diskad0/media/dlna_1 (zfs, local, nfsv4acls)
devfs on /mnt/diskad0/media/dlna_1/dev (devfs, local, multilabel)
procfs on /mnt/diskad0/media/dlna_1/proc (procfs, local)
/mnt/diskad0/media/Media_Stor on /mnt/diskad0/media/dlna_1/media (nullfs, local)
[root@MediaNexus] ~#
[root@MediaNexus] ~# zfs list
NAME                                                          USED  AVAIL  REFER  MOUNTPOINT
diskad0                                                      2.66T  932G  152K  /mnt/diskad0
diskad0/media                                                2.66T  932G  2.66T  /mnt/diskad0/media
diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail  515M  932G  515M  /mnt/diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail
diskad0/media/Media_Stor                                      148K  932G  148K  /mnt/diskad0/media/Media_Stor
diskad0/media/dlna_1                                          260M  932G  775M  /mnt/diskad0/media/dlna_1
[root@MediaNexus] ~# 


Thanks for any help in trying to recover my files. Spent 4 years collecting.. don't really want to loose it all.
 
D

dlavigne

Guest
Does running ls through /mnt/diskad0/media and its subdirectories still show the files?
 

Xytek

Cadet
Joined
Nov 12, 2013
Messages
9
No it doesn't. It shows the subdirectory (Media_Stor) of where i had 2 directories (named "Movies" and "TVSHOWS", both of which are gone)
Code:
[root@MediaNexus] /mnt/diskad0/media# ls -al
total 81
drwxrwxrwx  8 root  wheel    10 Nov 12 20:23 ./
drwxrwxrwx  3 root  wheel      3 Nov 11 19:04 ../
drwxr-xr-x  2 root  wheel    16 Nov 12 20:23 .dlna_1.meta/
-rw-r--r--  1 root  wheel    141 Nov 12 20:23 .pcbsd-aria-stat-amd64
drwxr-xr-x  3 www  www        3 Nov 12 20:18 .plugins/
drwxr-xr-x  4 root  wheel      4 Nov 12 20:19 .warden-files-cache/
drwxr-xr-x  17 1011  1011      22 Nov 12 20:20 .warden-template-9.1-RELEASE-amd64-pluginjail/
drwxrwxrwx  2 root  wheel      3 Nov 12 20:01 Media_Stor/
drwxr-xr-x  18 1011  1011      25 Nov 12 20:23 dlna_1/
-rw-r--r--  1 root  wheel  24390 Nov 12 20:23 warden.log
[root@MediaNexus] /mnt/diskad0/media/Media_Stor# ls -al
total 22
drwxrwxrwx  2 root  wheel    3 Nov 12 20:01 ./
drwxrwxrwx  8 root  wheel  10 Nov 12 20:23 ../
-rw-r--r--  1 root  wheel  129 Nov 12 20:01 warden.log
[root@MediaNexus] /mnt/diskad0/media/Media_Stor#
 

Xytek

Cadet
Joined
Nov 12, 2013
Messages
9
Here is some other diagnostic output...
Code:
[root@MediaNexus] ~# zpool status
  pool: diskad0
state: ONLINE
  scan: none requested
config:
 
        NAME                                          STATE    READ WRITE CKSUM
        diskad0                                      ONLINE      0    0    0
          gptid/561293e6-4b33-11e3-8cef-0022190f9fda  ONLINE      0    0    0
 
errors: No known data errors
[root@MediaNexus] ~# zpool import
no pools available to import
[root@MediaNexus] ~#
[root@MediaNexus] ~# zpool list
NAME      SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
diskad0  3.62T  2.66T   990G    73%  1.00x  ONLINE  /mnt
 

Xytek

Cadet
Joined
Nov 12, 2013
Messages
9
And yet more info ( im trying to figure this out):
Code:
[root@MediaNexus] ~# zpool history
History for 'diskad0':
2013-11-11.18:42:42 zpool create -o cachefile=/data/zfs/zpool.cache -o failmode=continue -o autoexpand=on -O aclmode=passthrough -O aclinherit=passthrough -f -m /diskad0 -o altroot=/mnt diskad0 /dev/gptid/561293e6-4b33-11e3-8cef-0022190f9fda
2013-11-11.18:42:47 zfs inherit mountpoint diskad0
2013-11-11.18:42:47 zpool set cachefile=/data/zfs/zpool.cache diskad0
2013-11-11.18:59:34 zfs set compression=lz4 diskad0
2013-11-11.18:59:34 zfs inherit atime diskad0
2013-11-11.18:59:34 zfs set dedup=off diskad0
2013-11-11.18:59:34 zfs set refquota=none diskad0
2013-11-11.18:59:39 zfs set refreservation=0 diskad0
2013-11-11.19:04:35 zfs create diskad0/media
2013-11-11.19:09:37 zfs create -V 3500g diskad0/media/TVMovies
2013-11-11.20:28:56 zfs destroy diskad0/media/TVMovies
2013-11-11.21:56:30 zfs create -o mountpoint=/diskad0/media/.warden-template-9.1-RELEASE-amd64 -p diskad0/media/.warden-template-9.1-RELEASE-amd64
2013-11-11.21:56:52 zfs snapshot diskad0/media/.warden-template-9.1-RELEASE-amd64@clean
2013-11-11.21:56:54 zfs clone diskad0/media/.warden-template-9.1-RELEASE-amd64@clean diskad0/media/DLNA
2013-11-11.22:01:10 zfs destroy -fr diskad0/media/DLNA
2013-11-11.22:02:36 zfs create -o mountpoint=/diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail -p diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail
2013-11-11.22:09:05 zfs snapshot diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail@clean
2013-11-11.22:09:07 zfs clone diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail@clean diskad0/media/dlna_1
2013-11-12.08:55:44 zfs clone diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail@clean diskad0/media/mt-daapd_1
2013-11-12.11:42:46 zfs clone diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail@clean diskad0/media/sickbeard_1
2013-11-12.17:52:31 zpool import -c /data/zfs/zpool.cache.saved -o cachefile=none -R /mnt -f 4650791210586514443
2013-11-12.17:52:31 zpool set cachefile=/data/zfs/zpool.cache diskad0
2013-11-12.18:37:09 zfs destroy -fr diskad0/media/mt-daapd_1
2013-11-12.19:06:32 zfs destroy -fr diskad0/media/dlna_1
2013-11-12.19:06:51 zfs destroy -fr diskad0/media/sickbeard_1
2013-11-12.19:08:53 zfs clone diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail@clean diskad0/media/dlna_1
2013-11-12.19:36:43 zfs destroy -fr diskad0/media/dlna_1
2013-11-12.19:55:27 zpool import -c /data/zfs/zpool.cache.saved -o cachefile=none -R /mnt -f 4650791210586514443
2013-11-12.19:55:27 zpool set cachefile=/data/zfs/zpool.cache diskad0
2013-11-12.20:01:34 zfs create -o mountpoint=/diskad0/media/Media_Stor/.warden-template-9.1-RELEASE-amd64-pluginjail -p diskad0/media/Media_Stor/.warden-template-9.1-RELEASE-amd64-pluginjail
2013-11-12.20:01:39 zfs destroy -fr diskad0/media/Media_Stor/.warden-template-9.1-RELEASE-amd64-pluginjail
2013-11-12.20:12:14 zfs destroy -r diskad0/media/.warden-template-9.1-RELEASE-amd64
2013-11-12.20:12:29 zfs destroy -r diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail
2013-11-12.20:20:07 zfs create -o mountpoint=/diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail -p diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail
2013-11-12.20:23:44 zfs snapshot diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail@clean
2013-11-12.20:23:47 zfs clone diskad0/media/.warden-template-9.1-RELEASE-amd64-pluginjail@clean diskad0/media/dlna_1
2013-11-12.20:35:09 zpool import -c /data/zfs/zpool.cache.saved -o cachefile=none -R /mnt -f 4650791210586514443
2013-11-12.20:35:09 zpool set cachefile=/data/zfs/zpool.cache diskad0
 

Xytek

Cadet
Joined
Nov 12, 2013
Messages
9
*sigh* ok im coming to the conclusion that my data is gone. Some how the "pointers" to where the data is on the disk is gone, or corrupted, and with my limited knowledge of how this FS works, i don't think i can recover from it.
 

Xytek

Cadet
Joined
Nov 12, 2013
Messages
9
So, im wondering if i deleted a dataset, would that cause my problem? where the space is still allocated, but no "reference" point pointing to where the data is?
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
I think if you delete a dataset, the data should be gone. If you used snapshots for this particular dataset, they might still occupy the free space. I'm just not sure if you actually can delete a dataset when there are still snapshots of it?
 

Xytek

Cadet
Joined
Nov 12, 2013
Messages
9
No, i was still in the process of moving files over and setting stuff up when this happened. I had been running Freenas for over a week with a smaller drive getting familiar with the setup. Yeah i dont think i deleted a dataset, infact i dont remember even creating one. I was just throwing it out there.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Hey, for 5-digits some data recovery professionals might be able to help. LOL.

So how much is your data worth? LOL
 

Xytek

Cadet
Joined
Nov 12, 2013
Messages
9
now where near even a fraction of that
worth a shot at figuring it out anyways
 

Xytek

Cadet
Joined
Nov 12, 2013
Messages
9
I gave up trying to figure it out and just wiped the disk. Thanks for the response.
 
Status
Not open for further replies.
Top