linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Asdo <asdo@shiftmail.org>
To: John Robinson <john.robinson@anonymous.org.uk>
Cc: linux-raid <linux-raid@vger.kernel.org>
Subject: Re: First raid1 sector gets zeroed at first reboot
Date: Wed, 17 Aug 2011 18:45:26 +0200	[thread overview]
Message-ID: <4E4BF026.8030006@shiftmail.org> (raw)
In-Reply-To: <4E4BD186.4070604@anonymous.org.uk>

On 08/17/11 16:34, John Robinson wrote:
> On 17/08/2011 15:00, Asdo wrote:
>> No you are confusing it with metadata 1.1 .
>> Metadata 1.0 has the data at the end like 0.9 .
>
> No I'm afraid it's you that's confused. Metadata 1.0 has the 
> *metadata* at the end, like 0.9, so it has the data i.e. filesystem 
> area at the beginning. Take a look with mdadm -D, the data offset is 
> zero.
>
> This is why partitions with 0.9 or 1.0 metadata in RAID-1 can be used 
> individually to boot from because the partitions look identical to 
> ones that just have filesystems on them.

That's correct, the same thing I meant.

Then I had misinterpreted you:
> The first sector of a md RAID with metadata 1.0 is in its data area, 
> so there's no way md is writing to this area itself, it's almost 
> certainly the filesystem that's writing it. 
This is an interesting observation then. ("no way" is a bit extreme 
though) You are right in the sense that it might have been the 
filesystem that is doing something at the first remount, and not MD. I 
can't be sure it's MD anymore. Still, this is wrong, why should the 
filesystem wipe its own boot sector?
It's ext3 btw. If no one pops up with an explanation here on linux-raid 
I will also ask there.

I still stand that what I am doing is correct. I am using the partition 
boot sector properly
http://en.wikipedia.org/wiki/Volume_boot_record

Thank you

  reply	other threads:[~2011-08-17 16:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-16 17:42 First raid1 sector gets zeroed at first reboot Asdo
2011-08-17 13:43 ` John Robinson
2011-08-17 14:00   ` Asdo
2011-08-17 14:34     ` John Robinson
2011-08-17 16:45       ` Asdo [this message]
2011-08-17 17:32         ` John Robinson

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=4E4BF026.8030006@shiftmail.org \
    --to=asdo@shiftmail.org \
    --cc=john.robinson@anonymous.org.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).