From: Piergiorgio Sartor <piergiorgio.sartor@nexgo.de>
To: John Rowe <J.M.Rowe@exeter.ac.uk>
Cc: linux-raid@vger.kernel.org
Subject: Re: Unusual RAID 1 recovery problem
Date: Fri, 10 May 2013 20:13:49 +0200 [thread overview]
Message-ID: <20130510181349.GA5168@lazy.lzy> (raw)
In-Reply-To: <1368207075.17201.49695.camel@amp>
On Fri, May 10, 2013 at 06:31:15PM +0100, John Rowe wrote:
> Following a system reinstall (an upgrade from Scientific Linux 5.x to
> to 6.x), I had a RAID1 array that I could start manually with:
>
> > mdadm --assemble /dev/md0 /dev/sda4 /dev/sdb4
>
> but would not start automatically on reboot. SL is a RedHat clone and
> all partitions were of type "fd".
>
> The above command worked fine and I could see all my data, but every
> time I rebooted the RAID1 array wasn't there.
>
> Encouraged by the reassuring words of the mdadm man page:
>
> --assume-clean
> Tell mdadm that the array pre-existed and is known
> to be clean. It can be useful when trying to recover from a
> major failure as you can be sure that no data will be affected
> unless you actually write to the array.
>
> I tried:
>
> > mdadm --create -l 1 -n 2 -assume-clean /dev/md0 /dev/sda4 /dev/sdb4
Why oh why?
If assembly works, then the array is good,
likely the problem was in the initramfs or
the like.
> This worked, following the usual warning about how the partitions had
> previously been part of an array. But now:
>
> > mount -r /md0 /bob
>
> refuses to do anything even if I try:
>
> > mount -t ext2 -r /md0 /bob
>
> I get an error message listing various possibilities such as "bad
> superblock". dmesg tells me it can't find an ext2 file system
> on /dev/md0
>
>
> Clearly I had misunderstood the meaning of "you can be sure that no data
> will be affected unless you actually write to the array" but I'm hoping
> there is still a way of accessing this unaffected data.
Actually, you wrote to the array.
Using "create", you wrote a new superblock and, possibly,
a new "data offset".
Problem is that different versions of "mdadm" use different
offset for the data.
So now, likely, it could be your data starting point, were
ext2 should lie, is a bit more far than it was and ext2 is
not found anymore (obviously).
I think probably you can still recover you data, if the
offset could be somehow recovered.
Of course, it could be I'm wrong and something else failed.
bye,
pg
>
> Thanks.
>
> John
>
>
>
> --
> 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
--
piergiorgio
next prev parent reply other threads:[~2013-05-10 18:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-10 17:31 Unusual RAID 1 recovery problem John Rowe
2013-05-10 18:13 ` Piergiorgio Sartor [this message]
2013-05-10 19:23 ` Tregaron Bayly
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=20130510181349.GA5168@lazy.lzy \
--to=piergiorgio.sartor@nexgo.de \
--cc=J.M.Rowe@exeter.ac.uk \
--cc=linux-raid@vger.kernel.org \
/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).