1753505 Members
4911 Online
108794 Solutions
New Discussion юеВ

Re: Vgcreate

 
David Bellamy
Respected Contributor

Vgcreate

Hello Gurus
I would like to create a lvol of 700gb, those anyone know what the correct parameters for vgcreate i should use.
7 REPLIES 7
Geoff Wild
Honored Contributor

Re: Vgcreate

lvcreate is used to create lvols - not vgcreate.

lvcreate -L 716800 -n lvname /dev/vgXX

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
David Bellamy
Respected Contributor

Re: Vgcreate

Geoff
I know that lvcreate creates an lvol, what i am doing is create a volume group and one lvol of 700gb, i just wanted to know if there was any special parameters that was needed when i do the vgcreate.
i using 50 14gb disk to create the lvol.
A. Clay Stephenson
Acclaimed Contributor

Re: Vgcreate

Given that, you should specify a -p 64 (or so) because the default maximum physical volumes is 16. You also need to specify a large pe_size and a larger max_pe's because the product of those must be able to accomodate your largest anticipated LVOL.
If it ain't broke, I can fix that.
Geoff Wild
Honored Contributor

Re: Vgcreate

50 x 14 GB disks...

Well, those are quite small...

This is typically what I use:

vgcreate -s 32 -p 128 /dev/vg21 /dev/dsk/c10t0d0

# diskinfo /dev/rdsk/c10t0d0
SCSI describe of /dev/rdsk/c10t0d0:
vendor: DGC
product id: CX3-40WDR5
type: direct access
size: 524288000 Kbytes
bytes per sector: 512


The -s is for pe_size - if it isn't big enough - then you can't use large disks.

Default is 4 but vgcreate will automagically size it if you include the disk.


- p - physical volumes...

With setting this to 128 - you have room to grow.

Rgds..Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
David Bellamy
Respected Contributor

Re: Vgcreate

Thanks guys
David Bellamy
Respected Contributor

Re: Vgcreate

Thats guys that's what i thought
Hein van den Heuvel
Honored Contributor

Re: Vgcreate

I do hope that large volume is not intended for serious production work. The risk of a single disk failure gets multiplied by 50 and would seem unacceptable to me.

fwiw,
Hein.