It is only necessary to do this with one of the device file names for the LUN. The -foption is only necessary if the physical volume was previously used in some other volume group.

4.Use the following to create the volume group with the two links:

# vgcreate /dev/vg_rac /dev/dsk/c0t15d0 /dev/dsk/c1t3d0

LVM will now recognize the I/O channel represented by/dev/dsk/c0t15d0 as the primary link to the disk. If the primary link fails, LVM will automatically switch to the alternate I/O channel represented by /dev/dsk/c1t3d0. Use the vgextend command to add additional disks to the volume group, specifying the appropriate physical volume name for each PV link.

Repeat the entire procedure for each distinct volume group you wish to create. For ease of system administration, you may wish to use different volume groups to separate logs from data and control files.

NOTE: The default maximum number of volume groups in HP-UX version 2.0 is 10. If you intend to create enough new volume groups that the total exceeds 10, you must increase the maxvgs system parameter and then reboot the system. Use the kctune utility to change kernel parameter area, then choose Configurable Parameters, maxvgs appears on the list.

Creating Logical Volumes for RAC on Disk Arrays

After you create volume groups and add PV links to them, you define logical volumes for data, logs, and control files. The following are some examples:

#lvcreate -n ops1log1.log -L 4 /dev/vg_rac

#lvcreate -n opsctl1.ctl -L 4 /dev/vg_rac

#lvcreate -n system.dbf -L 28 /dev/vg_rac

#lvcreate -n opsdata1.dbf -L 1000 /dev/vg_rac

Oracle Demo Database Files

The following set of files is required for the Oracle demo database that can be created during the installation process.

Table 1 Required Oracle File Names for Demo Database

Logical Volume Name

LV Size

Raw Logical Volume Path Name

Oracle File

 

(MB)

 

Size (MB)*

opsctl1.ctl

118

/dev/vg_rac/ropsctl1.ctl

110

opsctl2.ctl

118

/dev/vg_rac/ropsctl2.ctl

110

opsctl3.ctl

118

/dev/vg_rac/ropsctl3.ctl

110

ops1log1.log

128

/dev/vg_rac/rops1log1.log

120

ops1log2.log

128

/dev/vg_rac/rops1log2.log

120

ops1log3.log

128

/dev/vg_rac/rops1log3.log

120

ops2log1.log

128

/dev/vg_rac/rops2log1.log

120

ops2log2.log

128

/dev/vg_rac/rops2log2.log

120

ops2log3.log

128

/dev/vg_rac/rops2log3.log

120

opssystem.dbf

408

/dev/vg_rac/ropssystem.dbf

400

opssysaux.dbf

808

/dev/vg_rac/ropssysaux.dbf

800

opstemp.dbf

258

/dev/vg_rac/ropstemp.dbf

250

opsusers.dbf

128

/dev/vg_rac/ropsusers.dbf

120

opsdata1.dbf

208

/dev/vg_rac/ropsdata1.dbf

200

Creating a Storage Infrastructure with LVM 45

Page 45
Image 45
HP Serviceguard Extension for RAC (SGeRAC) Creating Logical Volumes for RAC on Disk Arrays, Oracle Demo Database Files