Fatal Error: Failed to mount NFS volume
-
I am currently running Ubuntu 14.04 64 bit LTS and Fog 1.2. I have attached a NAS Synology to FOG to add extra storage as a mount point within the Ubunutu folder Images/. The fog server sees the external NAS server but when I go to upload the image, the computer reboots to the error message
I did some research and found that I might be missing the .mntcheck file, but I am unsure on how to get that file as whenever I follow the commands to place that file on the NAS server I get that the file or directory doesnt exist.
I am a newbie to Linux so please be kind and spell out the commands to what you need. Thank you
-
It’s possible you’re missing the .mntcheck files as you stated. They can be created with:
sudo touch /images/{,dev/}.mntcheck
However, the other part to note is that the NFS is getting permission denied. This leads me to believe that the mount point is not correct or the NFS server on the NAS is not running.
-
Hi,
You need to had in your NAS two empty files .mntcheck in your /FOG/Images/ and /FOG/Images/dev.
If you have mounted your NFS share on you FOG server you can use the command touch like that : touch /mounted_nas_folder/.mntcheck and touch /mounted_nas_folder/dev/.mntcheck.Ensure you have 777 on folders dans files in /images and sub folders.
Regards,
Ch3i. -
Thank you very much. Yea the permission denied is weird because on the FOG management console it sees the drive perfectly. I followed your syntax and created the .mntcheck for both folder paths. It seems I am still getting the same error message but I have yet to do that 777 on the folder because I am unaware of how to do that.
Is the a command I have to run to give 777 on folders dans files in /images and sub folders?
-
chmod 777 -R /images (your mount point)
-
I ran that command and still getting that same permissions error.
That is my file structure just so you can see. I am not sure as to why I am not getting access -
@szecca1 Where is mount your NAS on your server ?
-
I apologize, I am a newbie but as far as I remember I created the mount point under images. I mounted the NAS drive under images/ to minize the editing of fog since I saw FOG saves its images to that folder. If I did something wrong please suggest away. I am open to anything at this point.
-
As far as I can tell, FOG is seeing the storage fine and NFS is turned on properly. I just cant figure out why the mount is being denied.
Thank you
-
Verify that NFS is actually running?
Give the NFS service a restart?
Verify that Ubuntu Firewall is OFF.
-
@WayneWorkman I turned off the firewall running “sudo ufw disable.”
How can I verify that the NFS service is running? In the post below I have NFS checked on the Storage device. If I do find that it is running, how do I also restart that service?
Thank you
-
@szecca1 said:
@WayneWorkman I turned off the firewall running “sudo ufw disable.”
How can I verify that the NFS service is running? In the post below I have NFS checked on the Storage device. If I do find that it is running, how do I also restart that service?
Thank you
Try these:
[CODE]sudo service nfs-kernel-server status
sudo service nfs-kernel-server restart[/CODE] -
I ran those commands and this is what I got. The concerning part is where it says /images/dev does not support NFS export and /images does not support NFS export.
Is there something I missed that could be causing this?
-
@szecca1 said:
I ran those commands and this is what I got. The concerning part is where it says /images/dev does not support NFS export and /images does not support NFS export.
Is there something I missed that could be causing this?
Here’s your problem.
You’re telling FOG to mount the nfs server from the NAS, not the FOG Server, which you’re showing in the picture above.
-
@Tom-Elliott Ok I think I get what you mean. How do I change that? Sorry I am a beginner at this
-
@szecca1 You need to login (in much the same way) to the NAS box itself.
You can use ssh, or putty, or maybe from the web gui?
I don’t know the exact setup to figure things out.
-
@Tom-Elliott Ok so if I understand you correctly, the FOG client is trying to connect to NAS server and not to the fog server for its images? How do I tell the client to look in the right direction?
And when you say login to the NAS box in pretty much the same way, do you mean that the login and password have to be the same? I am using a Synology box with a web gui.I can send you anything you need to know about my setup that you need to know.
-
@szecca1 You need to have a user fog in your nas with the same password of your fog server.
-
@ch3i Created the user that I log into the FOG management console and still getting the same error message
-
@szecca1 The same login as specify in fog configuration FTP_TFTP_PASSWORD I think.