Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Upgrade smartmontools to 7.4 #682

Open
com6056 opened this issue Sep 6, 2024 · 0 comments
Open

[BUG] Upgrade smartmontools to 7.4 #682

com6056 opened this issue Sep 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@com6056
Copy link

com6056 commented Sep 6, 2024

Describe the bug
A clear and concise description of what the bug is.

time="2024-09-06T21:47:00Z" level=info msg="Executing command: smartctl --info --json --device nvme /dev/nvme0" type=metrics
time="2024-09-06T21:47:00Z" level=error msg="Could not retrieve device information for nvme0: exit status 2" type=metrics

It looks like this is due to smartmontools 7.3 failing to read the data of my NVMe drive:

root@19b2e5ba5913:/opt/scrutiny# smartctl --version
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.9.11-100.fc39.x86_64] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

smartctl comes with ABSOLUTELY NO WARRANTY. This is free
software, and you are welcome to redistribute it under
the terms of the GNU General Public License; either
version 2, or (at your option) any later version.
See https://www.gnu.org for further details.

smartmontools release 7.3 dated 2022-02-28 at 16:33:40 UTC
smartmontools SVN rev 5338 dated 2022-02-28 at 16:34:26
smartmontools build host: x86_64-pc-linux-gnu
smartmontools build with: C++11, GCC 12.2.0
smartmontools configure arguments: [hidden in reproducible builds]
reproducible build SOURCE_DATE_EPOCH: 1665910132 (2022-10-16 08:48:52)
root@19b2e5ba5913:/opt/scrutiny# smartctl --info --json --device nvme /dev/nvme0
{
  "json_format_version": [
    1,
    0
  ],
  "smartctl": {
    "version": [
      7,
      3
    ],
    "svn_revision": "5338",
    "platform_info": "x86_64-linux-6.9.11-100.fc39.x86_64",
    "build_info": "(local build)",
    "argv": [
      "smartctl",
      "--info",
      "--json",
      "--device",
      "nvme",
      "/dev/nvme0"
    ],
    "messages": [
      {
        "string": "Read NVMe Identify Controller failed: NVME_IOCTL_ADMIN_CMD: Inappropriate ioctl for device",
        "severity": "error"
      }
    ],
    "exit_status": 2
  },
  "local_time": {
    "time_t": 1725659469,
    "asctime": "Fri Sep  6 21:51:09 2024 UTC"
  },
  "device": {
    "name": "/dev/nvme0",
    "info_name": "/dev/nvme0",
    "type": "nvme",
    "protocol": "NVMe"
  }
}

It seems to work fine with smartmontools 7.4 though:

root@plum:/home/com6056/selfhosted# smartctl --version
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.9.11-100.fc39.x86_64] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

smartctl comes with ABSOLUTELY NO WARRANTY. This is free
software, and you are welcome to redistribute it under
the terms of the GNU General Public License; either
version 2, or (at your option) any later version.
See https://www.gnu.org for further details.

smartmontools release 7.4 dated 2023-08-01 at 10:59:45 UTC
smartmontools SVN rev 5530 dated 2023-08-01 at 11:00:21
smartmontools build host: x86_64-redhat-linux-gnu
smartmontools build with: C++17, GCC 13.2.1 20231011 (Red Hat 13.2.1-4)
smartmontools configure arguments: [hidden in reproducible builds]
reproducible build SOURCE_DATE_EPOCH: 1695772800 (2023-09-26 17:00:00)
root@plum:/home/com6056/selfhosted# smartctl --info --json --device nvme /dev/nvme0
{
  "json_format_version": [
    1,
    0
  ],
  "smartctl": {
    "version": [
      7,
      4
    ],
    "pre_release": false,
    "svn_revision": "5530",
    "platform_info": "x86_64-linux-6.9.11-100.fc39.x86_64",
    "build_info": "(local build)",
    "argv": [
      "smartctl",
      "--info",
      "--json",
      "--device",
      "nvme",
      "/dev/nvme0"
    ],
    "exit_status": 0
  },
  "local_time": {
    "time_t": 1725659515,
    "asctime": "Fri Sep  6 14:51:55 2024 PDT"
  },
  "device": {
    "name": "/dev/nvme0",
    "info_name": "/dev/nvme0",
    "type": "nvme",
    "protocol": "NVMe"
  },
  "model_name": "PNY CS3030 500GB SSD",
  "serial_number": "PNY2106210204010AF1C",
  "firmware_version": "CS303321",
  "nvme_pci_vendor": {
    "id": 6535,
    "subsystem_id": 6535
  },
  "nvme_ieee_oui_identifier": 6584743,
  "nvme_total_capacity": 500107862016,
  "nvme_unallocated_capacity": 0,
  "nvme_controller_id": 1,
  "nvme_version": {
    "string": "1.3",
    "value": 66304
  },
  "nvme_number_of_namespaces": 1,
  "nvme_namespaces": [
    {
      "id": 1,
      "size": {
        "blocks": 976773168,
        "bytes": 500107862016
      },
      "capacity": {
        "blocks": 976773168,
        "bytes": 500107862016
      },
      "utilization": {
        "blocks": 976773168,
        "bytes": 500107862016
      },
      "formatted_lba_size": 512,
      "eui64": {
        "oui": 6584743,
        "ext_id": 309509233326
      }
    }
  ],
  "user_capacity": {
    "blocks": 976773168,
    "bytes": 500107862016
  },
  "logical_block_size": 512,
  "smart_support": {
    "available": true,
    "enabled": true
  }
}
@com6056 com6056 added the bug Something isn't working label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant