Pool importing with empty datasets

Status
Not open for further replies.

rafadavidc

Dabbler
Joined
Mar 26, 2016
Messages
38
I had 9.10 running for a while and was still fiddling around with the config from night to night, so I didn't have one backed up. An update became available, so I installed, it.

Silly me, this is *nix. Why should things just "work"?

"i386-pc" not found.
GRUB Rescue>

Ugh.

Reinstalled FreeNAS, imported my pool as expected. My jails are undoubtedly completely screwed, but that's not important. What's important is that disk space consumption is as expected - ~1.4TB of 2TB.

AND IT IS, whew. :)

zfs list gives me a ton of crap, including all my old /jails, old /system stuff, and these:

vol2/MainDataSet - no files here.
vol2/MediaDataSet - no files here, either.

WHUT

Detach volume, import via CLI. No dice, same result.

What am I missing? Googling isn't giving me anything terribly helpful.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
You probably have folders with the same name as the dataset - and were apparently using the folders and not the datasets.
 

rafadavidc

Dabbler
Joined
Mar 26, 2016
Messages
38
No, there were no folders named MediaDataSet or MainDataSet. The CIFS share within each data set was MediaShare and MainShare.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Can you provide the results of zfs list using CODE tags (in the the edit post toolbar)?
upload_2016-5-16_9-35-19.png
 

pfonseca

Dabbler
Joined
Jul 27, 2012
Messages
33
I have exactly the same problem, when i try to update to 9.10-STABLE-201605240427. After the update, the system reboot but I don't have GUI and the console was full of errors. When I reboot again I have grub rescue prompt with a message saying "file i386-pc not found".

Unfortunately, as usual, I don't have a recent backup of my configuration.

Any clues before starting a reinstall and reconfiguring all my stuff, jails included?

Regards,
 

rafadavidc

Dabbler
Joined
Mar 26, 2016
Messages
38
I'm in the middle of a move, so my server has been sitting in a corner since shortly after I posted this thread. I'll be posting the zfs list results sometime... soon-ish. :/
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Unfortunately, as usual, I don't have a recent backup of my configuration.
There should be one in the .system dataset, somewhere.
You may also be able to import the old boot device (zpool import freenas-boot oldboot) and extract the config, depending on the state of said device.
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
There should be one in the .system dataset, somewhere.
On my box there are two copies in /data. Also, many copies in .system/configs-<longhexstring>/FreeNAS-<version>. My .system is mounted at /var/db/system.
 

rafadavidc

Dabbler
Joined
Mar 26, 2016
Messages
38
OK, here's my zfs list:

Code:
[root@freenas ~]# zfs list                                                                                                          
NAME                                                    USED  AVAIL  REFER  MOUNTPOINT                                              
freenas-boot                                            506M  13.9G    31K  none                                                    
freenas-boot/ROOT                                       499M  13.9G    25K  none                                                    
freenas-boot/ROOT/Initial-Install                         1K  13.9G   494M  legacy                                                  
freenas-boot/ROOT/default                               499M  13.9G   496M  legacy                                                  
freenas-boot/grub                                      6.33M  13.9G  6.33M  legacy                                                  
vol2                                                   1.38T   385G    96K  /vol2                                                  
vol2/.system                                            210M   385G   208M  legacy                                                  
vol2/.system/configs-411517dcdf2b43f3a96114fb41a9292c   172K   385G   172K  legacy                                                  
vol2/.system/configs-4c6211b89a3046dfbe28e409c4a02537    96K   385G    96K  legacy                                                  
vol2/.system/cores                                      996K   385G   996K  legacy                                                  
vol2/.system/rrd-411517dcdf2b43f3a96114fb41a9292c        96K   385G    96K  legacy                                                  
vol2/.system/rrd-4c6211b89a3046dfbe28e409c4a02537        96K   385G    96K  legacy                                                  
vol2/.system/samba4                                     320K   385G   320K  legacy                                                  
vol2/.system/syslog-411517dcdf2b43f3a96114fb41a9292c    544K   385G   544K  legacy                                                  
vol2/.system/syslog-4c6211b89a3046dfbe28e409c4a02537     96K   385G    96K  legacy                                                  
vol2/MainDataSet                                        239G   385G  1.85M  /vol2/MainDataSet                                      <--------------------- THIS GUY
vol2/MediaDataSet                                      1.14T   385G   144K  /vol2/MediaDataSet                                      < -------------------- AND THIS GUY
vol2/jails                                             2.71G   385G   104K  /vol2/jails                                            
vol2/jails/.warden-template-VirtualBox-4.3.12           661M   385G  2.95M  /vol2/jails/.warden-template-VirtualBox-4.3.12          
vol2/jails/.warden-template-pluginjail                  469M   385G  3.30M  /vol2/jails/.warden-template-pluginjail                
vol2/jails/.warden-template-standard                   1.61G   385G  3.73M  /vol2/jails/.warden-template-standard                  
vol2/jails/TS3                                          296K   385G  2.95M  /vol2/jails/TS3                                        
vol2/jails/mineos_1                                     376K   385G  3.39M  /vol2/jails/mineos_1                                    
vol2/jails/plexmediaserver_1                            464K   385G  3.46M  /vol2/jails/plexmediaserver_1                          
vol2/jails_2                                            886M   385G   120K  /vol2/jails_2                                          
vol2/jails_2/.warden-template-pluginjail                469M   385G   469M  /vol2/jails_2/.warden-template-pluginjail              
vol2/jails_2/mineos_1                                   417M   385G   883M  /vol2/jails_2/mineos_1                                  
[root@freenas ~]#                                                                                                
 

rafadavidc

Dabbler
Joined
Mar 26, 2016
Messages
38
Alternately, if you know how I can extract and reestablish my old config from any of those vol2/.system/ locations, that'd be awesome, too.
 

rafadavidc

Dabbler
Joined
Mar 26, 2016
Messages
38
....so this is new and weird. All that stuff shows up in zfs list, but there are no volumes in the GUI, and nothing shows up to import. :eek:
 

rafadavidc

Dabbler
Joined
Mar 26, 2016
Messages
38
I don't follow what happened there. If I do a zpool import -Ff vol2, it tells me that it's already there. And lo, it is: zfs list shows it, as I posted. So why isn't it in the web GUI? Why was it before? Why are (were) my datasets empty?
 

rafadavidc

Dabbler
Joined
Mar 26, 2016
Messages
38
OK, one problem solved.

zpool export vol2

That allowed me to import the volume in the web GUI. So at least I have that back.

Here is what I'm back to:

Code:

Shell
[root@freenas ~]# cd ..
[root@freenas /]# cd mnt/vol2
[root@freenas /mnt/vol2]# ls
MainDataSet MediaDataSet jails jails_2
[root@freenas /mnt/vol2]# cd MainDataSet
[root@freenas /mnt/vol2/MainDataSet]# ls  <--- WHAAAAAAAAAAAAT
[root@freenas /mnt/vol2/MainDataSet]# cd ..
[root@freenas /mnt/vol2]# cd MediaDataSet
[root@freenas /mnt/vol2/MediaDataSet]# ls <--- WHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAT
[root@freenas /mnt/vol2/MediaDataSet]#
 

LostFate

Dabbler
Joined
Aug 6, 2013
Messages
27
I was more interested in the bottom bit of the instructions. When I had my pool disappear, I imported it into a new system without exporting it first. After importing it, I could see the mount points but I could do anything with them. Basically, you are resetting the ZFS permissions on the volume. No guarantee that it'd work (or that it's the same problem) but it sounded similar so I figured I'd toss it out there as an option.

EDIT: While on the topic of permissions, run a chown - R root:wheel ./ and chmod 755 -R ./ on the mount points. Just kind of curious.
 
Last edited:

rafadavidc

Dabbler
Joined
Mar 26, 2016
Messages
38
Permission buggery doesn't change anything; data sets are still empty.

Can you clarify the chown and chmod you're suggesting? Here's what I get.

Code:
[root@freenas ~]# cd /mnt/vol2
[root@freenas /mnt/vol2]# chown root:root
usage: chown [-fhvx] [-R [-H | -L | -P]] owner[:group] file ...
chown [-fhvx] [-R [-H | -L | -P]] :group file ...
[root@freenas /mnt/vol2]# chmod 755 -R ./
chmod: -R: No such file or directory
[root@freenas /mnt/vol2]#
 

LostFate

Dabbler
Joined
Aug 6, 2013
Messages
27
My apologies. I made an edit but you must have just missed it.

Code:
[root@***NAS /mnt/Jail_Data]# cd test                                      
[root@***NAS /mnt/Jail_Data/test]# chown -R root:wheel ./                  
[root@***NAS /mnt/Jail_Data/test]# chmod -R 755 ./


I made a dataset to test the commands. Might maybe help. Otherwise, I might be out of ideas.
 

rafadavidc

Dabbler
Joined
Mar 26, 2016
Messages
38
Two things. First, the permission type needs to go first, then the -R.

Also, I'm getting all kinds of Operation Not Permitted everywhere. It seems to be related to the fact that this used to have Windows shares on it. I did a recursive 755 change via the web GUI.

Data sets in question still showing empty on ls.
 

LostFate

Dabbler
Joined
Aug 6, 2013
Messages
27
Just for confirmation, it's showing that the correct amount of disk space is being used but files aren't being listed in the directory?

Are you getting Op Not Permit on/during the chown? The chmod will fail because of permissions if you don't own first.

It was a typo on my part. The web GUI will essentially run:
Code:
chmod -R 755 ./

on the directory of your choosing if you set it to recursive (and those permission values).
 

rafadavidc

Dabbler
Joined
Mar 26, 2016
Messages
38
chown churned the hard disks for close to a minute, and then I got the CLI prompt back. chmod gave me all the op not permitteds.

Yes, if you look in the zfs list I gave, the two datasets show like 1.7TB of 2TB used between the two of them. The data is there, it's just not showing up in ls.
 
Status
Not open for further replies.
Top