/var/satellite/redhat filling up. Sat v5.6
Hello all,
Is there a way to purge/clean /var/satellite/redhat? I see in /var/satellite/redhat/NULL has many package directories, but not show how many are still valid.
Responses
Hi Gary,
A few questions... How much space do you have under /var/satellite? How many Red Hat channels (base, like RHEL 6, RHEL7, maybe even RHEL 5) do you have? Do you have a lot of custom channels?
According to the documentation on page 12 at Red Hat (pdf file):
"specifically /var/satellite/redhat/NULL/) is primarily
a duplicate of Red Hat's RPM repository, and can be
regenerated using the
satellite-sync command.
That being said, often the "recommended" amounts (red hat doc) for any given file system are sadly low, and if you're running out of space, I'd highly recommend coming up with a solution to somehow expand your /var/satellite to accommodate your channels. If this is a physical server, then storage may be a challenge and then the scenarios for that may be less than fun.
Most of our Red Hat satellite servers (we have one on 6.x, six on 5.7 and one on 5.6) are on 5.7, with one on 5.6. The one I have on 5.6 has 562GB (after formatting) for /var/satellite, but I'm using LVM to chain about 6 PV members into a VG LVM together into one file system. Once in a while I had to another LVM member (on various such satellite servers) and most of ours are on VMware. But I'm about to reload that satellite server. We have our /var/satellite spread across smaller lvm PV members as a volume group because WHEN we had a super-huge vmdk file for /var/satellite, we could not snapshot the server at all (maybe VMware has advanced since we faced that issue). But smaller PV members into a VG made the difference for us, and with VMware we could add more later if needed (and we have on occasion). The few physical Satellite servers we (*had to) have, we provisioned an obscene amount of local storage.
Speaking of VMware, (separate issue) if you ARE running VMware with a satellite server on it, make sure to remove any snapshots before ingesting any base/incremental channels (disconnected) or if "connected" to Red Hat, don't let snapshots live too long or you'll run the risk of filling up your VMware storage pool (and your Satellite server will behave as though the file systems are not full, this is a separate issue). This happened to me (only) once, when ingesting channels.
I may have missed something and I hope I didn't but I believe you're gonna need more storage. If there's a way to do otherwise, hopefully someone will chime in.
What Rich says is a valid point, however the RH docs say the rpms stay unless you take additional actions (see this link)
Packages from the channel will remain on the server
even if the channel is removed. There is an option to
delete them after.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
