All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Berra <bluca@comedia.it>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] How can I expand a physical volume ?
Date: Thu, 29 Dec 2005 22:44:51 +0100	[thread overview]
Message-ID: <20051229214451.GB6629@percy.comedia.it> (raw)
In-Reply-To: <43B39A85.7060107@email.it>

On Thu, Dec 29, 2005 at 09:12:53AM +0100, Massimiliano wrote:
>Hi !

two ways, either create a new partition with the free space,
pvcreate it and vgextend your volume group
or
edit your partition table and make the 2nd partition bigger.
(you might need to reboot here)
then 

>How should I modify the pe_count value in order to use these added 72Gbs 
>of new free space ?

>*******************
># Generated by LVM2: Wed Dec 21 11:50:55 2005
>
>contents = "Text Format Volume Group"
>version = 1
>
>description = "Created *after* executing 'vgcfgbackup'"
>
>creation_host = "mail.laferspa.com"    # Linux mail.laferspa.com 
>2.6.9-22.0.1.ELsmp #1 SMP Thu Oct 27 13:14:25 CDT 2005 i686
>creation_time = 1135162255    # Wed Dec 21 11:50:55 2005
>
>VolGroup00 {
>  id = "hVHrwV-Dt53-wbGa-ZwHQ-ZWcX-t5Tm-vQIVUu"
>  seqno = 3
>  status = ["RESIZEABLE", "READ", "WRITE"]
>  extent_size = 65536        # 32 Megabytes
^ this is how big is an extent in sectors (512 byte units)
>  max_lv = 0
>  max_pv = 0
>
>  physical_volumes {
>
>      pv0 {
>          id = "XAEWQR-s1qj-Cj5K-gv0W-9ndt-lroN-35ZvNE"
>          device = "/dev/cciss/c0d0p2"    # Hint only
>
>          status = ["ALLOCATABLE"]
>          pe_start = 384
>          pe_count = 4337    # 135,531 Gigabytes
this is the number of extents your physical volume is 
the size in sectors is pe_count * extent_size (4337 * 65536 = 284229632)
now look at /proc/partitions.
you have the size in bytes for your partition
multiply it by 2 and divide it by extent_size, and you get the new pe
count



-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

  parent reply	other threads:[~2005-12-29 21:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-29  8:12 [linux-lvm] How can I expand a physical volume ? Massimiliano
2005-12-29 18:11 ` Matthew Gillen
2005-12-29 21:44 ` Luca Berra [this message]
2006-01-04 10:35   ` Massimiliano
2006-01-05  0:47     ` Luca Berra

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=20051229214451.GB6629@percy.comedia.it \
    --to=bluca@comedia.it \
    --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.