From: William Colls <william.colls@rogers.com>
To: Phil Turmel <philip@turmel.org>
Cc: John Robinson <john.robinson@yuiop.co.uk>,
"linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>
Subject: Re: Raid Problem - Unknown File System Type
Date: Mon, 14 Nov 2011 10:01:31 -0500 [thread overview]
Message-ID: <4EC12D4B.3050407@rogers.com> (raw)
In-Reply-To: <4EBBFC9A.4030103@turmel.org>
First let ma apologise for the long silence. I wanted to take a "minute"
to think carefully about how to proceed to maximize my chances of
getting a good out come.
Having said that, the outcome was all that I could have hoped for and
more. I have recovered the array, and all the data seems to be complete
and in tact. Thank you all most sincerely for you thoughtful and helpful
replies. Without your interest, I would have lost everything. Again
thank you for all your assistance. Once again, the open source community
shows itself to be the greatest place to be in the computer world, and I
feel privilaged to be able to stand at the edge, and try to be part of it.
Thanks all.
On 11/10/2011 11:32 AM, Phil Turmel wrote:
> On 11/10/2011 11:12 AM, John Robinson wrote:
>> On 10/11/2011 15:48, Phil Turmel wrote:
>>> On 11/10/2011 10:23 AM, William Colls wrote: [...]
>>>> the array was mounted as follows
>>>>
>>>> mount -t ext3 /dev/md0p1 /opt/share
>>>>
>>>> LVM was not installed on the old system, nor is it installed on
>>>> the new machine
>> [...]
>>> If none of this works, I'm out of ideas. You'd probably want to
>>> ask for more help on the linux-ext4 mailing list.
>>
>> The only thing that occurs to me is the possibility that both the md
>> device was made from partitions, not whole drives, and the md device
>> was itself partitioned. I wouldn't know quite how to go about
>> checking though.
>
> Great call! I just looked back at the hexdump, and sure enough, there's a nested MBR there. It's missing a bootloader, which threw me off, but there is a single partition defined.
>
> William, you can thank John.
>
> Here's what you need to do:
>
> mdadm --stop /dev/md0
> mdadm --zero-superblock /dev/sd[bc]
>
> partx -a /dev/sdb
> partx -a /dev/sdc
>
> cat /proc/partitions
> (to verify that /dev/sda1 and /dev/sdb1 are present)
>
> mdadm --create --assume-clean /dev/md0 --level=1 -n 2 /dev/sda1 /dev/sdb1
>
> cat /proc/partitions
> (to verify that /dev/md0p1 is present)
>
> mount ....
>
> If you want to minimize the chance of mdadm getting confused again, you probably want v1.x metadata. (But not just yet. Get your data back, first.) It includes offset information that avoids the ambiguity when v0.90 metadata is on the last partition of a disk. Otherwise, you need to set up mdadm.conf to exclude /dev/sdb and /dev/sdc from consideration, and make sure that ends up in your initramfs.
>
> Also, your partitions, both the outer and the nested, start with sector 63. This is bad for performance on modern drives, as most big ones have physical 4k sectors. After you make your backup, I suggest you recreate your entire setup from scratch, making sure alignment is appropriate, and switching to v1.1 or v1.2 metadata.
>
> Phil
>
--
I know you believe that you understand what you think I said, but I am
not sure that you realize that what you heard was not what I meant.
next prev parent reply other threads:[~2011-11-14 15:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-09 16:12 Raid Problem - Unknown File System Type William Colls
2011-11-09 16:39 ` Robin Hill
2011-11-09 17:12 ` William Colls
2011-11-09 18:55 ` Phil Turmel
2011-11-09 19:57 ` William Colls
2011-11-09 20:05 ` Phil Turmel
[not found] ` <4EBAE90F.2030104@rogers.com>
2011-11-09 21:45 ` Phil Turmel
2011-11-10 3:36 ` William Colls
2011-11-10 3:57 ` Phil Turmel
2011-11-10 15:23 ` William Colls
2011-11-10 15:48 ` Phil Turmel
2011-11-10 16:12 ` John Robinson
2011-11-10 16:32 ` Phil Turmel
2011-11-14 15:01 ` William Colls [this message]
2011-11-10 8:53 ` Robin Hill
2011-11-09 17:07 ` Gordon Henderson
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=4EC12D4B.3050407@rogers.com \
--to=william.colls@rogers.com \
--cc=john.robinson@yuiop.co.uk \
--cc=linux-raid@vger.kernel.org \
--cc=philip@turmel.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).