Bookmark this page

Guided Exercise: Identifying Hardware Issues

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.

  1. Login to servera and switch to the root user.

    [student@workstation ~]$ ssh student@servera
    ...output omitted...
    [student@servera ~]$ sudo -i
    [sudo] password for student: student
    [root@servera ~]#
  2. Record servera hardware information.

    1. 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=auto
    2. Record the boot image in the /root/systeminfo.txt file.

      # Boot Image
      (hd0,gpt3)/boot/vmlinuz-4.18.0-305.el8.x86_64
    3. View the CPU model name.

      [root@servera ~]# lscpu
      Architecture:        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...
    4. Record the CPU model name in the /root/systeminfo.txt file.

      # CPU Model
      Intel(R) Xeon(R) Gold 6248 CPU @ 2.50GHz
    5. 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...
    6. Record the size and form factor of the memory devices in the /root/systeminfo.txt file.

      # Memory
      Size: 2 GB
      Form Factor: DIMM
    7. View the devices that are connected via any USB bus.

      [root@servera ~]# lsusb
      Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
      Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    8. Record the USB devices in the /root/systeminfo.txt file.

      # 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
    9. View the devices that are connected via the PCI bus.

      [root@servera ~]# lspci
      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
    10. Record the PCI devices in the /root/systeminfo.txt file.

      # 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
  3. Install rasdaemon, start and enable the service, and add a summary of all hardware errors to the /root/systeminfo.txt file.

    1. Install the rasdaemon package.

      [root@servera ~]# yum install rasdaemon
      ...output omitted...
    2. Start and enable the rasdaemon service.

      [root@servera ~]# systemctl enable --now rasdaemon
      Created symlink /etc/systemd/system/multi-user.target.wants/rasdaemon.service → /usr/lib/systemd/system/rasdaemon.service.
    3. View a summary of all hardware errors.

      [root@servera ~]# ras-mc-ctl --errors
      No Memory errors.
      
      No PCIe AER errors.
      
      No Extlog errors.
      
      No MCE errors.
    4. Record the error summary in the /root/systeminfo.txt file.

      # Hardware Errors
      No Memory errors.
      
      No PCIe AER errors.
      
      No Extlog errors.
      
      No MCE errors.
  4. Return to workstation as the student user.

    [root@servera ~]# exit
    [student@servera ~]$ exit
    [student@workstation ~]$

Finish

On the workstation machine, use the lab command to complete this exercise. This is important to ensure that resources from previous exercises do not impact upcoming exercises.

[student@workstation ~]$ lab finish hardware-identify

Revision: rh342-8.4-6dd89bd