Installed fresh copy of FreeNAS, files are missing

Status
Not open for further replies.

DGenerateKane

Explorer
Joined
Sep 4, 2014
Messages
95
So I installed a fresh copy of FreeNAS to two new flash drives, and restored my settings. However, one of my pools doesn't appear to have any files on it anymore. Looking at the storage tab it shows the pool is still using the same amount of space as before, but the folder is empty. My other pool still has all the files. Any idea what happened? What can I do?

I also have a warning " Firmware version 19 does not match driver version 16 for /dev/mps0" that doesn't tell me anything useful.
 
Last edited:

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
Sure it does. You need to reflash your HBA and downgrade it from phase 19 to p16.

P16 has been needed for most of the 9.x versions. With 9.3, they added an alert. Some users have run into issues running firmware that was newer than the FreeNAS driver.

I also have a warning " Firmware version 19 does not match driver version 16 for /dev/mps0" that doesn't tell me anything useful.

As far as your other issue is concerned, you might try browsing the data from the command line. Perhaps your permissions got messed up.
 

DGenerateKane

Explorer
Joined
Sep 4, 2014
Messages
95
Ah, I guess I'll flash the P16 firmware.

I don't know how to do that, I'm completely new to this OS and hardly know how to do anything.
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472

DGenerateKane

Explorer
Joined
Sep 4, 2014
Messages
95
Sorry, I meant I don't know how to browse data from the command line. I know how to flash the firmware.
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
Do a forum or Google search for a thread titled "Cannot see files copied into Volume" - May 19, 2014.

I posted the info and examples in that thread. I am composing this message on my phone and can't provide a direct link.


Sent from my phone
 

DGenerateKane

Explorer
Joined
Sep 4, 2014
Messages
95
Do a forum or Google search for a thread titled "Cannot see files copied into Volume" - May 19, 2014.

I posted the info and examples in that thread. I am composing this message on my phone and can't provide a direct link.


Sent from my phone

Ok, I found the topic and followed your example. I get stuck at this command:

Code:
[root@freenas /mnt/Primary/HTPC]# ls -l


It returns:

Code:
total 1
-rwxr-xr-x 1 Kane wheel 0 Mar 3 19:25 .windows


Which isn't a directory so the next command you list doesn't work. :/
 
Last edited:

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
What is the result of "ls -al /mnt/Primary"? And "ls -al /mnt/Primary/HTPC"? What folder do you think the files should be in? Have you created any new datasets recently?
 

DGenerateKane

Explorer
Joined
Sep 4, 2014
Messages
95
What is the result of "ls -al /mnt/Primary"? And "ls -al /mnt/Primary/HTPC"? What folder do you think the files should be in? Have you created any new datasets recently?

"ls -al /mnt/Primary" results in:

Code:
drwxrwxr-x+ 9 Kane wheel 10 Mar 4 12:27 .
drwxr-xr-x 4 root wheel 120 Mar 4 13:17 ..
drwxrwxr-x+ 4 Kane wheel 4 Nov 4 20:22 .warden-files-cache
drwxrwxr-x+ 18 Kane wheel 22 Nov 4 20:22 .warden-template-pluginjail-9.2-x64
drwxrwxr-x+ 17 Kane wheel 21 Nov 10 22:45 .warden-template-standard-9.2-x64
-rwxrwxr-x+ 1 Kane wheel 0 Mar 4 12:27 .windows
drwxrwxr-x+ 2 Kane wheel 17 Nov 10 22:47 .xbmc.meta
drwxrwxr-x+ 2 Kane wheel 3 Mar 4 12:26 HTPC
drwxrwxr-x+ 2 Kane wheel 10 Nov 4 19:59 Kane
drwxrwxr-x+ 17 Kane wheel 21 Nov 10 22:45 xbmc


"ls -al /mnt/Primary/HTPC" results in:

Code:
drwxrwxr-x+ 2 Kane wheel 3 Mar 4 12:26 .
drwxrwxr-x+ 9 Kane wheel 10 Mar 4 12:27 ..
-rwxrwxr-x+ 1 Kane wheel 0 Mar 3 19:25 .windows


I should have a handful of folders in HTPC with all my files in them. I haven't created any new datasets, there aren't any at all actually for this pool. I didn't understand their significance at the time I built the machine so I skipped it. I was able to do everything I wanted without any.
 

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
Are you doing all this from the shell window in the GUI, so you are acting as root user - I assume so, so permissions should not be a problem. Try "find /mnt/Primary/ -name filename" where filename is either the exact name of one of your files or a distinctive part of a filename with "*" before and after it. Or possibly *<distinctive file extension such as jpg>. If this does not help it looks as though something quite bad has happened. Do you have any snapshots you could clone to look for your files?
 

DGenerateKane

Explorer
Joined
Sep 4, 2014
Messages
95
Yes, I'm doing it from the shell window in the webGUI. I don't know any specific file names, but a search for part of a few just return "find: /mnt/Primary/: unknown primary or operator" No, no snapshots at all. :/ What else is left to do? I can't even start transferring files because it says I'm using 80% of it right now.
 

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
I forgot if you use regular expressions in the 'find' expression you have to stop the shell interpreting them by putting them in double inverted commas. For instance if I do

#find /mnt/pool -name "*mp3"

I find all my mp3 files wherever they are in the directory structure.

The other thing you can do is "zfs list" and find out which folders have got lots of data in.
 

DGenerateKane

Explorer
Joined
Sep 4, 2014
Messages
95
I forgot if you use regular expressions in the 'find' expression you have to stop the shell interpreting them by putting them in double inverted commas. For instance if I do

#find /mnt/pool -name "*mp3"

I find all my mp3 files wherever they are in the directory structure.

The other thing you can do is "zfs list" and find out which folders have got lots of data in.


zfs list gives me these results for the pool in question:
Code:
NAME USED AVAIL REFER MOUNTPOINT
Primary 12.5T 2.81T 12.5T /mnt/Primary
Primary/.system 8.04M 2.81T 2.91M legacy
Primary/.system/cores 1.02M 2.81T 1.02M legacy
Primary/.system/rrd-097c772a7a1e40b5a1773cbed6329f54 209K 2.81T 209K legacy
Primary/.system/rrd-20d3614b37514a83b63ee0b3273ce93c 209K 2.81T 209K legacy
Primary/.system/rrd-4114a2184e6549c09fe1cb2acd7ff4ff 209K 2.81T 209K legacy
Primary/.system/samba4 709K 2.81T 709K legacy
Primary/.system/syslog 209K 2.81T 209K legacy
Primary/.system/syslog-097c772a7a1e40b5a1773cbed6329f54 418K 2.81T 418K legacy
Primary/.system/syslog-20d3614b37514a83b63ee0b3273ce93c 1.30M 2.81T 1.30M legacy
Primary/.system/syslog-4114a2184e6549c09fe1cb2acd7ff4ff 918K 2.81T 918K legacy
Primary/.warden-template-pluginjail-9.2-x64 796M 2.81T 785M /mnt/Primary/.warden-template-pluginjail-9.2-x64
Primary/.warden-template-standard-9.2-x64 277M 2.81T 272M /mnt/Primary/.warden-template-standard-9.2-x64
Primary/HTPC 209K 2.81T 209K /mnt/Primary/HTPC
Primary/xbmc 282M 2.81T 480M /mnt/Primary/xbmc


The formatting is buggered, but basically it just says that Primary is using 12.5 terabytes, but it doesn't show me where that 12.5 terabytes is currently being used. :/

The other command resulted in nothing at all, it just gives me the prompt again. No results, no error messages, nothing at all.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,464
You have datasets for HTPC and xbmc. If you didn't have them previously, had all your media in a folder called HTPC, and subsequently created a dataset called HTPC, it would hide the folder. Try doing 'zfs unmount Primary/HTPC', and see what's in the HTPC directory then.
 

DGenerateKane

Explorer
Joined
Sep 4, 2014
Messages
95
Yes! Thank you! All my files are there now! I don't know how that dataset for HTPC got created, it certainly wasn't intentional. Do I need to do anything else now so they won't get hidden again? Delete the dataset?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,464
Destroying the dataset would be one way to do it, but datasets can help with a lot of administrative stuff on the system. Probably a better method would be to rename the HTPC directory (maybe to something creative like HTPC2), re-mount the dataset, and move everything from the directory into the dataset.
 

DGenerateKane

Explorer
Joined
Sep 4, 2014
Messages
95
Alright, thanks. I was not looking forward to rebuilding my library.
 

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
Great that you got your library back! I don't suppose the config rejigging (assuming your original install was not 9.3) could possibly have created the new datasets? I think it is unlikely, especially if it hasn't happened to anyone else, but it is a thought.
 

DGenerateKane

Explorer
Joined
Sep 4, 2014
Messages
95
I wish I knew what happened, but I honestly have no idea. My original install was 9.2.1.7 and I did a fresh install because I wanted to install to a new flash drive, and I have no idea if it is even possible to copy an install from one device to another. All I care about is that my library is back, and hopefully doesn't go anywhere else.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Zpool history command might shed some light on how it got created.
 
Status
Not open for further replies.
Top