On 24.06.2009, at 13:44, John Hodrien wrote:

On Wed, 24 Jun 2009, Shaun Rampersad wrote:

Thanks for the reply.

I'm using the following entry in my yum repo file

[Centos4-x86_64-base]
name=CentOS-$releasever - Base
#baseurl=http://centos.mirror.ac.za/4/os/x86_64/
baseurl=http://mirror.ukhost4u.com/centos/4/os/x86_64/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4

I changed mirrors above to test if it was a problem with the mirror

When I run the following command, it syncs 486 packages only
#> reposync --repoid=Centos4-x86_64-base

[Centos4-x86_64-base: 485 of 486 ] Skipping existing CentOS/ RPMS/zlib-1.2.1.2-1.2.i386.rpm [Centos4-x86_64-base: 486 of 486 ] Skipping existing CentOS/ RPMS/zlib-devel-1.2.1.2-1.2.i386.rpm

Surely there has to be more than 486 packages on the mirror? The same happens with other repo's although they have different counts

So, I pull down http://mirror.ukhost4u.com/centos/4/os/x86_64/, strip the crud
off and...:

grep -v x86_64 index.html |wc -l
486

I'm guessing you're doing the reposync on a 32bit machine?

reposync --repoid=Centos4-x86_64-base --arch=x86_64

Perhaps?

I think too, because i reposync 32bit on 32bit guest and 64 bit on 64 bit guest for centos repos with only --repoid option.

--
LOGFILE=/var/log/sync_repo2spacewalk.log
REPODIR=/path/repo/spacewalk
ARCH=i386
USER=repouser
PWD=repopw
SERVER=http://spacewalk.domain.local
OS=centos-5
REPOS="base extras centosplus updates"
OPTS="--username=$USER --password=$PWD --newest -v --force"


echo "Start sync repo 3 spacewalk for $REPODIR/$ARCH" > $LOGFILE
cd $REPODIR/$ARCH && \
reposync --repoid=base --repoid=extras --repoid=centosplus -- repoid=updates >> $LOGFILE rhnpush $OPTS --server=$SERVER/APP --channel=$OS-base-$ARCH --dir= $REPODIR/$ARCH/base/CentOS >> $LOGFILE rhnpush $OPTS --server=$SERVER/APP --channel=$OS-extras-$ARCH --dir= $REPODIR/$ARCH/extras/RPMS >> $LOGFILE rhnpush $OPTS --server=$SERVER/APP --channel=$OS-centosplus-$ARCH -- dir=$REPODIR/$ARCH/centosplus/RPMS >> $LOGFILE rhnpush $OPTS --server=$SERVER/APP --channel=$OS-updates-$ARCH --dir= $REPODIR/$ARCH/updates/RPMS >> $LOGFILE
--
And with this i get the 32bit repo two spacewalk daily.
I think something with cobbler 2 spacewalk sync would be more practicle?

Thomas

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to