All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Riemer <sebastian.riemer@profitbricks.com>
To: Vasiliy Tolstov <v.tolstov@selfip.ru>
Cc: NeilBrown <neilb@suse.de>, Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: mdadm raid1 regression
Date: Mon, 22 Apr 2013 11:38:37 +0200	[thread overview]
Message-ID: <5175051D.8040800@profitbricks.com> (raw)
In-Reply-To: <CACaajQuq=rAvm-uJLyhv3ufP=R4WGeXef5o9Tdi3EvTuoX=YRw@mail.gmail.com>

On 22.04.2013 08:28, Vasiliy Tolstov wrote:
>> Why are you doing that?
> 
> Our storage have two nodes each provides disk via srp to nodes. On
> each node we create separate lvm (we not using clvm) and assemble md.
> Sometimes we resize lvm and need to zero superblock, becouse sometimes
> we can still have old mdadm data on lvm part (from previous user for
> example). And then we add disk to raid we can get sometimes broken
> data (invalid sync).
> 
>>
>>> P.S. If i use mdadm 3.2.2 i get data offset 4096 that not breaks data,
>>> but inconsistent with older versions.
>>
>> I suggest you use mdadm 3.2.2 then.
> 
> Yes, i'm already do that, but i think that lates mdadm version with
> data-offset patches can solve my problems. Is that possible to correct
> it behaviour and write in docs which data offset used in which version
> of mdadm?
> 
>>
>>> P.P.S. I'm try to specify --data-offset when create array but as i see
>>> - its ignored and data offset still have 8192).
>>
>> I'll try to make sure that works correctly for the next release.
>> Thanks for the report.

So you use MD RAID-1 on the SRP initiator for replication?

So do we. We've just hacked mdadm to always use one LV extent (4 MiB)
for the "head room" with RAID-1 and don't allow reshape of RAID-1
anymore. This makes it very easy to calculate. We had to change mdadm
and the MD kernel code anyway to provide advanced replication features.

We've even got safe VM live migration with it and raw-to-md migration
letting the MD syncer do the job to sync the data from the raw device to
the MD devices. :-)
Replication of virtual storage doesn't really work without custom
hacking with MD. This use case is very hard to merge with mainline
behavior. But the required changes are relatively small.

Cheers,
Sebastian

  reply	other threads:[~2013-04-22  9:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18 10:38 mdadm raid1 regression Vasiliy Tolstov
2013-04-19 20:52 ` Greg KH
2013-04-21 22:35 ` NeilBrown
2013-04-22  6:28   ` Vasiliy Tolstov
2013-04-22  9:38     ` Sebastian Riemer [this message]
2013-04-22  9:56       ` Vasiliy Tolstov
2013-12-27  6:48   ` Vasiliy Tolstov
2014-01-05 22:11     ` NeilBrown
2014-01-22 11:56       ` Vasiliy Tolstov

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=5175051D.8040800@profitbricks.com \
    --to=sebastian.riemer@profitbricks.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    --cc=v.tolstov@selfip.ru \
    /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.