Description of problem:
A basic check in troubleshooting Satellite 6 (and in deed health of Satellite) is available disk space. Per discussion with engineering filing the following BZ.
mmccune: would be super easy to add
mmccune: do we have a BZ for this?
mmccune: if not, can you file? ill get it acked-up
mmccune: that is the actual script that we would add it to
mmccune: the easiest is:
mmccune: du -sh /var/lib/pulp /var/lib/mongodb/ /var/lib/pgsql/
mmccune: df -h
mmccune: those 2
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Running du -sh will take to long, getting a df -h to verify disk space on the entire FS
Verified in Satellite 6.2.8 Snap 2. Added three files detailing disk space usage (disk_space_output, mongodb_disk_space, postgres_disk_space)
Processing... (takes a while)Exporting tasks, this may take a few minutes.
Copying entire file: /tmp/task-export-1487014445.tar.gz
RELEASE: Red Hat Enterprise Linux Server release 6.8 (Santiago)
RUBY: ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
A debug file has been created: /tmp/foreman-debug-OVhf9.tar.xz (1243704 bytes)
To upload a tarball to our secure site, please use the -u option.
-bash-4.1# tar -xvJf foreman-debug-OVhf9.tar.xz
-bash-4.1# cat foreman-debug-OVhf9/disk_space_output
COMMAND> df -h
Filesystem Size Used Avail Use% Mounted on
446G 12G 411G 3% /
tmpfs 12G 0 12G 0% /dev/shm
/dev/sda1 477M 71M 382M 16% /boot
-bash-4.1# cat foreman-debug-OVhf9/mongodb_disk_space
COMMAND> du -sh /var/lib/mongodb
-bash-4.1# cat foreman-debug-OVhf9/postgres_disk_space
COMMAND> du -sh /var/lib/pgsql
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.