View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat May 05, 2007 2:42 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
I'm want to try setting the "quiet mode" of my SATA drive. When I execute "hdparm -I /dev/sda" part of the output states
Quote:
Recommended acoustic management value: 254, current value: 0

This means that acoustic management is turned off. However, when I try to only query the acoustic mode I get:
Quote:
hdparm -M /dev/sda

/dev/sda:
HDIO_GET_ACOUSTIC failed: Inappropriate ioctl for device

This does not leave me feeling confident that trying to set the value via hdparm is safe. Does anyone know if using hdparm to set values on a SATA drive is safe, or if there is a different utility for sata drives? I'm on R5D1. Thanks!

Marc


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 06, 2007 12:36 am 
Offline
Joined: Fri May 21, 2004 11:55 pm
Posts: 1206
Location: Silicon Valley, CA
I don't know the answer to your question, but oddly enough I got the same error the other day when I tried to set 32-bit mode "on" for my drive. Mine is a PATA drive with one of those little SATA converter boards on it, so I wrote it off to weird hardware. Now I'm wondering if hdparm works on SATA drives in general.

Joe

_________________
Do you code to live, or live to code?
Search LinHES forum through Google


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 06, 2007 8:45 am 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
I've read various things about the usability of hdparm w/ SATA drives, all of which leaves me feeling that the answer is "it depends". I'll keep digging.

I (thought) I saw a reply from TJC about trying out smartctl, but I don't see his post anymore. Not sure what happened there, but I tried out smartctl as it's already installed on R5D1. I am able to use smartctl to query the drive but I can't find a way to set the acoustic management setting with that utility. To get it to report back stuff I had to use the "-d ata" flag.

Marc


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 06, 2007 9:28 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
I killed my earlier post since it didn't contain any useful information. Seems that smartctl doesn't work on SATA drives (at least not on my WD5000KS-55MNB0) and searching didn't turn up any obvious alternatives.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 06, 2007 9:31 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
Glad to hear that I wasn't hallucinating :-)

Actually, I think you were right the first time that smartctl will work with SATA drives. The issue I had was that I can't find a way to change the acustic parameter with it. FWIW -- here is what I get when I query the drive:
Code:
root@mythhd:~# smartctl -d ata -a /dev/sda
smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     ST3500630AS
Serial Number:    9QG0K1DQ
Firmware Version: 3.AAK
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Sun May  6 20:28:35 2007 PDT
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:  (0x82) Offline data collection activity
                                        was completed without error.
                                        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:                 ( 430) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No 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:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 163) minutes.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   110   097   006    Pre-fail  Always       -       148697156
  3 Spin_Up_Time            0x0003   094   094   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       18
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   066   060   030    Pre-fail  Always       -       4898855
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       387
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       18
187 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
189 Unknown_Attribute       0x003a   100   100   000    Old_age   Always       -       0
190 Unknown_Attribute       0x0022   059   057   045    Old_age   Always       -       723779625
194 Temperature_Celsius     0x0022   041   043   000    Old_age   Always       -       41 (Lifetime Min/Max 0/20)
195 Hardware_ECC_Recovered  0x001a   066   061   000    Old_age   Always       -       239091199
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0000   100   253   000    Old_age   Offline      -       0
202 TA_Increase_Count       0x0032   100   253   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1

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.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu