Publishing Content View increasing disk space utilization on Red Hat Satellite 6

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.8

Issue

  • After publishing new version of Content View or Composite Content View, disk space utilization of /var/lib/pulp is increasing on Red Hat Satellite 6.8

Resolution

  • As a workaround, Regenerate Repository Metadata of Content View or Composite Content View.

    Go to Satellite Web UI → Content → Content Views → Select the particular Content View → Click on the drop-down beside Promote for the concerned version → Regenerate Repository Metadata
    
  • This can be done using command line as well.

       # hammer content-view list 
    
       # hammer content-view info --id <Content View ID>
    
       # hammer content-view version republish-repositories --content-view-id <Content View ID>  --version <Content View Version number>
    
       or 
    
       # hammer content-view version republish-repositories --content-view-id <Content View ID>  --id <Content view version identifier>
    
  • If there are too many CVS that need to clean up, we need to use the foreman-maintain command:

  • Run a verification first:

    # foreman-maintain advanced procedure run pulp-cleanup-old-metadata-files
    
  • To actually clean up, run:

    # foreman-maintain advanced procedure run pulp-cleanup-old-metadata-files --remove-files true
    

For more KB articles/solutions related to Red Hat Satellite 6.x Content View Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Content View Issues.

Root Cause

SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.