smartctl -n standby wakes up drive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
smartmontools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: smartmontools
In 9.04, drives stayed in standby... after upgrading to 9.10 they don't stay in standby. I think the root cause is smartctl waking up the drives even when instructed not to.
Demonstration:
chriss@bobo:~$ sudo hdparm -y /dev/sdb
/dev/sdb:
issuing standby command
chriss@bobo:~$ sudo hdparm -C /dev/sdb
/dev/sdb:
drive state is: standby
chriss@bobo:~$ sudo smartctl -n standby -a /dev/sdb | grep Load_Cycle_Count
chriss@bobo:~$ sudo hdparm -C /dev/sdb
/dev/sdb:
drive state is: active/idle
chriss@bobo:~$ sudo smartctl -n standby -a /dev/sdb | grep Load_Cycle_Count
193 Load_Cycle_Count 0x0012 100 100 000 Old_age Always - 646
chriss@bobo:~$
I tried compiling the smartctl from smartmontools 5.39... same effect. The drive woke up after exiting smartctl.
chriss@ bobo:~/ tmp/smartmontoo ls-5.39$ sudo hdparm -y /dev/sdb
/dev/sdb: bobo:~/ tmp/smartmontoo ls-5.39$ sudo hdparm -C /dev/sdb
issuing standby command
chriss@
/dev/sdb: bobo:~/ tmp/smartmontoo ls-5.39$ sudo hdparm -C /dev/sdb
drive state is: standby
chriss@
/dev/sdb: bobo:~/ tmp/smartmontoo ls-5.39$ sudo ./smartctl -n standby -a /dev/sdb unknown- linux-gnu] (local build) smartmontools. sourceforge. net
drive state is: standby
chriss@
smartctl 5.39 2009-12-09 r2995 [x86_64-
Copyright (C) 2002-9 by Bruce Allen, http://
Device is in STANDBY mode, exit(2) bobo:~/ tmp/smartmontoo ls-5.39$ sudo hdparm -C /dev/sdb
chriss@
/dev/sdb: bobo:~/ tmp/smartmontoo ls-5.39$
drive state is: active/idle
chriss@