From: NeilBrown <neilb@suse.de>
To: Piergiorgio Sartor <piergiorgio.sartor@nexgo.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: Data Offset
Date: Thu, 24 May 2012 15:20:38 +1000 [thread overview]
Message-ID: <20120524152038.1d01b866@notabene.brown> (raw)
In-Reply-To: <20120510174210.GA2991@lazy.lzy>
[-- Attachment #1: Type: text/plain, Size: 1608 bytes --]
On Thu, 10 May 2012 19:42:10 +0200 Piergiorgio Sartor
<piergiorgio.sartor@nexgo.de> wrote:
> Hi,
>
> after the RAID-5 problem, I just realized that
> other RAIDs I have, including a multi RAID-6,
> have different data offset for each component.
>
> This seems to be quite of a problem, in case
> "Create" is used to recover an array.
>
> Obviouly, if a 4 disks RAID-5 has 2 disks with
> one offset and 2 with another, it will not be
> possible to re-create it (saving the data).
I certainly won't be easy. Though if someone did find themselves in that
situation it might motivate me to enhance mdadm in some way to make it easily
fixable.
>
> Is there any way to fix/prevent such issue?
> Shouldn't "mdadm" make sure all offset are
> the same? Or try, at least...
I'm not sure. Maybe...
With linux-3.5 and mdadm-3.3 (both unreleased) you will probably be able to
mdadm --grow --data-offset=5M
and that will happen. At least for RAID10. Other levels might follow later.
Should mdadm keep them always the same? The reason that it doesn't is that I
thought that you could change the data offset by removing each device and
adding it back as a spare with a new data_offset. Maybe that isn't such a
good idea.
I suspect that I got a chorus of people all saying "please keep data_offset
consistent" - and particular if I received a patch which did that - then I
would probably change mdadm accordingly.
NeilBrown
>
> What I noticed is that, adding a disk later,
> might cause different offsets.
>
> Any idea?
>
> Thanks,
>
> bye,
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2012-05-24 5:20 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-10 17:42 Data Offset Piergiorgio Sartor
2012-05-24 5:20 ` NeilBrown [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-06-01 23:22 freeone3000
2012-06-01 23:52 ` NeilBrown
2012-06-02 0:48 ` freeone3000
2012-06-04 3:35 ` NeilBrown
2012-06-04 18:26 ` Pierre Beck
2012-06-04 22:57 ` NeilBrown
2012-06-05 5:26 ` freeone3000
2012-06-05 5:44 ` NeilBrown
[not found] ` <CAFhY2CiDTMRSV2wFCMhT9ZstUkHkJS7E0p7SP-ssfqwaquo+0w@mail.gmail.com>
[not found] ` <20120610074531.65eaed81@notabene.brown>
[not found] ` <CAFhY2CgxkjH6JvJzvQt9XT0oawntK7YoTFqnXQJGzvqthD8XpQ@mail.gmail.com>
2012-06-13 9:46 ` Pierre Beck
2012-06-13 12:49 ` Phil Turmel
2012-06-13 17:56 ` Pierre Beck
2012-06-13 18:11 ` Phil Turmel
2012-06-13 18:22 ` Pierre Beck
2012-06-13 18:49 ` Piergiorgio Sartor
2012-06-20 3:56 ` freeone3000
2012-06-20 14:09 ` Pierre Beck
2012-06-25 6:25 ` NeilBrown
2014-02-24 11:22 ` wiebittewas
2014-02-24 21:38 ` NeilBrown
2014-05-15 14:11 Data offset Patrik Horník
2014-05-15 22:07 ` NeilBrown
2014-05-16 0:41 ` Patrik Horník
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=20120524152038.1d01b866@notabene.brown \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=piergiorgio.sartor@nexgo.de \
/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.