Red Hat Enterprise Linux Diagnostics and Troubleshooting
Identify system hardware and view hardware error reports.
Outcomes
You should be able to identify your system's hardware and view hardware errors with rasdaemon.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
[student@workstation ~]$ lab start hardware-identify
This command verifies that your systems are reachable and generates the necessary files for this exercise.
Instructions
You collect hardware information from servera, and list hardware errors that rasdaemon reports. Use the /root/systeminfo.txt file on servera to record servera hardware information.
Login to
serveraand switch to therootuser.[student@workstation ~]$
ssh student@servera...output omitted... [student@servera ~]$sudo -i[sudo] password for student:student[root@servera ~]#Record
serverahardware information.View which boot image was last used.
[root@servera ~]#
dmesg | grep BOOT_IMAGE[ 0.000000] Command line: BOOT_IMAGE=(hd0,gpt3)/boot/vmlinuz-4.18.0-305.el8.x86_64 root=/dev/vda3 ro no_timer_check net.ifnames=0 crashkernel=auto [ 0.000000] Kernel command line: BOOT_IMAGE=(hd0,gpt3)/boot/vmlinuz-4.18.0-305.el8.x86_64 root=/dev/vda3 ro no_timer_check net.ifnames=0 crashkernel=autoRecord the boot image in the
/root/systeminfo.txtfile.# Boot Image (hd0,gpt3)/boot/vmlinuz-4.18.0-305.el8.x86_64
View the CPU model name.
[root@servera ~]#
lscpuArchitecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 2 NUMA node(s): 1 Vendor ID: GenuineIntel BIOS Vendor ID: Red Hat CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Gold 6248 CPU @ 2.50GHz BIOS Model name: RHEL 7.6.0 PC (i440FX + PIIX, 1996) Stepping: 7 CPU MHz: 2494.048 ...output omitted...Record the CPU model name in the
/root/systeminfo.txtfile.# CPU Model Intel(R) Xeon(R) Gold 6248 CPU @ 2.50GHz
View the size and form factor of the memory devices.
[root@servera ~]#
dmidecode -t memory# dmidecode 3.2 Getting SMBIOS data from sysfs. SMBIOS 2.8 present. ...output omitted... Handle 0x1100, DMI type 17, 40 bytes Memory Device Array Handle: 0x1000 Error Information Handle: Not Provided Total Width: Unknown Data Width: Unknown Size: 2 GB Form Factor: DIMM Set: None Locator: DIMM 0 ...output omitted...Record the size and form factor of the memory devices in the
/root/systeminfo.txtfile.# Memory Size: 2 GB Form Factor: DIMM
View the devices that are connected via any USB bus.
[root@servera ~]#
lsusbBus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubRecord the USB devices in the
/root/systeminfo.txtfile.# USB Devices Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
View the devices that are connected via the PCI bus.
[root@servera ~]#
lspci00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02) 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] 00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03) 00:02.0 VGA compatible controller: Cirrus Logic GD 5446 00:03.0 Ethernet controller: Red Hat, Inc. Virtio network device 00:04.0 Ethernet controller: Red Hat, Inc. Virtio network device 00:05.0 SCSI storage controller: Red Hat, Inc. Virtio block device 00:06.0 SCSI storage controller: Red Hat, Inc. Virtio block device 00:07.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloonRecord the PCI devices in the
/root/systeminfo.txtfile.# PCI Devices 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02) 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] 00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03) 00:02.0 VGA compatible controller: Cirrus Logic GD 5446 00:03.0 Ethernet controller: Red Hat, Inc. Virtio network device 00:04.0 Ethernet controller: Red Hat, Inc. Virtio network device 00:05.0 SCSI storage controller: Red Hat, Inc. Virtio block device 00:06.0 SCSI storage controller: Red Hat, Inc. Virtio block device 00:07.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
Install
rasdaemon, start and enable the service, and add a summary of all hardware errors to the/root/systeminfo.txtfile.Install the
rasdaemonpackage.[root@servera ~]#
yum install rasdaemon...output omitted...Start and enable the
rasdaemonservice.[root@servera ~]#
systemctl enable --now rasdaemonCreated symlink /etc/systemd/system/multi-user.target.wants/rasdaemon.service → /usr/lib/systemd/system/rasdaemon.service.View a summary of all hardware errors.
[root@servera ~]#
ras-mc-ctl --errorsNo Memory errors. No PCIe AER errors. No Extlog errors. No MCE errors.Record the error summary in the
/root/systeminfo.txtfile.# Hardware Errors No Memory errors. No PCIe AER errors. No Extlog errors. No MCE errors.
Return to
workstationas thestudentuser.[root@servera ~]#
exit[student@servera ~]$exit[student@workstation ~]$