Bug 494711 - Kernel prevents drive spinning down
Summary: Kernel prevents drive spinning down
Keywords:
Status: CLOSED DUPLICATE of bug 507963
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-07 20:56 UTC by Mace Moneta
Modified: 2009-07-17 20:45 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-07-17 20:45:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mace Moneta 2009-04-07 20:56:13 UTC
Description of problem:

I booted F11/rawhide to runlevel 1, and confirmed that nothing was polling my second drive (via "sysctl -w vm.block_dump=1"), /dev/sdb, which is normally only mounted for backups. 

However, I could not spin it down.  Every time it went to spin down, I
heard it spin up again immediately (confirmed with 'hdparm -C').  Even manually (via 'hdparm -y'), the drive immediately spun back up.

I booted a F10 liveCD, and the drive spins down no problem.

Version-Release number of selected component (if applicable):

kernel-2.6.29.1-52.fc11.x86_64

How reproducible:

Always

Steps to Reproduce:
1.Verify SMART is off in BIOS
2.Boot to single user mode to insure nothing is polling the drive
3.hdparm -S1 /dev/sdb and/or hdparm -y /dev/sdb
  
Actual results:

Drive does not spin down

Expected results:

Drive spins down

Additional info: Works in F10

Comment 1 Mace Moneta 2009-04-07 21:00:32 UTC
bug 454582 comment 5 may be related.

Comment 2 Bug Zapper 2009-06-09 13:26:44 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 max 2009-06-16 20:32:38 UTC
I had a script that did sleep my 2nd hard disk with "hdparm -y /dev/sdb" 

In Fedora 10 is was working and after the upgrade to Fedora 11 it did spin down but spins up right away. 

There is a bug listed in the debian bug tracker that's about the same problem. 

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526516

If I am right, it's about hdparm en pulling the drive to often via udev. 

I couldn't find a rpm of hdparm version >= 9.15. 
1 So I downloaded the source of hdparm
2 make
3 make install

and my problem is gone. The drive is quite noisy...

I hope this comment helps someone.

Comment 4 Mace Moneta 2009-06-16 20:53:25 UTC
I tried hdparm 9.15, and the drive is going idle now.  However, it is being brought active again after a few seconds.  Perhaps udev should skip polling drives that are unmounted and spun-down?  Or perhaps limit the polling on these drives to once a day and at boot?

Comment 5 Peter Backes 2009-07-17 20:33:03 UTC
(In reply to comment #0)
> However, I could not spin it down.  Every time it went to spin down, I
> heard it spin up again immediately (confirmed with 'hdparm -C').

actually, because of the nature of the hdparm bug, hdparm -C is another cause of the drive spinning up.

> Version-Release number of selected component (if applicable):
> 
> kernel-2.6.29.1-52.fc11.x86_64

this bug is incorrectly filed as a kernel bug

see also bug #507963 and bug #511936

Comment 6 Eric Sandeen 2009-07-17 20:45:00 UTC
Even though this bug was filed first :) I think duping it to 507963 is the right answer since that's a bit more descriptive, and on the right component.

*** This bug has been marked as a duplicate of bug 507963 ***


Note You need to log in before you can comment on or make changes to this bug.