From: Piergiorgio Sartor <piergiorgio.sartor@nexgo.de>
To: linux-raid@vger.kernel.org
Subject: Re: RAID without superblock
Date: Sun, 19 Apr 2009 23:04:07 +0200 [thread overview]
Message-ID: <20090419210200.GA6942@lazy.lzy> (raw)
In-Reply-To: <e96b335a0ba8595e2921d164f9b15ff7.squirrel@neil.brown.name>
Hi,
thanks for the answer.
> Why would you want a RAID-1 without superblock. I generally
> consider that a legacy configuration.
Ah! I was thinking about it as a method to
build a RAID with an already existing disk
or partition, which cannot be modified.
So, let's say I've already a disk with some
data and I want/need to protect it with a
RAID configuration, but I cannot re-create
the RAID from scratch, because this will
damage the content of the disk.
Of course, if there is another solution,
like having the superblock on a separate
file, it would be nice too.
BTW, have you ever consider that?
> As there is no superblock, md cannot tell if the array is "clean"
> or not. It assumes the worst.
> If you know for a fact that the two mirrors are consistent,
> then tell mdadm with "--assume-clean".
Uhm, no, it is not clean, but one of the two
has the correct data, the other no.
Is the "-B" always copying from the first to
the second or else?
For example, I found consistent to create the
array with the correct disk and "missing",
then add the mirror.
Of course, if there is a known order for the
resync, then it would be enough to build
the array with this in mind.
The issue could also be that the "primary"
disk could be updated alone, sometimes.
> A bitmap (which has to be in a separate file) can be use
Of course, it is a separate file... :-)
> to record the clean/dirty status. It provides some of the same
> functionality as a superblock. But it is not a complete replacement.
OK, this is clear.
> To quote from the man page:
>
> Because of this, the Build mode should only be used
> together with a complete understanding of what you are doing.
Exactly, I ran into that sentence, that's why
I'm asking, I try to get the full understanding
in order to see if I can use this "feature"...
In any case, if this is "legacy", maybe better
to forget about it.
Thanks again,
bye,
--
piergiorgio
next prev parent reply other threads:[~2009-04-19 21:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-19 11:47 RAID without superblock Piergiorgio Sartor
2009-04-19 20:44 ` NeilBrown
2009-04-19 21:04 ` Piergiorgio Sartor [this message]
2009-04-19 21:57 ` Andrew Burgess
2009-04-20 18:10 ` Piergiorgio Sartor
2009-04-20 18:17 ` Christopher Chen
2009-04-19 23:33 ` John Robinson
2009-04-20 5:13 ` Tapani Tarvainen
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=20090419210200.GA6942@lazy.lzy \
--to=piergiorgio.sartor@nexgo.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.