crazytony Posted February 12, 2011 Share Posted February 12, 2011 In 4.6 and 4.7 the temperature wasn't displayed for the disks on my adaptec 2805 due to the adaptec driver in the kernel being very old (couldn't even get it in smartctl). I've got 5b4 running but the temperature still isn't showing in the GUI (but I can get it through smartctl). I have a feeling this is due to the -d flag. If it's not too much trouble to fix, could we get access to this in 5.0? Here's the output from running smartctl smartctl -d sat --all /dev/sda smartctl 5.39.1 2010-01-28 r3054 [i486-slackware-linux-gnu] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF INFORMATION SECTION === Device Model: WDC WD20EARS-00MVWB0 Serial Number: WD-WMAZA0765516 Firmware Version: 51.0AB51 User Capacity: 2,000,398,934,016 bytes Device is: Not in smartctl database [for details use: -P showall] ATA Version is: 8 ATA Standard is: Exact ATA specification draft version not indicated Local Time is: Sun Feb 13 10:39:53 2011 EST SMART support is: Available - device has SMART capability. SMART support is: Enabled === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED General SMART Values: Offline data collection status: (0x84) Offline data collection activity was suspended by an interrupting command from host. Auto Offline Data Collection: Enabled. Self-test execution status: ( 0) The previous self-test routine completed without error or no self-test has ever been run. Total time to complete Offline data collection: (37080) seconds. Offline data collection capabilities: (0x7b) SMART execute Offline immediate. Auto Offline data collection on/off supp ort. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. Conveyance Self-test supported. Selective Self-test supported. SMART capabilities: (0x0003) Saves SMART data before entering power-saving mode. Supports SMART auto save timer. Error logging capability: (0x01) Error logging supported. General Purpose Logging supported. Short self-test routine recommended polling time: ( 2) minutes. Extended self-test routine recommended polling time: ( 255) minutes. Conveyance self-test routine recommended polling time: ( 5) minutes. SCT capabilities: (0x3035) SCT Status supported. SCT Feature Control supported. SCT Data Table supported. 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 164 162 021 Pre-fail Always - 6791 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 38 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0 7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0 9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 1397 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 - 35 192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 33 193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 1410 194 Temperature_Celsius 0x0022 111 105 000 Old_age Always - 39 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 200 200 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0 200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0 SMART Error Log Version: 1 No Errors Logged SMART Self-test log structure revision number 1 No self-tests have been logged. [To run self-tests, use: smartctl -t] SMART Selective self-test log data structure revision number 1 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Not_testing 2 0 0 Not_testing 3 0 0 Not_testing 4 0 0 Not_testing 5 0 0 Not_testing Selective self-test flags (0x0): After scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay. Quote Link to comment
BRiT Posted February 12, 2011 Share Posted February 12, 2011 In the 5.0b4 what happens if you try just: smartctl --all /dev/sda ? Is it smart enough to figure out the driver or do you absolutely need to force it via -d sat ? Quote Link to comment
crazytony Posted February 12, 2011 Author Share Posted February 12, 2011 You do need to force it via -d sat. smartctl --all /dev/sda smartctl 5.39.1 2010-01-28 r3054 [i486-slackware-linux-gnu] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net Device: WDC WD20EARS-00M Version: 51.0 Serial number: WD-WMAZA0765516 Device type: disk Transport protocol: SAS Local Time is: Sun Feb 13 10:49:49 2011 EST Device supports SMART and is Enabled Temperature Warning Disabled or Not Supported SMART Health Status: OK Error Counter logging not supported Device does not support Self Test logging in addition, I can see the errors in the syslog (which are new to 5b4): Feb 13 10:36:20 mediastorage emhttp: disk_temperature: ioctl (smart_enable): Inappropriate ioctl for device Feb 13 10:36:44 mediastorage last message repeated 2 times Quote Link to comment
crazytony Posted March 3, 2011 Author Share Posted March 3, 2011 I know some work was done in 5b5 and 5b6 for this but I'm still seeing a * under temperature on the adaptec. Probably because it requires a device type (-d sat). Get rid of it in one place to bring it back in another - webGui: use smartctl program to enable SMART and get disk temperatures instead of ioctl()'s. - webGui: use hdparm program to query spinning status instead of ioctls()'; now all device type specific code is gone. I did notice the ioctl errors are gone from my syslog. Quote Link to comment
limetech Posted March 3, 2011 Share Posted March 3, 2011 The only way I can see to implement this is to provide a per-disk configuration parameter called "smartctl device type" where you would enter the string 'sat'. (If smartctl can't figure out the device type automatically, I won't be able to either). I can put this on the todo list, but to be honest, I'm not too crazy about supporting OLD hardware, especially old SCSI h/w which is notoriously quirky and is the reason why unRaid has never supported SCSI until wide availability of cheap SAS controllers. If I say, "yes I'll add all kinds of unique code to support OLD scsi controller xyz", then everyone will want to hit ebay and buy all the OLD quirky scsi controllers and expect support for them. I bet that controller has problems with spinup/spindown as well? Quote Link to comment
crazytony Posted March 3, 2011 Author Share Posted March 3, 2011 The 2805 is not an old controller -- it's still in production/shipping by Adaptec. They just released a firmware update that allows disks larger than 3TB as well. The problem is the SASLP is not available in Australia as far as I could find. Seems there is a huge regional variation in motherboard and SATA/SAS controller availability. Spinup/down was working in 4.6/4.7 and stopped working in 5. I know that the linux driver (aacraid) went through some large updates between the 4.7 kernel and the 5 kernel (I could get no smartctl data in 4.7 no matter what I did). It's not a huge priority because I can monitor the temps by myself. Quote Link to comment
limetech Posted March 3, 2011 Share Posted March 3, 2011 Does spin up/down work ok? Quote Link to comment
crazytony Posted March 4, 2011 Author Share Posted March 4, 2011 no -- it doesn't appear to work in 5. But it was working in 4.6 (confirmed both by hdparm and physically touching the device to check for vibrations). Quote Link to comment
Neo_x Posted September 2, 2012 Share Posted September 2, 2012 Sorry to resurrect - but i seem to have exactly the same issue - and thus the same request. I had a Series5 Adaptec controller spare after migrating hardware from my old to the Unraid server. and thought it should work nicely in my unraid build(and save some $$$'s in order to find another 24 port capable card) unfortunately - drive temperatures is not showing - only via the smartctl -d sat --all command Spin-down is a bit buggy as well - ie if i click on the spin down all button, i can hear all the drives spin down, but after a few seconds they spin-up again still filling the server with data, so spin-down is not a must as yet, but would love to try and get it working - if possible. any ideas is welcome thx Neo_x *edit* Currently using V5 RC5 syslog.txt Quote Link to comment
crazytony Posted October 7, 2012 Author Share Posted October 7, 2012 The latest beta seems to be a little better but it's still far from perfect. What disks are you using? 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.