linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Expanding volume groups to fill a growing disk
@ 2006-02-02 23:06 Ben
  2006-02-02 23:25 ` Alasdair G Kergon
  0 siblings, 1 reply; 5+ messages in thread
From: Ben @ 2006-02-02 23:06 UTC (permalink / raw)
  To: linux-lvm

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Expanding volume groups to fill a growing disk
  2006-02-02 23:06 [linux-lvm] Expanding volume groups to fill a growing disk Ben
@ 2006-02-02 23:25 ` Alasdair G Kergon
  2006-02-02 23:40   ` Ben
  0 siblings, 1 reply; 5+ messages in thread
From: Alasdair G Kergon @ 2006-02-02 23:25 UTC (permalink / raw)
  To: LVM general discussion and development

On Thu, Feb 02, 2006 at 03:06:31PM -0800, Ben wrote:
> 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
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Expanding volume groups to fill a growing disk
  2006-02-02 23:25 ` Alasdair G Kergon
@ 2006-02-02 23:40   ` Ben
  2006-02-03  0:33     ` Szabo Akos
  0 siblings, 1 reply; 5+ messages in thread
From: Ben @ 2006-02-02 23:40 UTC (permalink / raw)
  To: LVM general discussion and development

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


On Thu, 2 Feb 2006, Alasdair G Kergon wrote:

> On Thu, Feb 02, 2006 at 03:06:31PM -0800, Ben wrote:
>> 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
> -- 
> agk@redhat.com
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Expanding volume groups to fill a growing disk
  2006-02-02 23:40   ` Ben
@ 2006-02-03  0:33     ` Szabo Akos
  2006-02-03  1:10       ` Ben
  0 siblings, 1 reply; 5+ messages in thread
From: Szabo Akos @ 2006-02-03  0:33 UTC (permalink / raw)
  To: LVM general discussion and development

On Thu, Feb 02, 2006 at 03:40:57PM -0800, Ben wrote:
> 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


-- 
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Expanding volume groups to fill a growing disk
  2006-02-03  0:33     ` Szabo Akos
@ 2006-02-03  1:10       ` Ben
  0 siblings, 0 replies; 5+ messages in thread
From: Ben @ 2006-02-03  1:10 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1321 bytes --]

Ah, 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. :)

On Fri, 3 Feb 2006, Szabo Akos wrote:

> On Thu, Feb 02, 2006 at 03:40:57PM -0800, Ben wrote:
>> 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
>
>
> -- 
> 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
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-03  1:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-02 23:06 [linux-lvm] Expanding volume groups to fill a growing disk Ben
2006-02-02 23:25 ` Alasdair G Kergon
2006-02-02 23:40   ` Ben
2006-02-03  0:33     ` Szabo Akos
2006-02-03  1:10       ` Ben

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).