FogReplicator and Storage Nodes.

Server

FOG Version: 1.3.0-RC-36 Rev 6048

OS: Ubuntu 16.04

Description

In our environment we have 2 fog Servers, one In Northern California(SRO) and one in Southern California(MHB). The fog server in SRO runs fine, speeds are great, 3 minute laptop deployments, gigabit speed, etc. Last Friday I was working with someone in MHB showing him how to use fog and the speeds were about 100mbps. He was plugged into a switch and guessed that the switch wasn’t Gig. Later I found out from out network admin that something was saturating the link between MHB and SRO(100mb link). We found that it was the fog server. I do have a Storage Node setup from MHB that(from my understanding) is supposed to sync images from SRO. Does the storage node just tell the machine to pull images from another server in the same node? Why when I till it to pull an image that is on the local machine is it pulling from the remote machine? Should I just disable the nodes and manually sync the images from SRO to MHB? Last Friday I disabled the Storage node and today I had the network guy message me saying that it’s happening again.

Was I wrong in understanding that FogReplicator was supposed to sync images from SRO to MHB?

How can I reliably sync the images from one machine to another?

Why when I point a host at a local image is it pulling an image with the same name from the remote host?

@george1421 I didn’t know this was a multi-master setup, if that’s what you meant. I was referring to a video on just configuring a second node into an existing fog setup. With the new access control plugin and site plugin, multi-master setups are just that less a good idea.

As it stands now with the access control plugin, location plugin, and site plugin - the only benifit one stands to gain in a multi-master setup is some level of fault tolerance against the upstream box failing - and fault tolerance against the link failing - and for those two things you loose a comprehensive database/control center in a central location - a major drawback.

Maybe it was just me but a “Storage Nodes for Noobs” might be a good sticky post that explains how to setup a simple 2 server storage node.

I agree. We already have documentation on replication and the location plugin but we need an instructional video on setting up a simple two-node system. I can get a video made pretty easily on this topic, and I’ve been looking for simple topics to make videos about.

Thank you everyone, this has been resolved. I will say the replication/node setup was the most confusing thing about fog. Everything else is straight forward. Maybe it was just me but a “Storage Nodes for Noobs” might be a good sticky post that explains how to setup a simple 2 server storage node. Other than that everything has been awesome. Thanks for all your hard work.

ok…good news…it’s replicating an image…that I dont want it to(it was set to replicate). So i know replication is working now. Now to test if I deploy a machine from MHB to see if it hits SRO at all… I will keep you updated. Need to reach out to someone in MHB

[17:05:40] root@MHB-FOG-01[0]:/var/log/fog$ systemctl restart FOGImageReplicator FOGSnapinReplicator;tail -n10 -f fogreplicator.log
[05-03-17 4:01:10 am] * | This is not the master node
[05-04-17 4:11:10 am] * | This is not the master node
[05-05-17 4:21:10 am] * | This is not the master node
[05-06-17 4:31:11 am] * | This is not the master node
[05-07-17 4:41:11 am] * | This is not the master node
[05-08-17 4:51:11 am] * | This is not the master node
[05-09-17 5:01:11 am] * | This is not the master node
[05-10-17 5:11:11 am] * | This is not the master node
[05-11-17 5:21:11 am] * | This is not the master node
[05-12-17 5:31:11 am] * | This is not the master node

I’d say, from the SRO Master server, run systemctl restart FOGImageReplicator FOGSnapinReplicator just to make sure things are good to go and things will start replicating (unless you need to wait until later on.)

OK we need to get something cleared up. Tom and I have been chatting and we need to understand. At site MHB how many fog servers are installed master or slave nodes. I think we’ve been adding complexity because I misunderstood something

There are a TOTAL of 2 servers in the whole company, SRO-FOG-01 and MHB-FOG-01. Both of these machines are installed on our vmware infrastructures(no not the same ESXI hosts).