All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Gillen <me@mattgillen.net>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Best way to image devices in an LVM environment
Date: Sun, 27 Aug 2006 07:51:09 -0400	[thread overview]
Message-ID: <44F1872D.9030408@mattgillen.net> (raw)
In-Reply-To: <20060827061642.GN1011@strugglers.net>

Andy Smith wrote:
> On Sun, Aug 27, 2006 at 01:20:26PM +0800, Jim Morgan wrote:
>> At 27/08/2006 12:42, you wrote:
>>> So how would you accomplish the task of replacing sda and sdb with
>>> larger disks in the least amount of effort?  Downtime is not a
>>> problem, taking backups of the data is not a problem, booting off a
>>> live cd is not a problem; the goal is to find the least
>>> labour-intensive way to do this.
>> As I understand it -- and as I've proved before in this list, my 
>> understanding is fundamentally flawed :-) -- there is a way to do this.
>>
>> Basically you have to force one disk to fail using the raid 
>> administration software. You then remove the disk, replace it with 
>> the bigger disk, and rebuild it from the first one. The partition 
>> sizes may need adjusting. Then you force the other disk to fail, and 
>> replace it with the larger one, and then rebuild it from the other large 
>> disk.
> 
> Well I would then be left with two large disks where sd[ab]5 (and
> the sd[ab]4 primary partition that sd[ab]5 is the only logical
> partition within) does not extend all the way to the end of the
> disk.  I wasn't aware that you could resize RAID-1 md arrays though,
> I thought it was restricted to RAID-5.  Is this not the case?

To add another "I'm not an expert" opinion:
Supposing you can get all 4 disks in the server at the same time, you could
add your new disk's large partition to your existing logical volume, then do
a pvmove.  The advantage over the previous suggestion is that you don't need
to resize your RAID device when you're done (although you'd still want to
resize your filesystem to take advantage of all the new space).

Although now that I look at the instructions for doing this
(http://tldp.org/HOWTO/LVM-HOWTO/removeadisk.html; section 13.5.1), it seems
that is a dangerous operation.  If it worked though, it would probably be
the least labor intensive.

Matt

  reply	other threads:[~2006-08-27 11:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-27  4:42 [linux-lvm] Best way to image devices in an LVM environment Andy Smith
2006-08-27  5:20 ` Jim Morgan
2006-08-27  6:16   ` Andy Smith
2006-08-27 11:51     ` Matthew Gillen [this message]
2006-08-28 19:48       ` Andy Smith
2006-08-28 19:51         ` Graham Wood
2006-08-28 20:04           ` Andy Smith

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=44F1872D.9030408@mattgillen.net \
    --to=me@mattgillen.net \
    --cc=linux-lvm@redhat.com \
    /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.