Sosreport

From DikapediaV2
Jump to: navigation, search

Add notes here Very useful! https://access.redhat.com/solutions/3592


https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/pdf/generating_sos_reports_for_technical_support/red_hat_enterprise_linux-8-generating_sos_reports_for_technical_support-en-us.pdf


How to get sosreport on AL2 =

- https://github.com/sosreport/sos/issues/1563

Which mentions GitHub repo for sos-amazon-linux:

- https://github.com/TurboTurtle/sos/tree/amazon-linux

And then did the following to install/run it: wget -O amazon-linux.zip https://github.com/TurboTurtle/sos/archive/refs/heads/amazon-linux.zip

unzip amazon-linux.zip Enter the newly created sos-amazon-linux directory and copy the sos.conf to /etc directory cd ./sos-amazon-linux

cp ./sos.conf /etc/sos.conf Run the sosreport sudo ./sosreport -a Follow the prompts to generate the report


How to get the rdsosreport when the system boots to emergency mode/dracut


When a system fails to boot, it may boot into emergency mode. Here you will see the following message:

You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot

To grab that file you can simply run the following commands:

cp /run/initramfs/rdsosreport.txt /boot

Then reboot to a previously working kernel, go in the /boot directory, and it the rdsosreport.txt file should be there. Happy investigating! :)