Differences

This shows you the differences between two versions of the page.

Link to this comparison view

manually_running_runmirrors [2013/07/16 17:55]
chekkaa created
manually_running_runmirrors [2013/07/16 17:55] (current)
chekkaa
Line 1: Line 1:
 If you're messing around with the debian/​ubuntu ftpsync scriptset on the ftp cluster or adding a new push mirror, sometimes you might want to run the runmirrors script manually to ensure that clients are actually getting pushed to.  Now, this stuff is still mostly black magic to me, but I have found that this works: If you're messing around with the debian/​ubuntu ftpsync scriptset on the ftp cluster or adding a new push mirror, sometimes you might want to run the runmirrors script manually to ensure that clients are actually getting pushed to.  Now, this stuff is still mostly black magic to me, but I have found that this works:
  
-- Go to ftp-osl and cd to /​data/​mirror/​ftpsync/​bin. +  ​- Go to ftp-osl and cd to /​data/​mirror/​ftpsync/​bin. 
-- Edit the runmirrors script and change the $BASEDIR near the top to "/​data/​mirror/​ftpsync"​. +  - Edit the runmirrors script and change the $BASEDIR near the top to "/​data/​mirror/​ftpsync"​. 
-- Save it and then run the script with "​./​runmirrors debian"​ or "​./​runmirrors ubuntu",​ depending on which repo you want to push. +  - Save it and then run the script with "​./​runmirrors debian"​ or "​./​runmirrors ubuntu",​ depending on which repo you want to push. 
-- If the push worked, this will create a Archive-Update-Required-$fqdn file in the root of the repo on every server it pushes to, such as at http://​ftp-nyc.osuosl.org/​pub/​ubuntu/​Archive-Update-Required-ftp-nyc.osuosl.org. ​ This file will then be changed to Archive-Update-in-Progress-$fqdn once the server starts the update, and then will be deleted after the sync completes. ​ The syncs can take a while (on a scale of hours), so don't be surprised if it hangs around for a while. +  - If the push worked, this will create a Archive-Update-Required-$fqdn file in the root of the repo on every server it pushes to, such as at http://​ftp-nyc.osuosl.org/​pub/​ubuntu/​Archive-Update-Required-ftp-nyc.osuosl.org. ​ This file will then be changed to Archive-Update-in-Progress-$fqdn once the server starts the update, and then will be deleted after the sync completes. ​ The syncs can take a while (on a scale of hours), so don't be surprised if it hangs around for a while. 
-- If the push didn't work, the runmirrors script will likely give you an error message, such as "​Permission denied (publickey)"​. +  - If the push didn't work, the runmirrors script will likely give you an error message, such as "​Permission denied (publickey)"​. 
-- Run cfengine (cfagent -q or cfexecd -Fq) to set the runmirrors script back to normal.+  - Run cfengine (cfagent -q or cfexecd -Fq) to set the runmirrors script back to normal.
 
manually_running_runmirrors.txt · Last modified: 2013/07/16 17:55 by chekkaa
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki