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.
-
@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.