From: Asdo <asdo@shiftmail.org>
To: Rainer Fuegenstein <rfu@kaneda.iguw.tuwien.ac.at>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: raid5: cannot start dirty degraded array
Date: Wed, 23 Dec 2009 22:10:12 +0100 [thread overview]
Message-ID: <4B328734.2030201@shiftmail.org> (raw)
In-Reply-To: <1339530534.20091223201649@kaneda.iguw.tuwien.ac.at>
Rainer Fuegenstein wrote:
> hi,
>
> A> The --assemble --force needs correct order of drives to be specified!?!?
> A> I think it autodetects that
> A> (would be EXTREMELY RISKY otherwise...)
>
> oops, I didn't care about the order when --assembling :-(
>
And it didn't blow up, so I was right :-D
> A> Rainer, just after starting the array you can:
> A> mdadm --readonly /dev/md0
> A> so to be sure that no writes ever happen and a resync does not happen.
> A> I suggest to take data out before doing any modifications (such as a
> A> resync), if you can.
>
> tnx for the hint! have it mounted r/w right now, still copying the
> most important data to other media (for the next 24hours or so). do
> you think that I may run into any troubles if I unmount, reboot,
> re-assemble and mount r/o ?
>
Probably you can put it readonly right now, with xfs already mounted. Or
better you can put readonly the filesystem first, then the array: this
is probably safer. (mount -o remount,ro ... then mdadm --readonly
/dev/md0).
Hmm on second thought the raid device might refuse to go readonly if the
filesystem is mounted.... but you can try and see, it shouldn't be risky.
Also do not reboot, and do not stop the array (it works so don't fix it
:-D ). In the worst case you will have to unmount the filesystem, put
the array readonly, then remount the filesystem with -o
ro,nobarrier,norecovery .
> A> As MB suggests, it's better to keep the the most recently failed drive
> A> out of the array if possible, in order to have more coherent data. Also
> A> true when you are going to add the first spare (that will cause a resync
> A> and regeneration of one disk).
>
> since the bad sda is included at the moment - is it safe to remove it
> with mdadm /dev/md0 -r /dev/sda1 ?
>
I'm not sure... your mdstat
# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdb1[0] sdc1[3] sdd1[1]
4395407808 blocks level 5, 64k chunk, algorithm 2 [4/3] [UU_U]
shows sda1 is not included. (Probably resync started upon assemble and
sda1 failed just immediately)
In addition the array is already degraded and it's a raid5 so you cannot
remove another device: that would bring it down.
I'd try to put it readonly and then continue your backup.
Should you ever need to reassemble that array, I would specify the
drives explicitly (as opposed to using --scan) and keep sda1 out of the
list, as suggested by Majed B., like
mdadm --assemble --force /dev/md0 /dev/sdb1 /dev/sdc1 /dev/sdd1
then put it readonly, remount, and continue your backup. After backup completed you can add sda1 but I would probably add it as a new spare, e.g. clearing the superblock first. (That drive / controller / cabling might be defective though... I'm not sure on how to interpret your dmesg.)
Merry Christmas everybody!
Asdo
next prev parent reply other threads:[~2009-12-23 21:10 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-23 11:50 raid5: cannot start dirty degraded array Rainer Fuegenstein
2009-12-23 12:50 ` Rainer Fuegenstein
2009-12-23 13:25 ` Majed B.
2009-12-23 13:44 ` Re[2]: " Rainer Fuegenstein
2009-12-23 13:48 ` Majed B.
2009-12-23 14:02 ` Re[4]: " Rainer Fuegenstein
2009-12-23 14:04 ` Majed B.
2009-12-23 14:30 ` Re[6]: " Rainer Fuegenstein
2009-12-23 14:35 ` Majed B.
2009-12-23 15:13 ` Re[8]: " Rainer Fuegenstein
2009-12-23 15:16 ` Majed B.
2009-12-23 17:03 ` Re[10]: " Rainer Fuegenstein
2009-12-23 18:22 ` Justin Piszcz
2009-12-24 16:40 ` Thomas Fjellstrom
2009-12-27 12:57 ` 99-raid-check (was: raid5: cannot start dirty degraded array) Rainer Fuegenstein
2009-12-23 14:49 ` raid5: cannot start dirty degraded array Asdo
[not found] ` <1339530534.20091223201649@kaneda.iguw.tuwien.ac.at>
2009-12-23 21:10 ` Asdo [this message]
2009-12-23 13:13 ` spren.gm
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=4B328734.2030201@shiftmail.org \
--to=asdo@shiftmail.org \
--cc=linux-raid@vger.kernel.org \
--cc=rfu@kaneda.iguw.tuwien.ac.at \
/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).