From: "Bryn M. Reeves" <breeves@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Can I create a PV that only uses a portion of a partition?
Date: Mon, 10 Mar 2008 15:12:02 +0000 [thread overview]
Message-ID: <47D54FC2.9050600@redhat.com> (raw)
In-Reply-To: <20080310082120.GA3096@percy.comedia.it>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Luca Berra wrote:
> On Fri, Mar 07, 2008 at 01:34:16PM -0500, Lionel Kernux wrote:
>> I was short-sighted when I created the PV and VG on this machine and
>> basically made one giant PV and one giant VG allocating it. Now I'd
>> like to be more granular.
> creating multiple PV on the same disk makes no sense.
> if you were to do this you could well do without LVM and avoid the
> hassle.
Not necessarily; Lionel could have perfectly valid reasons for wanting
to have multiple volume groups on the same disk.
> I'm thinking the only way is to pvresize to shrink the PV, then shrink
> the partition, then create some new partitions in the recovered space,
> then create some new PV's from the new partitions, then create some
> new VG's from the new PV's.
Yes, this approach should work fine - the only catch is if there are
extents already allocated in the area of the partition that you want to
shrink. In this case you can use pvmove with /path/to/dev:start-end
arguments to relocate any troublesome extents.
Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFH1U/C6YSQoMYUY94RAiT1AJwJ3thr96MqSrXQIhIwf4h0wy2gIwCgteux
Rj7mBPM9Enev1ONmE1U+ZnU=
=y5SC
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2008-03-10 15:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-07 18:34 [linux-lvm] Can I create a PV that only uses a portion of a partition? Lionel Kernux
2008-03-10 8:21 ` Luca Berra
2008-03-10 15:12 ` Bryn M. Reeves [this message]
2008-03-10 17:45 ` Stuart D. Gathman
2008-03-11 7:48 ` Marek Podmaka
2008-03-11 16:29 ` Stuart D. Gathman
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=47D54FC2.9050600@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 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.