Expanding volume groups to fill a growing disk
I'm new to LVM, so maybe I'm missing something basic, but it seems like LVM2 makes it difficult to expand a VG. Or rather, it's easy if you want to just add another disk to the group, but I have a hardware RAID card that supports online expansion, and I'd like to use it.
Basically, I'm looking for a way to tell LVM "I know I partioned you on /dev/sda2 to be 500GB; now that I've expanded the disk with the raid card, I want to expand that volume group to fill the new space."
Do I have to use fdisk to make a new partition, and then use pvcreate followed by vgextend? That sounds like it would work, but it seems like there should be a cleaner way.
Quoted 2 lines · Ben
Do I have to use fdisk to make a new partition, and then use pvcreate followed by vgextend?
pvresize, at least in recent releases.
Alasdair
Signature · 1 line
[email protected]
What version do I need?
[root@cash src]# pvresize --help
pvresize: Resize a physical volume in use by a volume group
Not implemented. Use pvcreate options.
[root@cash src]# pvresize --version
LVM version: 2.01.08 (2005-03-22)
Library version: 1.01.02 (2005-05-17)
Driver version: 4.4.0
Quoted 16 lines · Alasdair G Kergon
Quoted 2 lines · Ben
Do I have to use fdisk to make a new partition, and then use pvcreate followed by vgextend?
pvresize, at least in recent releases.
Alasdair
Signature · 7 lines
[email protected] _______________________________________________ linux-lvm mailing list [email protected] https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Quoted 1 line · Ben
What version do I need?
At least I don;t no, but I have tha bleow, BTW I never use it!
/I use fedore FC5T.
device-mapper-1.02.02-3
lvm2-2.02.01-1.1/
pvresize --help
pvresize: Resize physical volume(s)
pvresize
[-d|--debug]
[-h|-?|--help]
[--setphysicalvolumesize PhysicalVolumeSize[kKmMgGtT]
[-t|--test]
[-v|--verbose]
[--version]
PhysicalVolume [PhysicalVolume...]pvresize --version
LVM version: 2.02.01 (2005-11-23)
Library version: 1.02.02 (2005-12-02)
Driver version: 4.5.0
Signature · 5 lines
Ciao:
Fonya
Ami�ta NT-t install�ltam a porsz�v�mra, semmi sz�v�s nincs vele.
PGP key ID F86614E5, GPG key ID 83AD9365Ah, thanks, that should be good enough. I plan to upgrade to FC5T3 as soon as it comes out for the x86_64 Xen support it will hopefully provide. And also, it seems, for a working packaged version of pvresize. :)
Quoted 40 lines · Szabo Akos
Quoted 1 line · Ben
What version do I need?
At least I don;t no, but I have tha bleow, BTW I never use it!
/I use fedore FC5T.
device-mapper-1.02.02-3
lvm2-2.02.01-1.1/pvresize --help
pvresize: Resize physical volume(s)pvresize
[-d|--debug] [-h|-?|--help] [--setphysicalvolumesize PhysicalVolumeSize[kKmMgGtT] [-t|--test] [-v|--verbose] [--version] PhysicalVolume [PhysicalVolume...]pvresize --version
LVM version: 2.02.01 (2005-11-23)
Library version: 1.02.02 (2005-12-02)
Driver version: 4.5.0Signature · 11 lines
Ciao: Fonya Ami�ta NT-t install�ltam a porsz�v�mra, semmi sz�v�s nincs vele. PGP key ID F86614E5, GPG key ID 83AD9365 _______________________________________________ linux-lvm mailing list [email protected] https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/