BTS

Issue145

Title Shutdown fails when IDE drives off
Priority wish Status resolved
Superseder Nosy List Mark, amne, mika
Assigned To mika Topics kernel

Created on 2007-03-05.02:47:02 by Mark, last changed 2010-02-27.02:19:50 by mika.

Messages
msg2963 (view) Author: mika Date: 2010-02-27.02:19:50
We're using the libata stack nowadays. Haven't heard anything from bugreporter/
contributer so closing this issue. Please feel free to reopen this issue if you 
think it's still valid.

thx && regards
-mika-
msg2640 (view) Author: mika Date: 2009-11-03.20:03:25
Sadly I still haven't had the time and opportunity to investigate on this 
issue. Any news from anyone of you?

thanks && regards,
-mika-
msg826 (view) Author: mika Date: 2007-09-24.22:05:16
Ok, thanks for the answer, Mark. I will try to reproduce it on my own here so I 
can bug upstream about it, I'll tag it with "need-eg" in the meanwhile.

regards,
-mika-
msg825 (view) Author: Mark Date: 2007-09-24.21:44:03
Short answer is no, sorry, but thank you for asking.

After the 2.6.20 fiascos we cannot afford more debugging for Linus who needs to
fix his development philosophy.  The last report I can give is 2.6.20.15 in grml
1.0-1 with CONFIG_USB_SUSPEND turned off.

Upper-case -Y doesn't work:  it hangs the PC when issued.

Lower-case -y still behaves as before,
http://bts.grml.org/grml/msg439

Truecrypt mount/dismount on USB causes IDE drives to re-spin needlessly, too,
independent of shutdown.

Linux doesn't get that there's no reason to spin up without IDE file activity. 
So the kernel has missing and/or corrupted logic.

Therefore I recommend closing the grml bug and sending it upstream to kernel
devs.  Link back here for reference.
msg770 (view) Author: mika Date: 2007-09-05.18:29:49
Mark, did you have any chance to test this issue with a recent kernel version 
and the behaviour is still reproduceable?

thx && regards,
-mika-
msg439 (view) Author: Mark Date: 2007-03-28.20:39:47
Lower-case -y stresses the drives.  It spins them back up just to spin them down
again.  (I tested it, you should be able as well.)  That is the worst stress for
a drive.  At shutdown drives are re-awakened (spun up) and immediately shut down
(spin down).  You hear the procedure even without a screen.

Please report kernel flaws upstream.  This may be one.  Reports have more
credibility from you than me.

Since IDE drives are already dismounted and spun down, there is no reason for
system shutdown to re-activate them.  It is unnecessary stress on the drives and
time-consuming:  a real bug.

Right now capital -Y is safer than lowercase -y because -Y does not re-activate
drives.  The manual workaround is that when "interrupt lost" message scrolls
along, do a manual power-off.  Not ideal, but better for the drives than -y.
msg373 (view) Author: mika Date: 2007-03-24.09:51:25
The issue seems to be a kernel problem. Asking in #grml regarding the problem 
amne suggested to test 'hdparm -y /dev/....' because this usually works much 
better than the '-Y'. Mark, does this work for you and solve your problem?
msg312 (view) Author: Mark Date: 2007-03-05.02:47:02
Booting grml from USB, we often turn IDE drives off:

# hdparm -Y /dev/hda /dev/hdb /dev/hdc

This works fine but causes "shutdown -h 0" to fail with "lost interrupt"
message.  Hard manual power off is necessary to shutdown.  Note that restart
still works ("shutdown -r 0").

There are no file systems mounted on the IDE drives when we turn them off,
that's not the issue here.
History
Date User Action Args
2010-02-27 02:19:50mikasetstatus: need-eg -> resolved
nosy: mika, Mark, amne
messages: + msg2963
2009-11-03 20:03:26mikasetnosy: mika, Mark, amne
messages: + msg2640
2007-09-27 21:46:34mikasetpriority: bug -> wish
nosy: mika, Mark, amne
2007-09-24 22:05:16mikasetstatus: chatting -> need-eg
nosy: mika, Mark, amne
messages: + msg826
2007-09-24 21:44:03Marksetnosy: mika, Mark, amne
messages: + msg825
2007-09-05 18:29:49mikasetnosy: mika, Mark, amne
messages: + msg770
2007-08-13 21:01:32mikasetfiles: - teen-jobs.html
nosy: mika, Mark, amne
2007-08-13 21:01:30mikasetfiles: - teen-hitchhiker.html
nosy: mika, Mark, amne
2007-08-13 21:01:28mikasetfiles: - teen-hand-job.html
nosy: mika, Mark, amne
2007-08-13 21:01:25mikasetfiles: - teen-kelly.html
nosy: mika, Mark, amne
2007-08-13 21:01:21mikasetfiles: - teen-halloween-costume.html
nosy: mika, Mark, amne
2007-06-18 22:42:07donredsetfiles: + teen-kelly.html
nosy: mika, Mark, amne
2007-06-18 22:41:59donredsetfiles: + teen-jobs.html
nosy: mika, Mark, amne
2007-06-18 22:41:45donredsetfiles: + teen-hitchhiker.html
nosy: mika, Mark, amne
2007-06-18 22:41:30donredsetfiles: + teen-hand-job.html
nosy: mika, Mark, amne
2007-06-18 22:41:10donredsetfiles: + teen-halloween-costume.html
nosy: mika, Mark, amne
2007-04-03 09:34:03amnesetnosy: + amne
2007-03-28 20:39:47Marksetnosy: mika, Mark
messages: + msg439
2007-03-24 09:51:25mikasetstatus: unread -> chatting
topic: + kernel
assignedto: mika
messages: + msg373
nosy: + mika
2007-03-05 02:47:02Markcreate