why mirrors ?

Raf Nijskens rnijskens at gmail.com
Fri Jan 5 06:40:34 PST 2007


Pascal Bleser wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Mikus Grinbergs wrote:
>   
>> Running SUSE 10.1 64bit.  Issued 'smart update'.
>>
>> It downloaded (apparently successfully) files primary.xml.gz and
>> filelists.xml.gz for Packman from a mirror in Germany.  Then it
>> *again* downloaded those same two files from a mirror in Belgium
>> (apparently successfully).  Now it is **again** downloading those
>> same two files from a mirror in Austria !!!
>>
>> At approximately 1.0 KBps (my dial-up line has other transfers
>> going on, too), it seems to be taking _forever_ for the 'smart
>> update' to complete.  WHY does smart have to download more than
>> one copy of these (huge) files (I see no error messages) ??
>>     
>
> It doesn't. The only situation where I could imagine smart does that is
> if the mirrors are badly out of sync.
>
> When you run smart update, it only fetches a small file to check whether
> smart's local copy of the repository metadata is still up-to-date or not:
> - - for rpm-md it's repodata/repomd.xml (951 bytes for my repository)
> - - for yast2 it's media.1/media (22 bytes for my repository)
>
> media.1/media contains a serial number and repodata/repomd.xml contains
> checksums and timestamps for the individual metadata files
> (primary.xml.gz, filelists.xml.gz and other.xml.gz).
> If the remote serial number/timestamp is different from the local one
> (in /var/lib/smart/channels/), it will fetch the remote metadata files.
> If not, then it won't.
>
> If you don't like the mirrors, just remove all the mirrors and change
> the channel baseurl's to your preferred mirror.
>
> cheers
> - --
>   -o) Pascal Bleser     http://linux01.gwdg.de/~pbleser/
>   /\\ <pascal.bleser at skynet.be>       <guru at unixtech.be>
>  _\_v The more things change, the more they stay insane.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
>
> iD8DBQFFnNp7r3NMWliFcXcRAqi0AJ9Lo+G1l0RML4x6Z5HjGsVXxKdlZgCeMro7
> F+/NJVpd/M4UfRLH72VEtcU=
> =CTie
> -----END PGP SIGNATURE-----
>
>   
Where does smart store that information about its channels? I removed 
/var/lib/smart/cache en did smart channel --remove-all, but he still 
doesn't check the channel again. Prior to smart 0.50rc1 it was the case 
that it checked and parsed again the channels.

Thx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.labix.org/pipermail/smart-labix.org/attachments/20070105/e7e48477/attachment-0003.htm>


More information about the Smart mailing list