Linux LVM users
 help / color / mirror / Atom feed
From: "Bryn M. Reeves" <breeves@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Unable to add new drive to LV
Date: Fri, 13 Oct 2006 17:19:54 +0100	[thread overview]
Message-ID: <452FBCAA.4080000@redhat.com> (raw)
In-Reply-To: <452FB129.7020208@gmx.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Klaus Strebel wrote:
> Hi Paul,
> 
> look's like you didn't get the LVM architecture :-(.
> You can't add a drive to a LV, no matter how brand new and shiny it is
> and no matter how deprerate you try.

Hi Klaus,

Looks like you didn't read the mail :-(.

Paul has already added hdd1 as a PV to the ide_disks VG:

> 
>>>   --- Physical volume ---
>>>   PV Name               /dev/hdd1
>>>   VG Name               ide_disks <------------------
>>>   PV Size               149.03 GB / not usable 0
>>>   Allocatable           yes
>>>   PE Size (KByte)       4096
>>>   Total PE              38152
>>>   Free PE               38152
>>>   Allocated PE          0
>>>   PV UUID               XxOREs-3k4B-jhky-lhGD-zQx5-xhE3-HPqG0L

The problem here is that the LV is using striped allocation across 3 PVs:

> root@backup:~# lvextend --size +149G -t /dev/ide_disks/bacula
>   Test mode: Metadata will NOT be updated.
>   Incorrect metadata area header checksum
>   Using stripesize of last segment 4KB
>   Rounding size (147200 extents) down to stripe boundary size for segment 
> (147198 extents)
>   Extending logical volume bacula to 574.99 GB
>   Insufficient allocatable extents suitable for parallel use for logical 
> volume bacula: 147198 required

So, in order to extend it and maintain that allocation, you need to have
3 PVs with sufficient space to allocate three parallel stripes.

Cheers,

Bryn.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFFL7yq6YSQoMYUY94RAlJ/AKDZaaaz+P6zQozq0mDfx5SRBxiUsQCgsVVb
MCl5XVqXGsEH+ZrYFHEAdps=
=mQWJ
-----END PGP SIGNATURE-----

  reply	other threads:[~2006-10-13 16:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-13 12:27 [linux-lvm] Unable to add new drive to LV Paul Waldo
2006-10-13 15:30 ` Klaus Strebel
2006-10-13 16:19   ` Bryn M. Reeves [this message]
2006-10-13 17:46     ` Paul Waldo
2006-10-13 18:37       ` Alasdair G Kergon
2006-10-13 19:48         ` Paul Waldo
2006-10-16  7:56     ` Klaus Strebel
2006-10-16 13:16       ` Paul Waldo

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=452FBCAA.4080000@redhat.com \
    --to=breeves@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox