Red Hat Bugzilla – Bug 1413155
[RFE] Include disk space check in foreman-debug
Last modified: 2018-08-31 11:19 EDT
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: https://github.com/Katello/katello-packaging/blob/master/katello/katello-debug.sh 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): Satellite 6.2 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
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) -bash-4.1# foreman-debug Processing... (takes a while)Exporting tasks, this may take a few minutes. Copying entire file: /tmp/task-export-1487014445.tar.gz HOSTNAME: ibm-x3550m3-12.lab.eng.brq.redhat.com OS: redhat RELEASE: Red Hat Enterprise Linux Server release 6.8 (Santiago) FOREMAN: 1.11.0.66 RUBY: ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux] PUPPET: 3.8.6 DENIALS: 0 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 /dev/mapper/vg_ibmx3550m312-lv_root 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 4.7G /var/lib/mongodb -bash-4.1# cat foreman-debug-OVhf9/postgres_disk_space COMMAND> du -sh /var/lib/pgsql 182M /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. https://access.redhat.com/errata/RHBA-2017:0447