FAQ
under 5.6 I have a script that runs every night to rsync the repodata
for local installations.
I added the 6.0 to do the same.

Something seems wrong now for 6.0. I do the same thing and I get errors
from my local repo at install time.
Seems like the cyrus-sasl package is never happy and aborts the
installation.

Is something wrong with the script below? It seems like it successfully
copies the files.
I ran it manually and did not see any errors.

Any thoughts?

Thanks,

Jerry

# The kickstart files point to the "repo"
#
# This file will creat the directories and copy the files
#
for VERSION in "5.6" "6.0"
do
mkdir -p /var/www/html/centos/$VERSION/updates/x86_64/RPMS
mkdir -p /var/www/html/centos/$VERSION/updates/x86_64/repodata

rsync -av
rsync://mirrors.kernel.org/mirrors/centos/$VERSION/updates/x86_64/RPMS/*
/var/www/html/centos/$VERSION/updates/x86_64/RPMS
rsync -av
rsync://mirrors.kernel.org/mirrors/centos/$VERSION/updates/x86_64/repodata/*
/var/www/html/centos/$VERSION/updates/x86_64/repodata
done
~

Search Discussions

  • Joseph L. Casale at Jul 20, 2011 at 3:26 pm
    for VERSION in "5.6" "6.0"
    Check your httpd error log for a 404:)
    Just a WAG, I presume you modified your 5x installs to not look in the default
    "5" location, where point releases get symlinked too once they are current.

    Your 6.0 install looks for a "6" directory.
  • Devin Reade at Jul 20, 2011 at 3:32 pm
    Also try an invocation of rsync with the checksum flag; that'll
    catch any files that might be corrupted. It does increase server
    load and rsync run time, though, so you should probably disable it
    again afterwards.

    Devin
  • Joseph L. Casale at Jul 20, 2011 at 3:47 pm

    It does increase server
    load and rsync run time, though, so you should probably disable it
    again afterwards.
    That's why most repo's don't allow the use of it, I use the same master
    as you Jerry, and they are certainly far too large to allow that.
  • Paul Heinlein at Jul 20, 2011 at 3:56 pm

    On Wed, 20 Jul 2011, Jerry Geis wrote:

    under 5.6 I have a script that runs every night to rsync the repodata
    for local installations.
    I added the 6.0 to do the same.

    Something seems wrong now for 6.0. I do the same thing and I get errors
    from my local repo at install time.
    Seems like the cyrus-sasl package is never happy and aborts the
    installation.

    Is something wrong with the script below? It seems like it successfully
    copies the files.
    I ran it manually and did not see any errors.

    Any thoughts?

    Thanks,

    Jerry

    # The kickstart files point to the "repo"
    #
    # This file will creat the directories and copy the files
    #
    for VERSION in "5.6" "6.0"
    do
    mkdir -p /var/www/html/centos/$VERSION/updates/x86_64/RPMS
    mkdir -p /var/www/html/centos/$VERSION/updates/x86_64/repodata

    rsync -av
    rsync://mirrors.kernel.org/mirrors/centos/$VERSION/updates/x86_64/RPMS/*
    /var/www/html/centos/$VERSION/updates/x86_64/RPMS
    rsync -av
    rsync://mirrors.kernel.org/mirrors/centos/$VERSION/updates/x86_64/repodata/*
    /var/www/html/centos/$VERSION/updates/x86_64/repodata
    done
    Here's my script. Obviously, it picks up the os/ tree as well as the
    updates/ tree. So far, no problems with 5.x or 6.x:

    #!/bin/sh
    for VERS in "5.6" "6.0"; do
    SRC="ftp.osuosl.org::centos/${VERS}/"
    DEST="/srv/mirrors/centos/${VERS}/"
    echo "-----------------------------------------------------------"
    echo "Sync-ing CentOS $VERS with $SRC"
    echo
    /usr/bin/rsync -avSH \
    --exclude "isos" --exclude "centosplus" --exclude "extras" \
    $SRC $DEST
    echo "-----------------------------------------------------------"
    done

    --
    Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcentos @
categoriescentos
postedJul 20, '11 at 2:48p
activeJul 20, '11 at 3:56p
posts5
users4
websitecentos.org
irc#centos

People

Translate

site design / logo © 2022 Grokbase