ADD mounted NAS directory into Fog Server
- FOG Version: last download may-2017
- OS: linux ubuntu last download avaliable
- Service Version:
I have add to Linux Ubuntu PC with Fog Server, a path for external Buffalo devices ( with add the NAS path to fstab configuration file ) and after mount -a command I have enabled the access for read/write into /images path ( 192.x.x.x /images_fogs is the path of NAS ) from Linux Ubuntu O.S.
Now how I can enter this settings to fog Server ?
@Quazz The NAS has to support FTP and NFS, those are the two requirements. You’d make two NFS shares called /images and /images/dev and put the .mntcheck files in there, set permissions to 777, share with everyone. /images is read only for NFS, /images/dev is read/write to all. An FTP account needs made and given full access to both of those shares. The Account’s credentials need plugged into FOG. If there is strangeness with FTP root vs NFS root, that can all be set in FOG.
Once it’s setup, you can arrange/configure it however you like inside storage management.
@Tom-Elliott Yeah, I was thinking of giving it its own location and storage group so it could be a master node, not sure how to set that up properly for that purpose though.
@Quazz Location Plugin still follows the rules on capture. I’m pretty sure you’re correct with the “unless it’s defined as a master node” you won’t be able to capture to it.
Afaik, you can’t capture to a storage node in the default setup.
It’s somewhat explained here: https://wiki.fogproject.org/wiki/index.php?title=Location_Plugin
tl;dr only a master node can capture an image.
Looks like you can more or less get what you want with the location plugin though, but I’m not 100% on it.
@zingaro On your NAS, did you create an NFS shares called
images_fog/devwith 777 permissions? You will also need to create an FTP directory for both of these, and make a
Management Usernameaccount that has full access to these locations.
ok. but I need help for check my configuration !
To /images directory (Fog server) the process works fine.
but it’s enable to connect with NAS,
could you check my configuration ?
What your trying won’t work - linux cannot export an already imported NFS location.
You need to add the Nas as its own storage node. There are plenty of threads where people have done this.