Can you change smartctl parameters?

mkaatman

Renowned Member
Apr 22, 2016
21
0
66
124
I see these errors in the log for all my drives: (This is a really old hp dl360 g7 with a drive controller that's probably not ideal)

Aug 28 18:34:24 pbs proxmox-backup-api[1420]: failed to gather smart data for /dev/sda – command "smartctl" "-H" "-A" "-j" "/dev/sda" failed - status code: 1 - no error message

When I manually run it I get:
Code:
root@pbs:~# smartctl -H -A -j /dev/sda
{
  "json_format_version": [
    1,
    0
  ],
  "smartctl": {
    "version": [
      7,
      4
    ],
    "pre_release": false,
    "svn_revision": "5620",
    "platform_info": "x86_64-linux-6.14.8-2-pve",
    "build_info": "(local build)",
    "argv": [
      "smartctl",
      "-H",
      "-A",
      "-j",
      "/dev/sdd"
    ],
    "messages": [
      {
        "string": "/dev/sda: requires option '-d cciss,N'",
        "severity": "error"
      }
    ],
    "exit_status": 1
  },
  "local_time": {
    "time_t": 1756424083,
    "asctime": "Thu Aug 28 18:34:43 2025 CDT"
  }
}

If instead I run:

Code:
root@pbs:~# smartctl -H -A -d cciss,0 /dev/sda
smartctl 7.4 2024-10-15 r5620 [x86_64-linux-6.14.8-2-pve] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Status not supported: Incomplete response, ATA output registers missing
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   178   177   021    Pre-fail  Always       -       2075
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       76
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   100   253   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   001   001   000    Old_age   Always       -       80887
 10 Spin_Retry_Count        0x0032   100   253   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   253   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       76
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       73
193 Load_Cycle_Count        0x0032   199   199   000    Old_age   Always       -       3715
194 Temperature_Celsius     0x0022   121   103   000    Old_age   Always       -       26
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   100   253   000    Old_age   Offline      -       0
 
Last edited:
The parameters cant be changed. You will need a wrapper script to do the magic. Some ways are described in this post and the entire thread.
 
  • Like
Reactions: UdoB