• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Image not syncing between nodes

Scheduled Pinned Locked Moved Solved
FOG Problems
4
29
7.3k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    msi Testers @Wayne Workman
    last edited by Jan 31, 2018, 10:17 PM

    @wayne-workman Sure, thanks

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott @Wayne Workman
      last edited by Jan 31, 2018, 11:50 PM

      @wayne-workman he’s using location plugin so uploads will go to the hosts location even if the location node is not a master. Replication only happens from master nodes though. Hope this helps.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      G 1 Reply Last reply Jan 31, 2018, 11:56 PM Reply Quote 0
      • G
        george1421 Moderator
        last edited by Jan 31, 2018, 11:54 PM

        I guess before we dig into this what I’m (as well as Wayne) is having an issue with understanding is that you are saying something is happening (or not happening) that is not normally possible with FOG.

        Let me state the rules according to FOG

        1. Only full FOG servers (ones with local databases) can replicate images. The storage nodes do not have the replicator service installed. Any images that were able to make it to a storage node will aways remain there since there is no replicator service to move them.
        2. FOG replication is aways a push replication and never a pull replication.
        3. Only master nodes in each storage group is authorized to replicate images. If you have one or more full fog servers in a storage group only the master node in that storage group is allowed to replicate (push) images to other nodes in its storage group.
        4. Only master nodes in each storage group can capture images. All nodes in each storage group can deploy images.

        So what you are saying that your storage node at the branch captured an image and is not replicating to the master mode at HQ. The short answer is you are right, but what you suggest is not possible.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        1 Reply Last reply Reply Quote 0
        • G
          george1421 Moderator @Tom Elliott
          last edited by george1421 Jan 31, 2018, 5:57 PM Jan 31, 2018, 11:56 PM

          @tom-elliott said in Image not syncing between nodes:

          he’s using location plugin so uploads will go to the hosts location even if the location node is not a master.

          Well who the hell programmed that? That is counter to what we’ve been taught!!

          @msi Well then, I guess the system is working as designed.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          M W 2 Replies Last reply Feb 1, 2018, 1:28 AM Reply Quote 0
          • M
            msi Testers @george1421
            last edited by Feb 1, 2018, 1:28 AM

            @george1421 It was working up until as Tom mentioned, by using location plugin. However, its not working today. I just don’t understand why suddenly it stopped working.

            W 1 Reply Last reply Feb 1, 2018, 2:47 AM Reply Quote 0
            • W
              Wayne Workman @msi
              last edited by Wayne Workman Jan 31, 2018, 8:51 PM Feb 1, 2018, 2:47 AM

              @msi said in Image not syncing between nodes:

              I just don’t understand why suddenly it stopped working.

              There’s no telling. Probably to get this going though, you need to manually transfer the image with rsync from the storage node to the master node. Then this should be fixed.

              If you run this command from your Master Node, it will prompt you for the storage node’s local fog user’s password. You can find that in that node’s storage management area or from this file on it: /opt/fog/.fogsettings

              rsync <options> <source> <destination>

              rsync -r --bwlimit=6250 fog@10.134.200.230:/images/Laptop2.1 /images
              rsync -r --bwlimit=6250 fog@10.134.200.230:/images/Laptop /images
              

              The 6250 is supposed to be 6250Kbps, or 50Mbps. If you want slower, you can do the math to figure out what you need with the calculator I reference below.

              scp is another option if the rsync commands don’t work out. Something like this from the master node and again you’d be prompted for the remote node’s fog password.

              scp -r fog@10.134.200.230:/images/Laptop2.1 /images
              scp -r fog@10.134.200.230:/images/Laptop /images
              

              References:
              https://www.cyberciti.biz/tips/linux-use-rsync-transfer-mirror-files-directories.html
              https://linux.die.net/man/1/rsync
              https://www.checkyourmath.com/convert/data_rates/per_second/megabits_kilobytes_per_second.php

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
              Daily Clean Installation Results:
              https://fogtesting.fogproject.us/
              FOG Reporting:
              https://fog-external-reporting-results.fogproject.us/

              M 1 Reply Last reply Feb 5, 2018, 6:26 PM Reply Quote 0
              • W
                Wayne Workman @george1421
                last edited by Wayne Workman Jan 31, 2018, 8:58 PM Feb 1, 2018, 2:54 AM

                @george1421 said in Image not syncing between nodes:

                That is counter to what we’ve been taught!!

                I guess when you think about it, this behavior is better than trying to run a capture for 10 days across a 5Mps link to a master node on the other side of the planet. Worst case scenario to get the image where it belongs is you put it onto a USB stick and just mail it (Or perhaps IP over Avian Carriers?).

                @msi I’m very curious now, can you deploy the image successfully at the remote site even with this replication problem?

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                M 1 Reply Last reply Feb 1, 2018, 5:14 PM Reply Quote 0
                • M
                  msi Testers @Wayne Workman
                  last edited by Feb 1, 2018, 5:14 PM

                  @wayne-workman said in Image not syncing between nodes:

                  @msi I’m very curious now, can you deploy the image successfully at the remote site even with this replication problem?

                  With the replication problem, NO

                  1 Reply Last reply Reply Quote 0
                  • M
                    msi Testers @Wayne Workman
                    last edited by Feb 5, 2018, 6:26 PM

                    @wayne-workman said in Image not syncing between nodes:

                    If you run this command from your Master Node, it will prompt you for the storage node’s local fog user’s password. You can find that in that node’s storage management area or from this file on it: /opt/fog/.fogsettings

                    rsync <options> <source> <destination>

                    rsync -r --bwlimit=6250 fog@10.134.200.230:/images/Laptop2.1 /images
                    rsync -r --bwlimit=6250 fog@10.134.200.230:/images/Laptop /images
                    

                    The 6250 is supposed to be 6250Kbps, or 50Mbps. If you want slower, you can do the math to figure out what you need with the calculator I reference below.

                    It took some times but it is working after issuing the rsync command. I had to delete the image from the NJED node after rsync completion.

                    1 Reply Last reply Reply Quote 1
                    • 1
                    • 2
                    • 2 / 2
                    2 / 2
                    • First post
                      23/29
                      Last post

                    193

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project