All of lore.kernel.org
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Anton Altaparmakov <aia21@cam.ac.uk>
Cc: linux-raid@vger.kernel.org
Subject: Re: How to grow RAID1 mirror on top of LVM?
Date: Tue, 25 Mar 2008 16:36:40 +1100	[thread overview]
Message-ID: <18408.36712.100712.499844@notabene.brown> (raw)
In-Reply-To: message from Anton Altaparmakov on Thursday March 13

On Thursday March 13, aia21@cam.ac.uk wrote:
> 
> Is there a better way to do this?  I am hoping someone will tell me to  
> use option blah to utility foo that will do this for me without having  
> to break the mirror twice and resync each time.  (-;

Sorry, but no.  This mode of operation was never envisaged for md.
I would always put the md/raid1 devices below the LVM.

Every time you buy two drives, combine them into a RAID1, and add the
/dev/mdX as a PV for LVM.  Then grow you LVM devices whenever you
like.

> 
> If not, please consider this a feature request for mdadm.  (-:  It  
> should have an option to detect that the underlying device has grown  
> and thus write a new superblock  (or move the old one or whatever) at  
> the end of the newly grown device instead of complaining that it does  
> not exist.  Or something!  As it is, it is incredibly time consuming  
> and inefficient.  )-:

I'll keep it in mind (Which it to say:  I will save this in my 'mdadm'
mailbox, and have a look through that mailbox next time I'm working on
improvements to mdadm).

NeilBrown

  reply	other threads:[~2008-03-25  5:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-13 11:21 How to grow RAID1 mirror on top of LVM? Anton Altaparmakov
2008-03-25  5:36 ` Neil Brown [this message]
2008-03-25  8:00   ` Anton Altaparmakov
2008-04-28 14:25   ` Lars Täuber
2008-04-28 15:09     ` David Lethe
2008-04-29  7:55       ` Lars Täuber
2008-04-29 13:21         ` David Lethe
2008-05-02  3:14     ` Neil Brown
2008-05-02  7:23       ` Lars Täuber
2008-05-02 15:06       ` Russ Hammer
2008-05-04 11:20         ` Neil Brown
2008-05-05  7:10           ` Lars Täuber
2008-05-06 12:34           ` Russ Hammer

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=18408.36712.100712.499844@notabene.brown \
    --to=neilb@suse.de \
    --cc=aia21@cam.ac.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 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.