Section Number and Name:
U&U guide: 4.5. Reclaiming PostgreSQL Space After an Upgrade
Administering guide: 11.5. Reclaiming Disk Space from MongoDB
Describe the issue:
The sections are very related to each other but they reside in different guides, so it is complicated to find one after finishing another.
Suggestions for improvement:
1. Review the section about cleaning MongoDB because it is outdated. For example it uses systemctl instead of foreman-maintain to stop and start services. The correct command must be the following:
# foreman-maintain service stop --only pulp_celerybeat.service,pulp_resource_manager.service,pulp_streamer.service,pulp_workers.service
# foreman-maintain service start
2. Possible verify the secion on reclaiming MongoDB space with pmoravec.
2. I suggest reusing the sections in both Admin and U&U guides. They belong to the admin guide because they really have something to do with Maintaining Satellite Server. And they belong to the U&U guide because cleaning space after an upgrade is a real post-upgrade task, because during the upgrade lots of space is taken by backups.
3. In the U&U guide, the section 4.4. Upgrading the MongoDB Storage Engine refers to the KCS article How to compact MongoDB files and/or reclaim disk space in "/var/lib/mongodb" in Satellite 6? . The reference should point to the corresponding section in our docs, not to a KCS article. I linked the KCS article because did not know that such section exists in our documentation.
In this MR, I am placing procedures that reclaim space for MongoDB and PostgreSQL databases. The procedure for MongoDB was outdated, it used systemctl instead of satellite-maintain. Also, its steps differ from the steps in the KB article How to compact MongoDB files and/or reclaim disk space in "/var/lib/mongodb" in Red Hat Satellite or Capsule 6? .
Please verify that steps in 4.4. Reclaiming MongoDB Space and 4.5. Reclaiming PostgreSQL Space:
(In reply to Sergei Petrosian from comment #1)
> Hi Pavel,
> In this MR, I am placing procedures that reclaim space for MongoDB and
> PostgreSQL databases. The procedure for MongoDB was outdated, it used
> systemctl instead of satellite-maintain. Also, its steps differ from the
> steps in the KB article How to compact MongoDB files and/or reclaim disk
> space in "/var/lib/mongodb" in Red Hat Satellite or Capsule 6? .
> Please verify that steps in 4.4. Reclaiming MongoDB Space and 4.5.
> Reclaiming PostgreSQL Space:
> Git Diff:
> Thank you
>  https://access.redhat.com/solutions/3052771
The diff sounds good to me. Similar steps are in https://access.redhat.com/solutions/3190172 (3052771 is dup of this one), the differences between your procedure and the one in 3190172 are subtle and both are imho valid.
Sorry it took so long to respond, the time is challenging now.
The updated procedures Reclaiming MongoDB Space and Reclaiming PostgreSQL Space are now published in the Admin and U&U guides: