Linux LVM users
 help / color / mirror / Atom feed
From: Arshavir Grigorian <ag@m-cam.com>
To: LVM general discussion and development <linux-lvm@redhat.com>,
	agk@redhat.com
Subject: Re: [linux-lvm] Re: partition strategy
Date: Thu, 02 Sep 2004 18:40:30 -0400	[thread overview]
Message-ID: <4137A15E.30208@m-cam.com> (raw)
In-Reply-To: <20040902174230.GG6264@agk.surrey.redhat.com>

Alasdair G Kergon wrote:

>On Wed, Sep 01, 2004 at 05:09:52PM -0400, Arshavir Grigorian wrote:
>  
>
>>>Is it better to create 3 partitions 2 x230G + 1G 
>>>OR
>>>Is it better to create 2 paritions 230G and 231G, put both in a vg, 
>>>      
>>>
>
>The VG contains the same space in both cases so do the simplest
>ie the first option.  In both cases you'll need to run lvcreate for
>460G followed by lvextend for 1G.
>
>Alasdair
>  
>

Thanks for the response.
For some reason even the first option does not work.
I created 3 partitions, added the 2 same sized ones to a vg, created a 
striped lv, then extended the vg to include the third small partition. 
After this I tried extending the lv to the new partition, but got the 
error below. Could you, please tell me what I am doing wrong? TIA.

Arshavir

casals:~# vgdisplay
  --- Volume group ---
  VG Name               vg00
  System ID            
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               463.60 GB
  PE Size               4.00 MB
  Total PE              118682
  Alloc PE / Size       0 / 0  
  Free  PE / Size       118682 / 463.60 GB
  VG UUID               PyRda0-g9mC-LxrH-txvE-CKb6-jP6T-Ou103y

casals:~# lvcreate -i 2 -I 8 -l 118682 vg00

casals:~# vgextend vg00 /dev/hdc3
  Volume group "vg00" successfully extended

casals:~# vgdisplay
  --- Volume group ---
  VG Name               vg00
  System ID            
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  4
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               464.12 GB
  PE Size               4.00 MB
  Total PE              118816
  Alloc PE / Size       118682 / 463.60 GB
  Free  PE / Size       134 / 536.00 MB
  VG UUID               PyRda0-g9mC-LxrH-txvE-CKb6-jP6T-Ou103y
  
casals:~# lvextend -l +134 /dev/vg00/lvol0 /dev/hdc3
  Using stripesize of last segment 8KB
  Extending logical volume lvol0 to 464.12 GB
  Insufficient allocatable extents suitable for parallel use for logical 
volume lvol0: 118816 required

  reply	other threads:[~2004-09-02 22:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-25 19:24 [linux-lvm] partition strategy Arshavir Grigorian
2004-09-01 21:09 ` [linux-lvm] " Arshavir Grigorian
2004-09-02 13:52   ` Stephen Boulet
2004-09-02 17:42   ` Alasdair G Kergon
2004-09-02 22:40     ` Arshavir Grigorian [this message]
2004-09-03 12:49       ` Alasdair G Kergon
2004-09-03 15:05         ` Arshavir Grigorian

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=4137A15E.30208@m-cam.com \
    --to=ag@m-cam.com \
    --cc=agk@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