TEST CASE: 1. Prepare a big-endian system ubuntu@testlpar2:~$ uname -a Linux testlpar2 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:29:21 UTC 2023 s390x s390x s390x GNU/Linux ubuntu@testlpar2:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy 2. Install smartmontools and it reports "Segmentation fault" ubuntu@testlpar2:~$ sudo apt install smartmontools -y Reading package lists... Done Building dependency tree... Done Reading state information... Done Suggested packages: gsmartcontrol smart-notifier mailx | mailutils The following NEW packages will be installed: smartmontools 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded. Need to get 561 kB of archives. After this operation, 1959 kB of additional disk space will be used. Get:1 http://ports.ubuntu.com/ubuntu-ports jammy/main s390x smartmontools s390x 7.2-1build2 [561 kB] Fetched 561 kB in 1s (1116 kB/s) Selecting previously unselected package smartmontools. (Reading database ... 57164 files and directories currently installed.) Preparing to unpack .../smartmontools_7.2-1build2_s390x.deb ... Unpacking smartmontools (7.2-1build2) ... Setting up smartmontools (7.2-1build2) ... Processing triggers for man-db (2.10.2-1) ... Scanning processes... Scanning processor microcode... Scanning linux images... Running kernel seems to be up-to-date (ABI upgrades are not detected). Failed to check for processor microcode upgrades. No services need to be restarted. No containers need to be restarted. No user sessions are running outdated binaries. No VM guests are running outdated hypervisor (qemu) binaries on this host. ubuntu@testlpar2:~$ apt-cache policy smartmontools smartmontools: Installed: 7.2-1build2 Candidate: 7.2-1build2 Version table: *** 7.2-1build2 500 500 http://ports.ubuntu.com/ubuntu-ports jammy/main s390x Packages 100 /var/lib/dpkg/status ubuntu@testlpar2:~$ sudo smartctl -a /dev/nvme0n1 smartctl 7.2 2020-12-30 r5155 [s390x-linux-5.15.0-91-generic] (local build) Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Number: KCM61VUL6T40 Serial Number: 3110A042TM68 Firmware Version: 3005T31E PCI Vendor ID: 0x1e0f PCI Vendor Subsystem ID: 0x1d49 IEEE OUI Identifier: 0x8ce38e Total NVM Capacity: 6,401,252,745,216 [6.40 TB] Unallocated NVM Capacity: 0 Controller ID: 1 NVMe Version: 1.4 Number of Namespaces: 64 Namespace 1 Size/Capacity: 6,401,252,745,216 [6.40 TB] Namespace 1 Utilization: 3,760,352,313,344 [3.76 TB] Namespace 1 Formatted LBA Size: 512 Namespace 1 IEEE EUI-64: 8ce38e e20524ca01 Local Time is: Thu Jan 18 01:19:03 2024 UTC Firmware Updates (0x16): 3 Slots, no Reset required Optional Admin Commands (0x025f): Security Format Frmw_DL NS_Mngmt Self_Test MI_Snd/Rec Get_LBA_Sts Optional NVM Commands (0x00ff): Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Resv Timestmp Verify Log Page Attributes (0x1e): Cmd_Eff_Lg Ext_Get_Lg Telmtry_Lg Pers_Ev_Lg Maximum Data Transfer Size: 8192 Pages Warning Comp. Temp. Threshold: 73 Celsius Critical Comp. Temp. Threshold: 82 Celsius Namespace 1 Features (0x14): Dea/Unw_Error NP_Fields Supported Power States St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat 0 + 27.50W 25.00W - 0 0 0 0 500000 500000 1 + 19.80W 18.00W - 0 0 1 1 500000 500000 2 + 17.60W 16.00W - 0 0 2 2 500000 500000 3 + 15.40W 14.00W - 1 1 3 3 500000 500000 4 + 12.10W 11.00W - 2 2 4 4 500000 500000 5 + 9.90W 9.00W - 3 3 5 5 500000 500000 6 - 5.00W - - 6 6 6 6 500000 500000 Supported LBA Sizes (NSID 0x1) Id Fmt Data Metadt Rel_Perf 0 + 512 0 0 1 - 512 8 0 2 - 1 0 0 3 - 4096 0 0 4 - 4096 8 0 5 - 4096 64 0 === START OF SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED SMART/Health Information (NVMe Log 0x02) Critical Warning: 0x00 Temperature: 41 Celsius Available Spare: 100% Available Spare Threshold: 22% Percentage Used: 0% Data Units Read: 1,315,499 [673 GB] Data Units Written: 12,596,533 [6.44 TB] Host Read Commands: 612,791 Host Write Commands: 5,035,877 Controller Busy Time: 42 Power Cycles: 49 Power On Hours: 4,421 Unsafe Shutdowns: 38 Media and Data Integrity Errors: 0 Error Information Log Entries: 0 Warning Comp. Temperature Time: 0 Critical Comp. Temperature Time: 0 Error Information (NVMe Log 0x01, 16 of 256 entries) No Errors Logged Segmentation fault 3. Install patched smartmontools ubuntu@testlpar2:~$ wget https://launchpad.net/ubuntu/+source/smartmontools/7.2-1ubuntu0.1/+build/27633079/+files/smartmontools_7.2-1ubuntu0.1_s390x.deb --2024-01-18 01:19:33-- https://launchpad.net/ubuntu/+source/smartmontools/7.2-1ubuntu0.1/+build/27633079/+files/smartmontools_7.2-1ubuntu0.1_s390x.deb Resolving launchpad.net (launchpad.net)... 185.125.189.223, 185.125.189.222, 2620:2d:4000:1009::f3, ... Connecting to launchpad.net (launchpad.net)|185.125.189.223|:443... connected. HTTP request sent, awaiting response... 303 See Other Location: https://launchpadlibrarian.net/708807091/smartmontools_7.2-1ubuntu0.1_s390x.deb [following] --2024-01-18 01:19:33-- https://launchpadlibrarian.net/708807091/smartmontools_7.2-1ubuntu0.1_s390x.deb Resolving launchpadlibrarian.net (launchpadlibrarian.net)... 185.125.189.228, 185.125.189.229, 2620:2d:4000:1009::13e, ... Connecting to launchpadlibrarian.net (launchpadlibrarian.net)|185.125.189.228|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 561742 (549K) [application/x-debian-package] Saving to: ‘smartmontools_7.2-1ubuntu0.1_s390x.deb’ smartmontools_7.2-1ubuntu0.1_s390x.deb 100%[==========================================================================================================>] 548.58K 1.62MB/s in 0.3s 2024-01-18 01:19:34 (1.62 MB/s) - ‘smartmontools_7.2-1ubuntu0.1_s390x.deb’ saved [561742/561742] ubuntu@testlpar2:~$ sudo dpkg -i smartmontools_7.2-1ubuntu0.1_s390x.deb (Reading database ... 57201 files and directories currently installed.) Preparing to unpack smartmontools_7.2-1ubuntu0.1_s390x.deb ... Unpacking smartmontools (7.2-1ubuntu0.1) over (7.2-1build2) ... Setting up smartmontools (7.2-1ubuntu0.1) ... Processing triggers for man-db (2.10.2-1) ... ubuntu@testlpar2:~$ sudo smartctl -a /dev/nvme0n1 smartctl 7.2 2020-12-30 r5155 [s390x-linux-5.15.0-91-generic] (local build) Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Number: KCM61VUL6T40 Serial Number: 3110A042TM68 Firmware Version: 3005T31E PCI Vendor ID: 0x1e0f PCI Vendor Subsystem ID: 0x1d49 IEEE OUI Identifier: 0x8ce38e Total NVM Capacity: 6,401,252,745,216 [6.40 TB] Unallocated NVM Capacity: 0 Controller ID: 1 NVMe Version: 1.4 Number of Namespaces: 64 Namespace 1 Size/Capacity: 6,401,252,745,216 [6.40 TB] Namespace 1 Utilization: 3,760,352,411,648 [3.76 TB] Namespace 1 Formatted LBA Size: 512 Namespace 1 IEEE EUI-64: 8ce38e e20524ca01 Local Time is: Thu Jan 18 01:19:44 2024 UTC Firmware Updates (0x16): 3 Slots, no Reset required Optional Admin Commands (0x025f): Security Format Frmw_DL NS_Mngmt Self_Test MI_Snd/Rec Get_LBA_Sts Optional NVM Commands (0x00ff): Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Resv Timestmp Verify Log Page Attributes (0x1e): Cmd_Eff_Lg Ext_Get_Lg Telmtry_Lg Pers_Ev_Lg Maximum Data Transfer Size: 8192 Pages Warning Comp. Temp. Threshold: 73 Celsius Critical Comp. Temp. Threshold: 82 Celsius Namespace 1 Features (0x14): Dea/Unw_Error NP_Fields Supported Power States St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat 0 + 27.50W 25.00W - 0 0 0 0 500000 500000 1 + 19.80W 18.00W - 0 0 1 1 500000 500000 2 + 17.60W 16.00W - 0 0 2 2 500000 500000 3 + 15.40W 14.00W - 1 1 3 3 500000 500000 4 + 12.10W 11.00W - 2 2 4 4 500000 500000 5 + 9.90W 9.00W - 3 3 5 5 500000 500000 6 - 5.00W - - 6 6 6 6 500000 500000 Supported LBA Sizes (NSID 0x1) Id Fmt Data Metadt Rel_Perf 0 + 512 0 0 1 - 512 8 0 2 - 1 0 0 3 - 4096 0 0 4 - 4096 8 0 5 - 4096 64 0 === START OF SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED SMART/Health Information (NVMe Log 0x02) Critical Warning: 0x00 Temperature: 41 Celsius Available Spare: 100% Available Spare Threshold: 22% Percentage Used: 0% Data Units Read: 1,315,499 [673 GB] Data Units Written: 12,596,552 [6.44 TB] Host Read Commands: 612,791 Host Write Commands: 5,036,496 Controller Busy Time: 42 Power Cycles: 49 Power On Hours: 4,421 Unsafe Shutdowns: 38 Media and Data Integrity Errors: 0 Error Information Log Entries: 0 Warning Comp. Temperature Time: 0 Critical Comp. Temperature Time: 0 Error Information (NVMe Log 0x01, 16 of 256 entries) No Errors Logged ubuntu@testlpar2:~$ apt-cache policy smartmontools smartmontools: Installed: 7.2-1ubuntu0.1 Candidate: 7.2-1ubuntu0.1 Version table: *** 7.2-1ubuntu0.1 100 100 /var/lib/dpkg/status 7.2-1build2 500 500 http://ports.ubuntu.com/ubuntu-ports jammy/main s390x Packages ubuntu@testlpar2:~$ VERIFICATION DONE smartctl will show SMART data and error logs normally