Red Hat Enterprise Linux Diagnostics and Troubleshooting
Generate and inspect an sos report on your servera system.
Outcomes
You should be able to generate an sos report to aid Red Hat Support in resolving an issue.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
[student@workstation ~]$ lab start strategy-redhatresources
This command ensures that your systems are reachable from the workstation machine.
Instructions
While troubleshooting an issue on the servera machine, you contacted Red Hat Support for assistance. Support requested that you generate an sos report for only the xfs plugin.
For the purpose of this exercise, your case number is 123456.
Log in to
serveraand switch to therootuser.[student@workstation ~]$
ssh student@servera...output omitted... [student@servera ~]$sudo -i[sudo] password for student:student[root@servera ~]#Verify that the
sospackage is installed on yourserverasystem, and install it if necessary.Verify that the
sospackage is installed.[root@servera ~]#
rpm -q sossos-4.0-11.el8.noarchIf the previous command returned
package sos is not installed, then install thesospackage.[root@servera ~]#
yum install sos
View the available options, plug-ins, and plug-in options for
sos report.View the available options for the
sos reportcommand.[root@servera ~]#
sos report --help | lessView the available plug-ins and plug-in options for the
sos reportcommand.[root@servera ~]#
sos report -l | less
Generate an
sosreport onservera. Enable only thexfsplug-in.Run the
sos reporttool with the-o xfsoption. Use the interactive prompts to enter all required information.[root@servera ~]#
sos report -o xfssosreport (version 4.0) This command will collect diagnostic and configuration information from this Red Hat Enterprise Linux system and installed applications. An archive containing the collected information will be generated in /var/tmp/sos.og2eg7gq and may be provided to a Red Hat support representative. Any information provided to Red Hat will be treated in accordance with the published support policies at: https://access.redhat.com/support/ The generated archive may contain data considered sensitive and its content should be reviewed by the originating organization before being passed to any third party. No changes will be made to system configuration. Press ENTER to continue, or CTRL-C to quit.EnterPlease enter the case id that you are generating this report for []:123456Setting up archive ... Setting up plugins ... Running plugins. Please wait ... Starting 1/1 xfs [Running: xfs] Finished running plugins Creating compressed archive... Your sosreport has been generated and saved in: /var/tmp/sosreport-servera-123456-2021-08-30-pgstdzb.tar.xz Size 3.76KiB Owner root md5 8d66fd763d397ce8de263bfdd042b7aa Please send this file to your support representative.Return to
workstationas thestudentuser.[root@servera ~]#
exit[student@servera ~]$exit[student@workstation ~]$
Copy the generated file to the
studentuser's home directory onworkstation, and extract it. The file name used in this exercise is an example, and yours will be different.Copy the generated file to the
studentuser's home directory onworkstation.[student@workstation ~]$
scp root@servera:/var/tmp/sosreport-servera-123456*.tar.xz .Extract the generated file.
[student@workstation ~]$
tar xvfsosreport-servera-123456-2021-09-02-ytgpkbx.tar.xz
Inspect the extracted
sosreport and validate that thexfsplug-in was used.Inspect the extracted
sosreport by listing its contents.[student@workstation ~]$
cd[student@workstation ~]$sosreport-servera-123456-2021-09-02-ytgpkbxls -lConfirm the use of
xfsplug-in inspecting the xfs configuration ofservera.[student@workstation ~]$
cat sos_commands/xfs/xfs_info