Re: mdadm: failed devices become spares!

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tim Small
Date: Monday, May 17, 2010 - 2:09 pm

Pierre Vignéras wrote:

If you want to experiment with different ways of getting the data back,
but without risking writing anything to the drives, you could do this:

1. Use dmsetup to create copy-on-write "virtual drives" which
"see-through" to the content of your real drives, but don't risk writing
anything at all to them.

2. Use mdadm --create --assume-clean ...blahblah...
/dev/mapper/cow_drive_1  .....

to force mdadm to put the array back together the way you think it was
(the output of examine will be useful here).  You'll need to specify (at
least - from memory):

. stripe size
. metadata version (this affects metadata location on the drives)
. correct device order (with or without a single failed drive)


... after that you can run a read-only (or read-write) check on the COW
md partition to verify that you've got your data back, then mount it
read-only etc.  Once you're happy that your commands are going to get
things running again, you can run them "for real" on the non-COW devices.

See the recent list archives for my post on using a similar set of
commands for HW RAID data forensics, along with references....

HTH,

Tim.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RE: mdadm: failed devices become spares!, Leslie Rhorer, (Sun May 16, 12:56 pm)
Re: mdadm: failed devices become spares!, Pierre =?iso-8859-1? ..., (Mon May 17, 11:10 am)
Re: mdadm: failed devices become spares!, Tim Small, (Mon May 17, 2:09 pm)
Re: mdadm: failed devices become spares!, Neil Brown, (Mon May 17, 6:30 pm)
Re: mdadm: failed devices become spares!, Neil Brown, (Mon May 17, 7:06 pm)
Re: mdadm: failed devices become spares!, MRK, (Tue May 18, 3:25 pm)
Re: mdadm: failed devices become spares!, Pierre =?utf-8?q?Vig ..., (Tue May 18, 4:07 pm)
Re: mdadm: failed devices become spares!, Neil Brown, (Tue May 18, 6:45 pm)
Re: mdadm: failed devices become spares!, Simon Matthews, (Wed May 19, 12:56 pm)
Re: mdadm: failed devices become spares!, Pierre =?utf-8?q?Vig ..., (Fri May 21, 2:00 pm)
Re: mdadm: failed devices become spares! -> Solved !, Pierre =?utf-8?q?Vig ..., (Fri May 21, 2:27 pm)