Creating Volumes

Use the vxassist command to create logical volumes. The following is an example:

#vxassist -g ops_dg make log_files 1024m

This command creates a 1024MB volume named log_files in a disk group named ops_dg. The volume can be referenced with the block device file /dev/vx/dsk/ops_dg/log_files or the raw (character) device file /dev/vx/rdsk/ops_dg/log_files.

Verify the configuration with the following command:

#vxdg list

IMPORTANT: After creating these files, use the vxedit command to change the ownership of the raw volume files to oracle and the group membership to dba, and to change the permissions to 660. Example:

#cd /dev/vx/rdsk/ops_dg

#vxedit -g ops_dg set user=oracle *

#vxedit -g ops_dg set group=dba *

#vxedit -g ops_dg set mode=660 *

The logical volumes are now available on the primary node, and the raw logical volume names can now be used by the Oracle DBA.

Mirror Detachment Policies with CVM

The required CVM disk mirror detachment policy is “global”—as soon as one node cannot see a specific mirror copy (plex), all nodes cannot see it as well. The alternate policy is “local”—if one node cannot see a specific mirror copy, then CVM will deactivate access to the volume for that node only.

This policy can be re-set on a disk group basis by using the vxedit command, as follows:

#vxedit set diskdetpolicy=global <DiskGroupName>

NOTE: The specific commands for creating mirrored and multipath storage using CVM are described in the HP-UX documentation for the Veritas Volume Manager.

Oracle Demo Database Files

The following set of volumes is required for the Oracle demo database which you can create during the installation process.

Table 2 Required Oracle File Names for Demo Database

Volume Name

Size (MB)

Raw Device File Name

Oracle File Size

 

 

 

(MB)

opsctl1.ctl

118

/dev/vx/rdsk/ops_dg/opsctl1.ctl

110

opsctl2.ctl

118

/dev/vx/rdsk/ops_dg/opsctl2.ctl

110

opsctl3.ctl

118

/dev/vx/rdsk/ops_dg/opsctl3.ctl

110

ops1log1.log

128

/dev/vx/rdsk/ops_dg/ops1log1.log

120

ops1log2.log

128

/dev/vx/rdsk/ops_dg/ops1log2.log

120

ops1log3.log

128

/dev/vx/rdsk/ops_dg/ops1log3.log

120

ops2log1.log

128

/dev/vx/rdsk/ops_dg/ops2log1.log

120

ops2log2.log

128

/dev/vx/rdsk/ops_dg/ops2log2.log

120

Creating Volumes 57

Page 57
Image 57
HP Serviceguard Extension for RAC (SGeRAC) manual Creating Volumes, Oracle Demo Database Files