linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Niccolo Rigacci <niccolo@rigacci.org>
To: Christian Pernegger <pernegger@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Can't get md array to shut down cleanly
Date: Thu, 6 Jul 2006 17:46:58 +0200	[thread overview]
Message-ID: <20060706154658.GC13285@rigacci.org> (raw)
In-Reply-To: <bb145bd20607060648p3776d335g55e4bdee4ecaf3c4@mail.gmail.com>

> My md raid5 still does not always shut down cleanly. The last few
> lines of the shutdown sequence are always as follows:
> 
> [...]
> Will now halt.
> md: stopping all md devices.
> md: md0 still in use.
> Synchronizing SCSI cache for disk /dev/sdd:
> Synchronizing SCSI cache for disk /dev/sdc:
> Synchronizing SCSI cache for disk /dev/sdb:
> Synchronizing SCSI cache for disk /dev/sda:
> Shutdown: hde
> System halted.


May be your shutdown script is doing "halt -h"? Halting the disk 
immediately without letting the RAID to settle to a clean state 
can be the cause?

I see that my Debian avoids the -h option if running RAID,
from /etc/init.d/halt:


        # Don't shut down drives if we're using RAID.
        hddown="-h"
        if grep -qs '^md.*active' /proc/mdstat
        then
                hddown=""
        fi

        # If INIT_HALT=HALT don't poweroff.
        poweroff="-p"
        if [ "$INIT_HALT" = "HALT" ]
        then
                poweroff=""
        fi

        log_action_msg "Will now halt"
        sleep 1
        halt -d -f -i $poweroff $hddown


-- 
Niccolo Rigacci
Firenze - Italy

Iraq, missione di pace: 38839 morti - www.iraqbodycount.net

  reply	other threads:[~2006-07-06 15:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-06 13:48 Can't get md array to shut down cleanly Christian Pernegger
2006-07-06 15:46 ` Niccolo Rigacci [this message]
2006-07-06 17:18   ` Christian Pernegger
2006-07-06 19:29     ` thunder7
2006-07-06 20:24       ` Christian Pernegger
2006-07-06 22:13 ` Neil Brown
2006-07-07  1:07   ` Christian Pernegger
2006-07-07  7:53     ` Neil Brown
2006-07-07  9:25       ` Christian Pernegger
2006-07-07 20:06         ` Christian Pernegger
2006-07-10 15:27           ` Christian Pernegger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060706154658.GC13285@rigacci.org \
    --to=niccolo@rigacci.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=pernegger@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).