FOG nodes not in sync
-
@mronh The current changes are on a new branch
replication
(link) which I will merge intoworking
after a first round of feedback. It will all be in the next official release.Not sure if you have ever installed FOG unstable/testing. This is done using git to checkout the current code and install from that.
git clone https://github.com/FOGProject/fogproject/ cd fogproject git checkout replication cd bin ./installfog.sh
Important notice: I had to change some of the hashing code too and therefore nodes being on different versions (1.5.4 or working VS. replication branch) will end up replicating images over and over again. So you need to have all nodes on the replication branch or setup up a separate test environment!!
Please make sure you stop replication first (
systemctl stop FOGImageReplicator
), then update the storage node and after that update master node. -
@Sebastian-Roth This is what I get when I try and checkout replication:
error: pathspec ‘replication’ did not match any file(s) known to git.
-
@Sebastian-Roth never mind. I had to remove what I had checked out already “rm -rf /fogproject”
-
@Sebastian-Roth Okay I updated all 3 nodes to the “replication” branch and then I updated the master and restarted the sync service.
-
@Sebastian-Roth It seems to be properly sync-ing now. I’ll check it tomorrow after a day of sinc-ing and let you know the results. The Dallas FOG Node is definitely growing in data
-
@kafluke Thanks for the feedback so far. Keep an eye on the logs and let us know if you feel this is working properly.
You might want to do a quick file size check on all your nodes tomorrow:
du -k --max-depth=1 /images | sort -k2 > /tmp/imagelist_xxx_node.txt
Do that on all four nodes and copy those files over to your PC. Then use some kind of diff tool (e.g. www.quickdiff.com) to compare those file contents.
-
@Sebastian-Roth It’s definitely working now. I’m watching the hard drive space on my Dallas node steadily go up. Thanks for fixing this!
-
@Sebastian-Roth Ok it worked. All nodes are now in sync with the master node! Thanks again for the help! Looking forward to the next release
-
@kafluke Thanks for the feedback! Do you see “file mismatches” anymore in the logs now?
Will mark this solved now. Those fixes will be merged into the working branch and from there go into the next release.
-
@Sebastian-Roth No more “file mismatches”. Thanks again.
-
@Sebastian-Roth Did you ever merge this into working branch? I had to start over from scratch on a new FOG server and wanted to know if I need to check out “replication” or “working”
-
@kafluke You’d want to checkout
dev-branch
.Working is more or less a stand in for Alpha RC’s now.
Dev-branch is a bug fix branch