lkml.org 
[lkml]   [2007]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Disk spin down issue on shut down/suspend to disk
From
Date
Dnia 06-08-2007, Pn o godzinie 12:01 -0300, Henrique de Moraes Holschuh
napisał(a):
> On Mon, 06 Aug 2007, Michael Sedkowski wrote:
> > Dnia 06-08-2007, Pn o godzinie 11:23 -0300, Henrique de Moraes Holschuh
> > napisa??(a):
> > > On Mon, 06 Aug 2007, Tejun Heo wrote:
> > > > Cc'ing Henrique. Any ideas?
> > >
> > > Check if /etc/init.d/halt is calling halt(8) with the -h flag. If it is,
> > > remove that -h flag. Usually, there is a hddown variable that holds it, you
> > > just need to get rid of it.
> > >
> > > I don't know anything about a Sidux, though.
> >
> > Well there is an -h variable:
> > # Don't shut down drives if we're using RAID.
> > hddown="-h"
> > if grep -qs '^md.*active' /proc/mdstat
> > then
> > hddown=""
> > fi
> > ....
> > log_action_msg "Will now halt"
> > halt -d -f $netdown $poweroff $hddown
> > However removing it has no effect, the drive still spins down two times.
>
> Nothing in Debian userspace will spin down the drive if you kill that -h, at
> least as far as I know.
>
> > Sidux is a Debian Unstable based distro with it's own set of patches
> > including the shut down patch provided here:
> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426224
>
> You'll probably have to ask Sidux what changes they made that could cause
> the double spin down, even if halt(8) is never passed the -h flag.
>
The double spin down problem occurs not only on Sidux, but on all
distros that I isued like Fedora 7, Mandriva, Debian or Ubuntu with
kernels ranging from 2.6.18 to 2.6.22. I only use the Sidux because they
released the shut down patch required to shut down properly on the
2.6.22 kernel line and on two other systems the drives are turned off
nicely [standard Debian still runs on the old shut down scripts. On that
basis I believe that this is a HP (Intel?) issue not related to any
particular distro.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-08-06 17:29    [W:0.099 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site