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

    [Requested] Multi-Site Location Patch [Requested]

    Scheduled Pinned Locked Moved
    Tutorials
    8
    24
    17.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.
    • Lee RowlettL
      Lee Rowlett Developer
      last edited by

      turn off FOGImageReplicator Service manually (/etc/init.d/FOGImageReplicator stop)
      and then set a crontab to run the command to enable it at 6pm and then use crontab again to turn it off at 6am…

      sudo -s
      crontab -e
      add this at the bottom of the file:
      0 18 * * * /etc/init.d/FOGImageReplicator start
      0 6 * * * /etc/init.d/FOGImageReplicator stop

      1 Reply Last reply Reply Quote 0
      • B
        bfarre11
        last edited by

        Lee,

        I got some help from a co-worker, and basically set it up as a cron job that runs @ 21:00 daily. We tested to make sure that the process ended, by commenting out the sleep line. But am still curious as to how you set it up.

        1 Reply Last reply Reply Quote 0
        • B
          bfarre11
          last edited by

          [quote=“Lee Rowlett, post: 3259, member: 28”]turn off FOGImageReplicator Service manually (/etc/init.d/FOGImageReplicator stop)
          and then set a crontab to run the command to enable it at 6pm and then use crontab again to turn it off at 6am…

          sudo -s
          crontab -e
          add this at the bottom of the file:
          0 18 * * * /etc/init.d/FOGImageReplicator start
          0 6 * * * /etc/init.d/FOGImageReplicator stop[/quote]

          Thanks, I didn’t see your response before I left the other comment. Since no one should be uploading images after 6, I don’t need the process to run in a loop, and everything should be uploaded by 9.

          Thank you again for your quick answer.

          1 Reply Last reply Reply Quote 0
          • S
            Stephen Roddick
            last edited by

            Hey all,

            Just wanted to update you. The portable FOG storage nodes work well. They have been tested at 3 remote sites imaging concurrently. All went relatively well. No major hitches.

            My next issue is the [URL=‘http://fogproject.org/forum/threads/fog-multi-site-multicast.796/’]Multicast from storage nodes[/URL] for which I have opened a new thread.

            Stephen.

            1 Reply Last reply Reply Quote 0
            • P
              PatinMT
              last edited by

              Thanks for the update Stephen…interested to try it out.

              Wondering where to start looking for my issue with this.

              Right now I’m working at one of the “remote locations” (it’s summer vacation for the schools). I’ve uploaded a new image from a machine, but what I am finding is that the Upload process is pushing the image files over to the “main location”, however when I try to pull it down to another client with a “deploy”, the target client is looking for it here in the remote location.

              In both cases, the hosts are configured to be at the “remote location”, but the image upload is not saving to the remote storage node. I can copy it easy enough, but I would like to save as much time as possible.

              Is this by design? Or did I miss a step?

              Thanks, Pat

              1 Reply Last reply Reply Quote 0
              • S
                Stephen Roddick
                last edited by

                [quote=“PatinMT, post: 3976, member: 913”]Thanks for the update Stephen…interested to try it out.

                Wondering where to start looking for my issue with this.

                Right now I’m working at one of the “remote locations” (it’s summer vacation for the schools). I’ve uploaded a new image from a machine, but what I am finding is that the Upload process is pushing the image files over to the “main location”, however when I try to pull it down to another client with a “deploy”, the target client is looking for it here in the remote location.

                In both cases, the hosts are configured to be at the “remote location”, but the image upload is not saving to the remote storage node. I can copy it easy enough, but I would like to save as much time as possible.

                Is this by design? Or did I miss a step?

                Thanks, Pat[/quote]

                Hey Pat,

                Because of how the Location patch is coded uploaded images get pushed back to the main storage node. This is because of the Image Replicator service.

                As far as I can tell* an image that is added to a secondary storage node is not uploaded back to the master storage node. Transfers are downwards only. So the image needs to be uploaded to the master storage node so that it can then be redistributed throughout the storage group.
                [INDENT=1]* I only took a quick look at that part of the code so I may be misinterpreting this.[/INDENT]

                You can find the code in /var/www/fog/service/Pre_Stage1.php for this function.

                Stephen.

                1 Reply Last reply Reply Quote 0
                • S
                  Stephen Roddick
                  last edited by

                  Update on the Portable Storage Nodes.

                  We now have 3 laptops configured as storage nodes across 15 location.

                  There is however an issue I have encountered with the web interface’s Dashboard on the Home page. What seems to be happening is that the dashboard is trying to gather information the 18 storage nodes (multiple entries for each laptop) that FOG has in it’s database but mostly not connected. This is causing navigation away from the Home page to stall while the information gathering completes/fails. It will get to the other pages but it takes it’s time. All other page changes in the web interface appear run as quickly as with only the master node in place.

                  With 18 storage nodes defined and a max 4 servers connected at any one point, getting away from the Home page can take up to a minute.

                  It’s something to look into if the Location patch is going to be integrated into the full version eventually.

                  FYI

                  Stephen

                  1 Reply Last reply Reply Quote 0
                  • D
                    djm79
                    last edited by

                    I have noticed that after applying this you can’t delete computer from the web GUI I 'm no coding master but if you have a chance could you take a look and see if this could be fixed.

                    1 Reply Last reply Reply Quote 0
                    • E
                      Ed Blom
                      last edited by

                      We’ve noticed the same thing, also we used to be able to search for example by service tag on a Dell, but now that returns nothing…

                      1 Reply Last reply Reply Quote 0
                      • D
                        djm79
                        last edited by

                        This is a change from 0.31 to 0.32 you have to use 0.31 for this patch to work. It work great on a 0.31 system for me along with some other modifications we can image machines all on the remote network with very little WAN traffic.

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 2 / 2
                        • First post
                          Last post

                        150

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project