Red Hat Bugzilla – Bug 218809
RHNSat package lookaside from a previous satellite install
Last modified: 2008-10-29 10:21:51 EDT
Description of problem:
To populate an RHN Satellite with thousands of RPMs (mine has >40k) you must
either a) download them all over the WAN (slow and expensive), or b) download a
metric ton of content CDs, explode them, then import them (which is slow,
expensive, and requires 2X the disk space to accomplish). As I already had a
satellite server with a 120GB of /var/satellite packages, why couldn't
satellite-sync use those?
So, here's a hackish patch to add a package lookaside. When it wants to
download an RPM, it can look in /mnt/satellite and see if the package exists
there. If so, don't download it but just use the "local" copy. This sped up my
syncing from *days* to *minutes*.
Please consider something along these lines for future Satellite releases. This
patch is a hack that works, but would be good to be a command line option,
specifying the dir (instead of hard-coding /mnt/satellite).
Version-Release number of selected component (if applicable):
Created attachment 143067 [details]
User firstname.lastname@example.org's account has been closed
These have been open for years with no investigation or resolution. Since then the code base has moved on significantly, such that many of these no longer would apply to the current spacewalk code. I'm closing these requests in the hope they're no longer necessary, or if they are, they'll get discovered anew.