How work the fog storage (nodes, groups, replication ...)
-
@arnaudrigole You are right fog replication isn’t a plugin it is built into the system. What IS a plugin that you will probably want is the location plugin. That allows you to assign storage nodes and client computers together by site. But storage nodes and master nodes are part of FOG 1.2.0 trunk build (maybe 1.2.0 stable but I haven’t used that in over 1.5 years).
Just for clarity the target computers speak to the storage nodes (master or slave) over NFS. The master and storage nodes replicate with FTP.
I started to put together a tutorial on setting up a 2012 server as a storage node. I ran into an issue and then the developers added some code to make it work. But, I haven’t had time to finish the document because of my work schedule. Here is the basics of what has to be setup to make a windows slave storage node. https://forums.fogproject.org/topic/6941/windows-server-as-fog-storage-node-reboot
I understand you are using 2008 R2 server so some of the powershell commands won’t work, but you should see what needs to be done. Once you have FTP server installed and setup correctly on the windows storage node the images should replicate even if you don’t have the NFS part setup. -
@arnaudrigole said:
(like my first question to george, is fog replication basically installed & configured with fog)
When FOG is setup replicated is installed and configured for the Master node only. When you add a FOG storage node then the slaves are configured as part of the setup process. When you add a Windows slave storage node then you have to setup the storage node configuration on the Master node by hand.
-
@george1421
George, could you explain how to do that powershell cmds in 2008r2? or maybe with graphic interface?Set-ItemProperty "IIS:\Sites\FOGFtpSite" -Name ftpServer.security.ssl.controlChannelPolicy -Value 0 Set-ItemProperty "IIS:\Sites\FOGFtpSite" -Name ftpServer.security.ssl.dataChannelPolicy -Value 0 Set-ItemProperty "IIS:\Sites\FOGFtpSite" -Name ftpServer.security.authentication.basicAuthentication.enabled -Value $true Set-ItemProperty "IIS:\Sites\FOGFtpSite" -Name ftpserver.userisolation.mode -Value 4 Add-WebConfiguration "/system.ftpServer/security/authorization" -value @{accessType="Allow";roles="fog_users";permissions="Read,Write";users=""} -PSPath IIS:\ -location "FOGFtpSite" Restart-WebItem "IIS:\Sites\FOGFtpSite"
-
@arnaudrigole put the lines into a ps script .ps1 and create snapin (powershell based)
Regards X23
-
@x23piracy
I don’t understand? i have to setup the ftp server on windows 2008r2, which isn’t a client of fog
And again the powershell file will not work on 2008r2 which is radically different of 2012 -
@arnaudrigole oh sorry i thought you would like to execute it after client imaging
-
@x23piracy
I’m just searching how to make my setup work …
Need to store images on that f****g 2008r2 and its really HARD! Currently, my problem is located on image upload: when the upload task finish, the .Img files stay on /images/dev/mac@ddrs/ and they don’t move in /images/imagenamedefinedonwebguiSome people of fog support told me that its an ftp issue, (FTP to transfer /images/dev on /images , why don’t use a simply CP cmd, in local situation???) and i don’t understand why. It will be never resolved, because i think nobody understand (my fault maybe, i don’t write english very well) my configuration and issues i encounter :(((! I needed to write over 7 or 8 threads for the same issue, each time we resolve 1 step, but each next step i encounter another issue !!..
-
-
I translated the 2012 instruction to Windows 2008 commands. I have not tested these commands yet, but in general they should configure a windows 2008 server into a FOG storage node.
https://forums.fogproject.org/topic/6941/windows-server-as-fog-storage-node-reboot/9
-
@arnaudrigole said :
Some people of fog support told me that its an ftp issue, (FTP to transfer /images/dev on /images , why don’t use a simply CP cmd, in local situation???)
You have to remember the brains for FOG is on the FOG Master node. Consider if your storage node is located in another city connected via MPLS. A copy command issued by the FOG master node, would transfer the image from the storage node /images/dev/macaddr to the master node and then from the master node to /images/{fog_sys_name}. Now with FOG using ftp, the FOG master node connectes to the storagenode via FTP and then issues the move command via ftp. The FTP Server (in this case the storage node) just moves the file locally and no network traffic is generated. Once the move is complete the FOG server verifies the move and then disconnects.
-
@george1421
Oh ok, thanks for the precisions.Let’s work about ftp issues!
Thank you for your work george, appreciate it !!!
I’ll try it and keep you up. -
This might help:
https://wiki.fogproject.org/wiki/index.php?title=Location_Plugin