Connect NAS storage to FOG
-
Hi, I want to connect de NAS storage to fog, I don’t know to do that, I try to add a new storage and put the IP of my NAS Server but doesn’t work,
In my fog I mount the NAS server and it’s work
Can you help me? Thanks alot!!!
-
As far as I know, you cannot mount a nfs storage from a nas and reexport it, which is required by fog.
-
@Tywyn said in Connect NAS storage to FOG:
As far as I know, you cannot mount a nfs storage from a nas and reexport it, which is required by fog.
This is 100% correct in most situations. I will not discuss the exception because its a fringe use.
This is roughly equivalent in MS Windows of mapping a share (drive) to computer A on computer B then trying to shared that mapped drive on computer B to computer C. i.e. You can not reshare a mapped share.
@joanmarzo FOG doesn’t support using a NAS device as a storage node, but with that said there are certain configurations you can make to get it to work.
First lets start with what manufacturer is your NAS?
Do you want to store all of your images on the NAS or do you want some stored on the FOG server and some on the NAS?
-
@george1421 said in Connect NAS storage to FOG:
This is 100% correct in most situations. I will not discuss the exception because its a fringe use.
This is roughly equivalent of mapping a drive to computer A on computer B then trying to shared that mapped drive on computer B to computer C. You can not reshare a mapped share.
@joanmarzo FOG doesn’t support using a NAS device as a storage node, but with that said there are certain configurations you can make to get it to work.
First lets start with what manufacturer is your NAS?
Do you want to store all of your images on the NAS or do you want some stored on the FOG server and some on the NAS?Hi @george1421 , thx for u reply.
My NAS is Synology RS2416+ and I want to storage all images there if is possible.
-
@joanmarzo Ok since you have a synology nas you have a few options.
The cleanest in its design and implementation is to create an iSCSI LUN on the synology nas and connect it to your FOG much like you did with the NFS mount, but using iSCSI instead. An iSCSI mounted disk looks just like a physical disk in the server to NFS.
The second option is to use NFS and configure your nas as a FOG storage node. I created a proof of concept tutorial here: https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node
In this configuration you will configure the synology NAS to appear as a FOG storage node to the target computer (no worries because the configuration is an extension of how your nas works, not changing how it works). Then in the FOG UI you will make the synology NAS the master node for the storage group and not your fog server.
-
@george1421 said in Connect NAS storage to FOG:
@joanmarzo Ok since you have a synology nas you have a few options.
The cleanest in its design and implementation is to create an iSCSI LUN on the synology nas and connect it to your FOG much like you did with the NFS mount, but using iSCSI instead. An iSCSI mounted disk looks just like a physical disk in the server to NFS.
The second option is to use NFS and configure your nas as a FOG storage node. I created a proof of concept tutorial here: https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node
In this configuration you will configure the synology NAS to appear as a FOG storage node to the target computer (no worries because the configuration is an extension of how your nas works, not changing how it works). Then in the FOG UI you will make the synology NAS the master node for the storage group and not your fog server.Hi George, I do that but i can’t see the Storage in my fog, this is the configuration:
I mount the directories in my FOG:
How do I proceed?
-
@joanmarzo I guess I have a few comments here.
- Are you using iscsi or the tutorial to make a synology nas appear as a fog storage node.
- If you are using the nas as a storage node part there are a few drawbacks in that since the synology nas isn’t a fog server it doesn’t have the reporting web pages installed. So it will not appear on your dashboard. Also for the file store and ftp paths, what you have in the picture are correct for a fog server, the paths will change to reflect the actual location on your nas. From what I remember you would have something like the volume name then the path like /volume1/images. The tutorial I had gave actual screen shots of the settings.
-
@george1421 said in Connect NAS storage to FOG:
Are you using iscsi or the tutorial to make a synology nas appear as a fog storage node.
If you are using the nas as a storage node part there are a few drawbacks in that since the synology nas isn’t a fog server it doesn’t have the reporting web pages installed. So it will not appear on your dashboard. Also for the file store and ftp paths, what you have in the picture are correct for a fog server, the paths will change to reflect the actual location on your nas. From what I remember you would have something like the volume name then the path like /volume1/images. The tutorial I had gave actual screen shots of the settings.Hi again!
I do this, I try to capture a Image and the FOG show me the next error:
-
@joanmarzo The permission denied is probably because you didn’t disable squash root. The FOS Linux images using the root user account. Most NFS implementations disable root nfs access as a security measure.
In my tutorial make sure you follow the very top post in that thread: https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node Specifically pay attention to the squash and security settings.
-
@george1421 This is my configuration:
I put the permission in the directory and doesn’t work
-
@joanmarzo Ah I see it. you have a host IP address defined. That says that only 192.168.25.92 can connect to this nfs share. The issue/problem is the target computer’s connect to this NFS share so you need to allow all or the subnet where the target computers will image from in that restriction.
-
@george1421 said in Connect NAS storage to FOG:
Ah I see it. you have a host IP address defined. That says that only 192.168.25.92 can connect to this nfs share. The issue/problem is the target computer’s connect to this NFS share so you need to allow all or the subnet where the target computers will image from in that restriction.
I do the configuration,
And the FOG change the error:
-
@joanmarzo OK good, you are past the mounting issue.
I feel that you missed some steps with this problem. The way the form works is a bit crazy because it puts new posts at the top of the forum. You need to make sure you follow the rest of the steps at the bottom of the thread: https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node/28
You are missing the files that fog checks to make sure things are setup correctly. You are almost at the finish line, just a few more steps to go.
-
@george1421 Hi George,
I do this step:
But when I put the command in my server fog this command show me this:
Any idea?
-
@joanmarzo Only a real FOG Server can run the fog replicator service. Marking the nas as a master node allows it to capture and deploy images. If you want image replications to other servers you will need to setup something outside FOG to move the images. Remember I said this configuration is NOT supported by FOG but can kind of work.