zfs mount -a after reboot

Status
Not open for further replies.

dizydiz

Cadet
Joined
Jul 14, 2012
Messages
7
Hi all,

I recently upgraded to the latest release 2. Now every time I reboot, I have to putty in and do a [zfs mount -a] to see the contents of my zfs raid. Thought on how to fix or why I may be having this issue in the 1st place?

Thx for any assistance!
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Have you tried using the automount feature per the manual?
 

dizydiz

Cadet
Joined
Jul 14, 2012
Messages
7
Isnt' it supposed to auto mount on bootup?

How would I go about trying the auto-mount 'per the manual'?

EDIT: I just googled and I can't find that FreeNas has an Auto-Mount feature. I see where users are requesting that to be added to FreeNas.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
OOps. I thought my post had a mistake, but I read it 3 times and it looked right. I meant auto-import.


If you created the zpool from the GUI(like you are supposed to) then it will automount the zpool on bootup every time. If you didn't create it from the GUI(or had to do a reinstall of FreeNAS without a config file restore) then the feature you are looking for is "auto-import"(not auto-mount as I said before). In any case, if you are having to run commands at the CLI to mount your zpool then you are doing something wrong(or not doing something right).

There are some circumstances where I don't think auto-import works. If you are in this boat, then I'm not sure what your options are. As a general rule, if you created the zpool from the GUI, then the zpool will automount on bootup and will work with auto-import.

If you didn't and auto-import isn't working, I have no good options for you. It actually is pretty important that the zpool be in the FreeNAS configuration and mounted automatically through the GUI to provide proper monitoring for zpool problems. You will need to destroy and recreate your zpool so that it shows up in the configuration and is properly monitored by the middleware. If you don't care because you are going to regularly monitor the zpool yourself(I wouldn't recommend this to anyone) then you could setup a cronjob to run zfs mount -a on bootup. Just read up on cronjobs via Google and I'm sure you could have it setup to run on bootup in less than 10 minutes.
 

dizydiz

Cadet
Joined
Jul 14, 2012
Messages
7
I re-installed Release 2 to the USB drive and ...You were right. If the WebGui doesn't do the importing (i believe I tried to via command after the upgrade) then it won't see it correctly.

Also, out of habit, I had put my own LSI drivers in the /boot/kernel/ before I even hit the WebGui like "normal". Come to find out (trying just to try) freenas NOW has the drivers built in now so no need to upload my LSI drivers (*.ko files) anymore!

Thx for the help!
 
Status
Not open for further replies.
Top