Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Preclear SMART info

Featured Replies

  • Community Expert

Hi

 

I wanted to check the age of some second hand disks which I have precleared ready to use. I noticed in the preclear report it lists a "TIMESTAMP" attribute...

"MOUNTED": false,
        "RUNNING": true,
        "TIMESTAMP": 1607962338,
        "TEMP": "0",
        "NAME": "sdb",
        "PRECLEAR": true

Can anyone confirm this is the powered on time from SMART and what units it shows... e.g. milliseconds, seconds, minuters etc? I ask what units as if this assumption is correct the above file (if units is seconds) shows its been running for 51 years!

 

Thanks in advance.

Edited by SliMat

Why don't you just look at the Power on hours attribute on SMART ?

  • Author
  • Community Expert
26 minutes ago, ChatNoir said:

Why don't you just look at the Power on hours attribute on SMART ?

I am preclearing some disks on an HP server which is only running a trial version of UnRAID before moving them to a production server... where can I get the SMART info from? I am not sure where I can get the SMART info from. I have been looking for a Linux tool which can ideally be used from a bootable USB key. The closest I have found is smartctl in Ubuntu.

  • Community Expert

Click on the disk in the Unraid webUI and look at its Attributes section or download its SMART report under Self-Test

  • Author
  • Community Expert

Thanks again @trurl

Exactly what I was looking for - I dont have the (expired) trial running on this server at the moment, so will check if SMART log is downloadable on there too.

  • Author
  • Community Expert
14 minutes ago, trurl said:

Click on the disk in the Unraid webUI and look at its Attributes section or download its SMART report under Self-Test

I may have been a bit premature... when I download the SMART report it shows;

smartctl 7.1 2019-12-30 r5022 [x86_64-linux-4.19.107-Unraid] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sdk: requires option '-d cciss,N'
Please specify device type with the -d option.

Use smartctl -h to get a usage summary

I think this is because the array is SAS disks, so smartctl needs the "- d scsi" flag set - but I dont know if (or how) this can be set in UnRAID.

  • Author
  • Community Expert

Thanks @Squid - hadnt spotted that at all...

 

Do you know how to add SMART attribute 09, Power on hours? I wrongly thought I could add 9 as a custom attribute;

 

UnRAID.thumb.png.ef323d8c030ff25e860149f2639c62d1.png

Those are the monitored attributes.  You really don't want to add POH as a monitored attribute as you'll get a notification every hour.

  • Author
  • Community Expert

So on the downloaded SMART report it doesnt list POH... or am I missing something;

smartctl 7.1 2019-12-30 r5022 [x86_64-linux-4.19.107-Unraid] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               HP
Product:              MM0500FBFVQ
Revision:             HPD9
Compliance:           SPC-3
User Capacity:        500,107,862,016 bytes [500 GB]
Logical block size:   512 bytes
Rotation Rate:        7200 rpm
Form Factor:          2.5 inches
Logical Unit id:      0x5000c50042209a87
Serial number:        XXXXXXXXXXXXXXXXXXXXX
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Mon Dec 14 23:17:16 2020 GMT
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled
Read Cache is:        Enabled
Writeback Cache is:   Disabled

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
Current Drive Temperature:     0 C
Drive Trip Temperature:        0 C

Elements in grown defect list: 3

Error Counter logging not supported

Device does not support Self Test logging
Device does not support Background scan results logging

 

41 minutes ago, SliMat said:

/dev/sdk: requires option '-d cciss,N'

 

41 minutes ago, SliMat said:

so smartctl needs the "- d scsi" flag set

Did you try the HP cciss option?

  • Author
  • Community Expert
3 minutes ago, Squid said:

 

Did you try the HP cciss option?

I hadnt... when I first tried it, it just came up with an error - till I realised that disk 9 is actually disk index 8 as it goes from 0-15 on my 16 disk array 🙂

 

Once I put this right, it did download a SMART report... but still no POH 🤔

 

smartctl 7.1 2019-12-30 r5022 [x86_64-linux-4.19.107-Unraid] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               HP
Product:              MM0500FBFVQ
Revision:             HPD9
Compliance:           SPC-3
User Capacity:        500,107,862,016 bytes [500 GB]
Logical block size:   512 bytes
Rotation Rate:        7200 rpm
Form Factor:          2.5 inches
Logical Unit id:      0x5000c50042209a87
Serial number:        XXXXXXXXXXXXXX
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Mon Dec 14 23:37:19 2020 GMT
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled
Read Cache is:        Enabled
Writeback Cache is:   Disabled

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
Current Drive Temperature:     0 C
Drive Trip Temperature:        0 C

Elements in grown defect list: 3

Error Counter logging not supported

Device does not support Self Test logging
Device does not support Background scan results logging

 

  • Author
  • Community Expert

I thought I would try this on another server I have running SATA disks and the SMART report is much more detailed... there is a section which lists the POH properly... so it looks like this is something to do with the fact the disks are SAS ?!?!?

 

Part or the SATA disks SMART report...

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     POSR-K   200   200   051    -    0
  3 Spin_Up_Time            POS--K   166   166   021    -    6658
  4 Start_Stop_Count        -O--CK   099   099   000    -    1998
  5 Reallocated_Sector_Ct   PO--CK   200   200   140    -    0
  7 Seek_Error_Rate         -OSR-K   100   253   000    -    0
  9 Power_On_Hours          -O--CK   091   091   000    -    7010
 10 Spin_Retry_Count        -O--CK   100   100   000    -    0
 11 Calibration_Retry_Count -O--CK   100   253   000    -    0
 12 Power_Cycle_Count       -O--CK   100   100   000    -    11
192 Power-Off_Retract_Count -O--CK   200   200   000    -    5
193 Load_Cycle_Count        -O--CK   198   198   000    -    7383
194 Temperature_Celsius     -O---K   121   111   000    -    29
196 Reallocated_Event_Count -O--CK   200   200   000    -    0
197 Current_Pending_Sector  -O--CK   200   200   000    -    0
198 Offline_Uncorrectable   ----CK   100   253   000    -    0
199 UDMA_CRC_Error_Count    -O--CK   200   200   000    -    0
200 Multi_Zone_Error_Rate   ---R--   100   253   000    -    0

 

  • Author
  • Community Expert

OK, looks like I have got to the bottom of why POH is missing... my array has a number of different disks... I have some 2Tb Seagate disks - when I checked one of these I get a lot of SMART information including POH. I also have some 600Gb "HP" disks - these also show POH. However the 1Tb "HP" disks done show much SMART info... so it looks like the problem is that not all the disks report all the correct SMART data.

 

I'm not sure if there is a way to enable SMART reporting on the disks which dont seem to support it... so, if anyone knows please do let me know.

 

Thanks everyone whos helped 🙂

  • Community Expert
31 minutes ago, SliMat said:

I realised that disk 9 is actually disk index 8 as it goes from 0-15 on my 16 disk array

It is best to not think in those terms but instead just consider which "slot" in the Unraid disk assignments each disk is assigned to.

 

Slot0 is considered to be the parity slot in Unraid as you can see in the syslog.

  • Community Expert

IIRC it's a problem with Smartmontools, it doesn't show all the info for some SAS devices, including temp, older (and possibly newer) releases should.

  • Author
  • Community Expert
44 minutes ago, JorgeB said:

IIRC it's a problem with Smartmontools, it doesn't show all the info for some SAS devices, including temp, older (and possibly newer) releases should.

Thanks @JorgeB - in the mean time I will try to find another non-UnRAID based tool to check these details ;-)

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.