SOLVED Adding NAS (NFS) - storage to FOG
Hi there all,
i’m working already a couple of weeks with FOG , but i’m making a couple of changes now.
In stead of local storage , i want to use our QNAP - nas to save / upload our images.
The problem is , i get some errors while doing it.
First i tried to add the nas directly to the storage node , but it didn’t work. The graph wasn’t showing up.
So i tried it an other way. I mounted my nas-storage first with NFS , then with CIFS then with FTP on a map /mnt/nfs/images/ & in the GUI i just made an storage node with this path.
I see all the things from my nas over there , but when i want to upload an image i get the next error
** Mounting 172.16.0.201:/mnt/nfs/images/dev on /images failed : permission denied
Fatal error : Failed to mount NFS volume - computer will reboot in 1 minute .**
I gave the 172.16.0.201 - address the rights to work with NFS on my QNAP-nas but i don’t get it work.
Its really frustrating , can someone help?
Ps: They got the .mntcheck files
Wayne Workman last edited by Wayne Workman
I teamviewed with @ch3i & he did it!
New password , more rights on the QNAP & better settings for the node.
Thank you verry mutch guys! For the patience ;)!
You can set this topic on SOLVED
Thats Re-Exporting , that is not working.
I hope ch3i or Wayne workman can help me. Maybe with teamViewer,
i don’t get this done.
I didn’t test it. But I would say, mount it via linux (ssh into the fog server) and make sure it got the right permissions.
i tried to upload an image now.
But still , i get an error :
Could not mount images folder (/bin/fog.upload)
eumh wait. With Multicast you mean , imaging more computer at once? So for example 100 computer with 1 image?
So i need to make a new storage GROUP and link the image with this group?
But how can i image more computers at once then? Just not set it as master node?
I’ll try an upload in a couple of minutes then.
@boeleke Hi, it’s normal, because your NAS is not a “FOG Storage Node”. A real FOG Storage Node is an installation of FOG on another server with “Node Installation”. You NAS have not the FOG installation. It’s not a problem to upload/download.
Tip : If you use multicast your NAS storage node can’t be the master of the group storage.
@Tom-Elliott It’s possible to check if the hw.php is present and display a message to indicate that it’s not a normal node ?
Hi there guys,
you both convinced me to do this. So i upgraded to Fog Trunk (i can Revert anyway with a snapshot).
But now i need your guys help to add this storage node. You got a lot more settings :
I’m not sure if its correct now. I mean , the snapin path – must that be a map on the QNAP also?
When i use this settings , i get next mistake
while upgrading trunk , he said : (Setting up and starting VSFTP server : Failed! )
Can you guys help me further?
Sorry for my bad english.
Wayne Workman last edited by Wayne Workman
@ch3i I too am a systems admin at a school, and I’ve been using FOG Trunk for over a year now. It’s much more stable than it used to be. Others here in the corporate world also use FOG Trunk.
I would recommend that you setup FOG Trunk on a VM though, and take snapshots before each update - just so you have a safety net.
@boeleke I’m working in a School and use Trunk version Trunk versions of FOG are “stable”.
Thank you for the help. I’m working in a school environment & we can’t work with unstable releases.
If we want to use it every week , it need to be stable.
Is there not another option?
Thanks for the help!
@boeleke For QNAP the NFS path seem to be :
/share/your_nfs_sharebut for the ftp access it’s
/your_nfs_share. In FOG trunk (https://wiki.fogproject.org/wiki/index.php/Upgrade_to_trunk) you can differentiate NFS and FTP path. In your version FTP and NFS path must be the same !
@boeleke FTP and NFS path or the sames on your NAS ?
@boeleke Hi, If your NAS is mounted on your FOG server via NFS you can’t re-export it as NFS via FOG server. You have to create a node storage with IP of NAS ans specify NFS and FTP path in the node settings. Before you have to create a user “fog” in your NAS with the same password of the “fog” user of the FOG server.
When you’ll upload/download image on that node (Your NAS) the fog client will connect directly on your NAS not via your FOG server.
I would be gratefull.
I think i got some mistakes with my QNAP. I’m not sure what settings …
Wayne Workman last edited by
I did read both of the articles already & tried it.
But still nothing.
Read closer. I promise your QNAP nas can be a storage node. It’s just a matter of setting up NFS and FTP on it. If you have some time, maybe I can help you via teamviewer so that we can figure it out, and I can later document what we found.