Linux LVM users
 help / color / mirror / Atom feed
From: "Ajeet Nankani" <fromkth+lvm@fastmail.fm>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Reducing PV/ Reclaiming free PEs from a PV to be usedfor another partition/purpose outside of LVM
Date: Sun, 06 Feb 2005 13:01:30 -0800	[thread overview]
Message-ID: <1107723690.9660.214451087@webmail.messagingengine.com> (raw)
In-Reply-To: <20050206202440.GI14093@agk.surrey.redhat.com>

On Sun, 6 Feb 2005 20:24:40 +0000, "Alasdair G Kergon" <agk@redhat.com>
said:
> On Sun, Feb 06, 2005 at 12:15:48PM -0800, Ajeet Nankani wrote:
> > vgcfgbackup which would give me meta file data as below 
>  
> >         extent_size = 65536             # 32 Megabytes
> 
> >                         device = "/dev/hda6"    # Hint only
>  
> >                         pe_start = 384
> >                         pe_count = 266  # 8.3125 Gigabytes
> 
> >                                 extent_count = 192      # 6 Gigabytes
> >                                         "pv0", 0
> 
> 0-191
> 
> >                                 extent_count = 32       # 1024 Megabytes
> >                                         "pv0", 192
> 
> 192-223
> 
> > Now here if i edit it and in physical volume section where it says that
> > pe_count = 266, i change it to pe_count = 224 which is the last PE used
> > by the Logical Volume.
>  
> Yes.
> 
> > after saving it if i run vgcfgrestore with this file, will my PV be
> > reduced?? 
> 
> That's what pvresize would do.

but pvresize says command not implemented yet. 

also what this "pe_start = 384" in meta data means.

Thanks

-ajeet.

> 
> > after that i can reduce hda6 with parted or similar utility.
>  
> and the new size is 384 sectors plus 224 extents of 65536 sectors each.
> 
> Alasdair
> -- 
> agk@redhat.com
> 

      reply	other threads:[~2005-02-06 21:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-06 20:15 [linux-lvm] Reducing PV/ Reclaiming free PEs from a PV to be used for another partition/purpose outside of LVM Ajeet Nankani
2005-02-06 20:24 ` Alasdair G Kergon
2005-02-06 21:01   ` Ajeet Nankani [this message]

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=1107723690.9660.214451087@webmail.messagingengine.com \
    --to=fromkth+lvm@fastmail.fm \
    --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