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

How do I schedule FOG image replication for after hours?

Scheduled Pinned Locked Moved Solved
FOG Problems
3
6
1.1k
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.
  • K
    kafluke
    last edited by Mar 16, 2018, 12:57 PM

    I’m on CentOS 7 using FOG 1.5.0. Can anyone tell me how to schedule image replication for after hours? It’s killing our daytime bandwidth to have it replicate to so many storage nodes during work hours. I’ve read that I need to use a cron job to start the service and then another cron job to stop it. Can anyone tell me the exact Linux commands to do this? I’m a Windows guy and this particular Linux command is evading me.

    W 1 Reply Last reply Mar 16, 2018, 1:55 PM Reply Quote 0
    • G
      george1421 Moderator @kafluke
      last edited by Mar 21, 2018, 8:58 PM

      @kafluke I would start here and review this document the cron schedule is pretty powerful, but very cryptic. https://en.wikipedia.org/wiki/Cron

      Once you are totally lost you can start with this process.

      Switch over to the root account by issuing this command at the linux command prompt.
      sudo su -
      Then edit the crontab (the config file that manages cron) with
      crontab -e
      once in the crontab editor you might put something in there like this (don’t blindly copy and paste it in, really understand what its doing)

      0 7 * * * systemctl stop FOGImageReplicator
      0 18 * * * systemctl start FOGImageReplicator
      

      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
      • W
        Wayne Workman @kafluke
        last edited by Mar 16, 2018, 1:55 PM

        @kafluke Currently, the only way to do it is with cron jobs that start or stop the FOGImageReplicator.service Are you familiar with cron jobs?

        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/

        K 1 Reply Last reply Mar 21, 2018, 8:00 PM Reply Quote 0
        • K
          kafluke @Wayne Workman
          last edited by Mar 21, 2018, 8:00 PM

          @wayne-workman Thanks for the reply. Like I mentioned in my OP I don’t know how to make a cron job to do this but I’ll look into it further. Thanks for the info.

          G 1 Reply Last reply Mar 21, 2018, 8:58 PM Reply Quote 0
          • G
            george1421 Moderator @kafluke
            last edited by Mar 21, 2018, 8:58 PM

            @kafluke I would start here and review this document the cron schedule is pretty powerful, but very cryptic. https://en.wikipedia.org/wiki/Cron

            Once you are totally lost you can start with this process.

            Switch over to the root account by issuing this command at the linux command prompt.
            sudo su -
            Then edit the crontab (the config file that manages cron) with
            crontab -e
            once in the crontab editor you might put something in there like this (don’t blindly copy and paste it in, really understand what its doing)

            0 7 * * * systemctl stop FOGImageReplicator
            0 18 * * * systemctl start FOGImageReplicator
            

            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
            • K
              kafluke
              last edited by Mar 27, 2018, 2:05 PM

              @george1421 thank you so much! These are even the exact times that I needed to set the job for! You da man! This can be marked resolved now.

              G 1 Reply Last reply Mar 27, 2018, 3:19 PM Reply Quote 0
              • G
                george1421 Moderator @kafluke
                last edited by Mar 27, 2018, 3:19 PM

                @kafluke said in How do I schedule FOG image replication for after hours?:

                @george1421 thank you so much! These are even the exact times that I needed to set the job for! You da man! This can be marked resolved now.

                That is why I get paid the big bucks… oh wait… never mind.

                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 2
                • 1 / 1
                1 / 1
                • First post
                  6/6
                  Last post

                245

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project