When Does FoG push the Image VIA FTP to Location Node
-
I have a Fog server that i’d like to capture an image to and have it replicate to another full fog server at a second location.
Just a couple questions.
When does the FTP transfer to storage node take place? after the image is captured on the master node? On a regular Interval? Can I watch it transfer via the bandwidth - transmit GUI?
Also, do I have to pre-create the image on the secondary server? or when it FTP’s, will it do that?
I ask, because I see the files in /images on my secondary server where it should be, but the image in the web GUI of my second location says “size on client 0 bytes” for the image.
I’m not sure what i’m doing wrong.Does my secondary server HAVE to be just a node? or can it be a full server install?
-
@Mattitn said in When Does FoG push the Image VIA FTP to Location Node:
When does the FTP transfer to storage node take place? after the image is captured on the master node? On a regular Interval? Can I watch it transfer via the bandwidth - transmit GUI?
Replication should start soon as the imaging task is complete and the image is marked OK for replication. Replication will start.
Also, do I have to pre-create the image on the secondary server? or when it FTP’s, will it do that?
No the secondary server (storage node) will get its image from the master node. There is no database on a traditional storage node so there is nothing to create there.
I ask, because I see the files in /images on my secondary server where it should be, but the image in the web GUI of my second location says “size on client 0 bytes” for the image.
There is a replication log in /opt/fog/logs that will give you an idea of what is going on.
-
@george1421 You need to ensure that your storage node is in the same storage group as your master fog node. Or replication will not happen.
I don’t know if the bandwidth indicator will tell you if the master node is replicating. The replication log will surely tell you what its working on and what (exact) file its trying to move.
-
@george1421 said in When Does FoG push the Image VIA FTP to Location Node:
Replication should start soon as the imaging task is complete and the image is marked OK for replication. Replication will start.
The image replicator has a sleep setting here:
Web Interface -> FOG Configuration -> FOG Settings -> FOG Linux Service Sleep Times -> IMAGEREPSLEEPTIME
The default sleep time is 600 seconds, which is 10 minutes.
So the image replicator by default will begin replicating the image after capture completes anywhere from 0 to 10 minutes later.
I would not recommend the secondary server being a full server - this setup isn’t supported and things can get hairy - and there’s manual work involved - nowhere in the wiki is it documented - and I wouldn’t recommend it. Especially with the awesome new features for access control coming probably next release.
For more information about replication, see these two articles:
https://wiki.fogproject.org/wiki/index.php?title=Replication
https://wiki.fogproject.org/wiki/index.php?title=Location_Plugin