[linux-lvm] Can I create a PV that only uses a portion of a partition?
Stuart D. Gathman
stuart at bmsi.com
Mon Mar 10 17:45:15 UTC 2008
On Mon, 10 Mar 2008, Bryn M. Reeves wrote:
> > 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 commonly use multiple PVs. This wastes a little space, but it allows me to
do things like:
o Use md raid1 mirroring with smaller (20-30G) pieces that need syncing.
Very important on systems where md driver can't remember its sync
status between reboots.
o Rearrange PVs while operating by creating, syncing and removing md raid1
Granted, these should be replaced with LVM mirroring and pvmove. But
LVM mirroring doesn't seem to be mainstream with rhel5, and pvmove doesn't
seem as trustworthy as a result (since it depends on temporary mirroring
to move LVs while operating).
Also, when upgrading a system with LVM1 to LVM2, I prefer to create
a new VG and when committed to new OS, move LVs and incorporate PVs
of old VG. Although I've also just created an LVM1 LV for new OS, I'm
then left with a LVM1 VG, and I'm afraid to run the convert. :-)
Stuart D. Gathman <stuart at bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
More information about the linux-lvm