How to remove old exported content from Red Hat Satellite 6 to manage disk space.
Environment
- Red Hat Satellite 6.
Issue
- Old exported content occupying disk space.
# hammer content-export listshows the export entry.
Resolution
-
Remove the content export file from
/var/lib/pulp/exports.# rm -r /var/lib/pulp/exports/ABC/cv_version_1/ # ls -l /var/lib/pulp/exports/ABC/cv_version_1/ ls: cannot access /var/lib/pulp/exports/ABC/cv_version_1/: No such file or directory -
The export entry is still visible using hammer.
# hammer content-export list ---|--------------------|----------------------------------------------------------------------------------|----------|---------------------------------------------|-------------------------|-------------------------|------------------------ ID | DESTINATION SERVER | PATH | TYPE | CONTENT VIEW VERSION | CONTENT VIEW VERSION ID | CREATED AT | UPDATED AT ---|--------------------|----------------------------------------------------------------------------------|----------|---------------------------------------------|-------------------------|-------------------------|------------------------ 1 | | /var/lib/pulp/exports/MBDA/cv-os-rhel-7Server-M2_2022/1.0/2022-02-11T11-08-05... | complete | cv-os-rhel-7Server-M2_2022 1.0 | 197 | 2022-02-11 15:07:44 UTC | 2022-02-11 15:07:44 UTC -
The entry is exported history and not occupying any space.
- Future incremental exports use the history and information from the Satellite db to generate the incremental export files. They are not dependent on existing files.
- If an entry is removed from the history, an incremental export will start from the latest information in the history table and generate an appropriate export.
Root Cause
- On every non Incremental content-export new file entry will be generated under
/var/lib/pulp/exportsoccupying disk space.
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.
Comments