SliMat Posted December 14, 2020 Share Posted December 14, 2020 (edited) 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 December 14, 2020 by SliMat Quote Link to comment
ChatNoir Posted December 14, 2020 Share Posted December 14, 2020 Why don't you just look at the Power on hours attribute on SMART ? Quote Link to comment
SliMat Posted December 14, 2020 Author Share Posted December 14, 2020 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. Quote Link to comment
trurl Posted December 14, 2020 Share Posted December 14, 2020 Click on the disk in the Unraid webUI and look at its Attributes section or download its SMART report under Self-Test Quote Link to comment
SliMat Posted December 14, 2020 Author Share Posted December 14, 2020 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. Quote Link to comment
SliMat Posted December 14, 2020 Author Share Posted December 14, 2020 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. Quote Link to comment
SliMat Posted December 14, 2020 Author Share Posted December 14, 2020 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; Quote Link to comment
Squid Posted December 14, 2020 Share Posted December 14, 2020 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. Quote Link to comment
SliMat Posted December 14, 2020 Author Share Posted December 14, 2020 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 Quote Link to comment
Squid Posted December 14, 2020 Share Posted December 14, 2020 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? Quote Link to comment
SliMat Posted December 14, 2020 Author Share Posted December 14, 2020 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 Quote Link to comment
SliMat Posted December 14, 2020 Author Share Posted December 14, 2020 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 Quote Link to comment
SliMat Posted December 15, 2020 Author Share Posted December 15, 2020 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 🙂 Quote Link to comment
trurl Posted December 15, 2020 Share Posted December 15, 2020 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. Quote Link to comment
JorgeB Posted December 15, 2020 Share Posted December 15, 2020 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. Quote Link to comment
SliMat Posted December 15, 2020 Author Share Posted December 15, 2020 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 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.