Operating System - HP-UX
1838334 Members
3100 Online
110125 Solutions
New Discussion

creating new VG with one LVOL

 
SOLVED
Go to solution
Paul Sperry
Honored Contributor

creating new VG with one LVOL

I have three external disks.
I want to create one new volume group with
one logical volume. The lv is going to be used for a large Oracle DB. would the following be optimal for the volume?

mkdir /dev/vg#1
mknod /dev/vg#1/group c 64 0x010000
pvcreate /dev/rdsk/c#t#d#
pvcreate /dev/rdsk/c#t#d#
pvcreate /dev/rdsk/c#t#d#
vgcreate /dev/vg#1 /dev/rdsk/c#t#d# /dev/rdsk/c#t#d# /dev/rdsk/c#t#d#
lvcreate -L 24000 -i 3 -I 64 -n datavol /dev/vg#1
newfs -F vxfs -o largefiles /dev/vg#1/datavol
6 REPLIES 6
John Poff
Honored Contributor
Solution

Re: creating new VG with one LVOL

Hi,

It looks good to me. Depending on the capacity of your disks you might have to bump up the PE size when you create your volume group. What kind of disk array and disks are you going to use?

JP
Pete Randall
Outstanding Contributor

Re: creating new VG with one LVOL

Paul,

Not knowing what size disks you're using, I would recommend bumping up the PE size in your vgcreate command so that you can use all the space.

Pete

Pete
Paul Sperry
Honored Contributor

Re: creating new VG with one LVOL

Thanks
they are 9GB IBM Drives
James R. Ferguson
Acclaimed Contributor

Re: creating new VG with one LVOL

Hi:

Syntatically this is fine. You might want to consider using distributed extents instead of true stipes. The former allows you the capability of mirroring and striping while true striping does not.

Make sure, too, that your volume group parameters ('max_pe', 'max_pv', etc.) are adequate to support any growth or addition of disks later.

Regards!

...JRF...
Paul Sperry
Honored Contributor

Re: creating new VG with one LVOL

Thanks for all the great input
Rammig Claus
Frequent Advisor

Re: creating new VG with one LVOL

Hi,

I would make two changes:

vgcreate -s 64 ...
-> extendsize = 64MB

newfs -F vxfs -b 8192 ..
-> Fragmentsize, this should have the same size as the Oracle-Blocksize

If you plan, to add larger disks in the future, check the max_pe_extends. You can change the amount with the option
vgcreate -e ...

Gruesse
Claus
No risc no fun