----- Original Message ----- From: "Jesus M. Rodriguez" <[email protected]>
To: <[email protected]>
Sent: Friday, January 09, 2009 10:30 AM
Subject: Re: [Spacewalk-list] question about repo's


On Fri, Jan 9, 2009 at 4:45 AM, Michiel van Es <[email protected]> wrote:
Hi,

I am hosting spacewalk 3.0 on a CentOS 5.2 server and have 2 scripts for
syncing the repo's and pushing the repo's to spacewalk.

Both actions download and copy the rpm's.

The reposync put the downloaded repo's in

[r...@devmx01 repodata]# cd /repodata/repositories
[r...@devmx01 repositories]# ls
CentOS4_updates  CentOS5
[r...@devmx01 repositories]# cd
[r...@devmx01 repositories]# du -hs
12G     .

Whis is 12 GB

But then the push into Spacewalk also put the rpm's in /repodata/sattelite:

[r...@devmx01 repodata]# cd satellite/
[r...@devmx01 satellite]# du -hs
11G     .

I'm not sure why we're putting packages in /repodata/satellite unless your
/var also points to /repodata. I'm going to assume that is the case.
Spacewalk stores all of it's packages in /var/satellite which is why you would
see that duplication. Unfortunately, that is how it currently works.

Now I have at 2 places the same rpm.
Is it a possibility to remove the /repodata/repositories/*.rpm's ?

Once the rpms have been pushed to Spacewalk and land in /var/satellite,
we wouldn't need any other rpms just the ones in /var/satellite.

If you delete the locally synced data after pushing into spacewalk, then do a reposync, you will effectively be downloading all the packages again. Which doesn't sound like you will gain anything. I guess if you just did the reposync on the base packages, then you could safely delete them after pushing into spacewalk, but with 'updates' or any other repos that are not static, you would have the same issue. Here's a thought, maybe you could zero out the packages after pushing into spacewalk. Which would require a custom script. And you will need to do a filelist before and after you synchronize so that you could take the diff and only push the new files into spacewalk, then zero them out after the push. That would save you from keeping duplicates of all the packages and a lot of disk space. However reposync doesn't have that functionality, so a custom script would need to be written.

I mean: why are the downloaded rpm's needed on both places on the
filesystem?

We only needed them in /var/satellite.

Is there a way to save some diskspace?
We also want to use the rpmforge repo to sync (we use it on some of our
CentOS clients) but we got not enough disk space to do so ;'-(

Thanks in advance for any help.


Sincerely,
jesus

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

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

Reply via email to