From: Gabriel <jarod125@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] how to determine minimum partition size based on PV size
Date: Wed, 3 Feb 2010 22:04:17 +0200 [thread overview]
Message-ID: <4cd59bf51002031204l4e56f0f3jdd45d5d82196fd2b@mail.gmail.com> (raw)
In-Reply-To: <4B61E479.8040806@dogpad.net>
On Thu, Jan 28, 2010 at 9:24 PM, Joe Harvell
<jharvell+lists.lvm@dogpad.net> wrote:
> I need to reduce the size of an existing PV so that I can shrink the
> partition it resides on an reclaim the storage. �I have already shrunk
> the file systems and done an lvreduce.
before working on the PV, you also need to reduce the size of the
volume group the LV resides on.
> I have three questions:
>
> 1. Is the value of the '--setphysicalvolumesize' argument to the
> 'pvresize' command the size the physical volume (contents and metadata)
> will occupy on disk after the operation? �Or is it the specifying the
> new capacity of the PV to hold data?
In my understanding, the parameter specifies the total size of the PV.
The sum of PVs sizes (seen with pvdisplay) should be equal or larger
than the size of the VG residing on them.
> 2. How do I determine the minimum size I can specify to pvreduce and
> still have all of the original contents of the PV in the newly sized PV?
Multiply the number of allocated PEs to the size of a PE.
> 3. How do I determine the size the newly modified PV occupies on disk so
> that I can reduce the partition it lives on to its minimum size?
pvdisplay?
Sorry for the late reply, HTH.
prev parent reply other threads:[~2010-02-03 20:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-28 19:24 [linux-lvm] how to determine minimum partition size based on PV size Joe Harvell
2010-02-03 20:04 ` Gabriel [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=4cd59bf51002031204l4e56f0f3jdd45d5d82196fd2b@mail.gmail.com \
--to=jarod125@gmail.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;
as well as URLs for NNTP newsgroup(s).