smartctl -n standby wakes up drive

Bug #497256 reported by ChrisS
12
This bug affects 1 person
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:~$

Revision history for this message
ChrisS (yseeley) wrote :

I tried compiling the smartctl from smartmontools 5.39... same effect. The drive woke up after exiting smartctl.

chriss@bobo:~/tmp/smartmontools-5.39$ sudo hdparm -y /dev/sdb

/dev/sdb:
 issuing standby command
chriss@bobo:~/tmp/smartmontools-5.39$ sudo hdparm -C /dev/sdb

/dev/sdb:
 drive state is: standby
chriss@bobo:~/tmp/smartmontools-5.39$ sudo hdparm -C /dev/sdb

/dev/sdb:
 drive state is: standby
chriss@bobo:~/tmp/smartmontools-5.39$ sudo ./smartctl -n standby -a /dev/sdb
smartctl 5.39 2009-12-09 r2995 [x86_64-unknown-linux-gnu] (local build)
Copyright (C) 2002-9 by Bruce Allen, http://smartmontools.sourceforge.net

Device is in STANDBY mode, exit(2)
chriss@bobo:~/tmp/smartmontools-5.39$ sudo hdparm -C /dev/sdb

/dev/sdb:
 drive state is: active/idle
chriss@bobo:~/tmp/smartmontools-5.39$

Revision history for this message
Christian Franke (christian-franke) wrote :

Fixed in upstream smartmontools 5.39.1
http://sourceforge.net/apps/trac/smartmontools/ticket/37

Revision history for this message
Christian Franke (christian-franke) wrote :

The upstream fix is included in 10.10 (smartmontools-5.39.1+svn3077-1ubuntu1). Please close this bug.

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

As per comment #3 closing as fix-released; also tested it on Quantal - seems to work correctly as per your test.

Changed in smartmontools (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.