Operating System - HP-UX
1834903 Members
2897 Online
110071 Solutions
New Discussion

Procedure for adding logical volumes to an existing volume group

 
Prakash_10
Occasional Contributor

Procedure for adding logical volumes to an existing volume group

Hello,

I am looking for the correct procedure for adding a logical volume to an existing volume group created for Oracle9i Real Application Clusters 9.2.0.1 on HP-UX 11i.

Can someone give me any info. on this topic?.

Thanks a bunch in advance !!

Regards

Prakash
3 REPLIES 3
Jeff Schussele
Honored Contributor

Re: Procedure for adding logical volumes to an existing volume group

Hi Prakash,

First check for free space in the volume group

vgdisplay /dev/vg_name

Your looking for Free PE to have some value.
If some free space available then create a new logical volume

lvcreate -n lv_name /dev/vg_name

Then create the new filesystem to use that LV

newfs -F vxfs /dev/vg_name/rlv_name (Note that you must use the "raw" volume name

Now create the mount point

mkdir /path/to/mnt_point

then mount it

mount /dev/vg_name/lv_name /path/to/mnt_point

Then edit /etc/fstab so that it will mount at boot time. Add the following to the file

/dev/vg_name_/lv_name /path/to/mnt_point vxfs options 0 2

Note options are the FS options such as delaylog datainlog suid largefiles, etc
do a man mount_vxfs for the entire list.

Now if you DON'T have free space then you'd have to add the new disk to the VG first

Init the disk

pvcreate -f /dev/rdsk/cxtydz (BE CAREFUL that the disk is not already in use in another VG)

Add it to the VG

vgextend /dev/vg_name /dev/dsk/cxtydz

Then you can do the steps as above.

HTH,
Jeff

PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Leif Halvarsson_2
Honored Contributor

Re: Procedure for adding logical volumes to an existing volume group

Hi
Another metod is to use SAM. Select "Disk and File Systems/Logical Volumes/Actions/Create", this is very straightforward.
Dietmar Konermann
Honored Contributor

Re: Procedure for adding logical volumes to an existing volume group

Reading about Oracle RAC I assume that we talk about a ServiceGuard OPS Edition cluster?

In this case you should also have a look at ServiceGuard-related docs about additional steps...

e.g. the ServiceGuard chapter of the HP Software Recovery Handbook.

See thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x148f93e260b0d611abdb0090277a778c,00.html


Regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)