Add NAS for storage with FOG
-
@george1421 said in Add NAS for storage with FOG:
r NAS as a Storage N
What about the default storage? I need to change the paths? I set the same paths for NAS could you send me an image/instructions for that?
-
@firej I done what you told me add new storage for NAS master it but know it tells me Could not mount images folder (bin/fog.download) Args Passed: Reason: mount: mounting xxx.xxx.xxx.xxx:/home/fog/images on /images failed: Permission denied
-
@firej Also I notice in the web management the NAS Storage is 0% on Free and Used
-
@firej I haven’t setup a Qnap device as a FOG storage node, I have with a Synology NAS. It is documented here: https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node
You do need to ensure the nas will allow root to connect to the share.
-
@firej said in Add NAS for storage with FOG:
@firej Also I notice in the web management the NAS Storage is 0% on Free and Used
This is because the NAS isn’t a FOG server, so it can’t report back to the FOG Web gui. Using a NAS as a storage node is not directly supported by FOG. Does it work, most of the time. But its not something that is officially supported.
-
@firej said in Add NAS for storage with FOG:
Could not mount images folder (bin/fog.download) Args Passed: Reason: mount: mounting xxx.xxx.xxx.xxx:/home/fog/images on /images failed: Permission denied
You can test this from the FOG server too. Login to the fog server as root.
Then issue the following command:sudo mount -t nfs xxx.xxx.xxx.xxx:/home/fog/images /mnt
See if the NAS will allows you to mount the nfs share. To unmount the shareumount /mnt
-
@george1421 It allows me to mount it I have tried manually with mount also for auto i put it on /etc/fstab i tried the echo for test.txt all are ok when I try to deploy image I get this message
-
@firej OK a couple of things.
The fog server can not mount a remote nfs share and then reshare that share. It won’t work.
What you are doing is setting up your NAS as a “fake” fog server. Your clients will connect to that share on the NAS, and never the FOG server.
-
old but maybe still working
https://forums.fogproject.org/topic/1811/how-to-setup-a-fog-storage-node-without-installing-fog -
@x23piracy I tried your instructions, I have set a new storage from nas i set full access to folders, but when i tried to deploy my laptop it tells me “Operation not supported”, but in the management I have full review of my NAS. It pitty that doesn’t have this feature and I think it’s very important
-
@firej Are you using the location plugin to tell the target computers to use the nas for imaging?
IF that doesn’t work then we may need to schedule a debug deploy and single step through a deployment until we get the error. From there we can look at the state of the machine. Where is the FOS local /images mapped to is a valid question.
-
@george1421 OK! At last it’s now working! the info from my friend here : https://forums.fogproject.org/topic/8668/qnap-nas-storage worked awesome! It’s sad that I cannot see the status of my NAS storage on my web fog management->home but I could see it on my NAS