Bug 543862

Summary: RHNSat needs more than 5GB in "/", gets filled up by /var/cache/rhn
Product: Red Hat Satellite 5 Reporter: Riaan van Niekerk <riaanvn>
Component: Docs Installation GuideAssignee: John Ha <jha>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Minar <mminar>
Severity: medium Docs Contact:
Priority: medium    
Version: 530CC: adstrong, cperry, ltroan, matt_domsch, mkoci, mminar, sbenjamin, wwlinuxengineering
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://www.redhat.com/docs/en-US/Red_Hat_Network_Satellite/5.3/Installation_Guide/html/s1-requirements-hardware.html
Whiteboard: Fixed in the 5.4.0 Release - GA'd 2010-10-27
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 218875 Environment:
Last Closed: 2010-10-28 14:57:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 608749    

Description Riaan van Niekerk 2009-12-03 11:01:41 UTC
Description of problem:

According to Installation Guide section 2.2.1. x86 and x86_64 Hardware Requirements, 
Recommended: "5 GB storage for base install of Red Hat Enterprise Linux"

which one can assume means a 5 GB "/" partition

I made mine 10 GB, but still ran into space problems as over time /var/cache/rhn fills up

How reproducible:

Every time

Steps to Reproduce:
1. Install RHEL with 5 GB "/" partition
2. Install RHN Satellite and import 3 or more channels (I used rhel-x86_64-server-5, rhel-i386-server-5, rhel-x86_64-as-4, rhel-i386-as-4)
3. Export all channels 
  
Actual results:

"/" fills up


Additional info:

With the above 4 channels synced and exported, /var/cache/rhn uses 6.6 GB of space.

I would suggest modifying/expanding the documentation as follows:
a) increase the recommended storage space for "/" or have an explicit mention of a size recommendation for /var/cache/ or /var/cache/rhn
b) Provide guidelines on maintenance of the content of this directory e.g. 
i) manually remove (rm) or purge/prune using one of the provided cmd-line tools
ii) whether it should to be backed up or not. Is it recreated from existing content internal to the Satellite or downloaded from RHN Hosted when required (which customers with minimal bandwidth will want to avoid)

Older version of the RHN Documentation mentioned maintenance of this directory, e.g.
http://www.redhat.com/docs/manuals/RHNetwork/satellite/3.6/cache-issues.html


+++ This bug was initially created as a clone of Bug #218875 +++

Description of problem:
The release notes for RHN Satellite 5 beta say that the / file system should be
at least 3GB.  I made mine 4GB.  4GB is insufficient for downloading the
metadata for all RHEL{3,4,5} channels - /var/cache/rhn fills up.  Please
increase the recommended space for / to something that'll work.

--- Additional comment from matt_domsch on 2008-10-29 10:21:53 EDT ---

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.

Comment 2 Clifford Perry 2010-09-10 16:06:33 UTC
John, yes, ideally we should mention /var/cache/rhn/ for disk requirements. I would add something like:

Beyond the OS needs, and /var/satellite/ you will also need space for cache files generated by using Satellite (these will get re-generated, as needed, if deleted). These cache files are stored within /var/cache/rhn and the space needs of /var/cache/rhn/ will vary greatly depending on 

1) how many channels you sync/import from RHN or Channel dumps
2) how many custom packages and channels you have
3) If your using Inter Satellite Sync 

As a guide, provide at least 10 gig of space for /var/cache/rhn/ needs within Satellite. For very large Satellites, with a lot of channels, packages and Inter Satellite Sync, your usage could grow as much as 100 gig of space for cache files. 

Cliff.

Comment 6 Clifford Perry 2010-10-28 14:57:06 UTC
The 5.4.0 RHN Satellite and RHN Proxy release has occurred. This issue has been resolved with this release. 


RHEA-2010:0801 - RHN Satellite Server 5.4.0 Upgrade
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10332

RHEA-2010:0803 - RHN Tools enhancement update
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10333

RHEA-2010:0802 - RHN Proxy Server 5.4.0 bug fix update
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10334

RHEA-2010:0800 - RHN Satellite Server 5.4.0
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10335

Docs are available:

http://docs.redhat.com/docs/en-US/Red_Hat_Network_Satellite/index.html 

Regards,
Clifford