Oracle Database 11g Release 2 Real Application Clusters with SLVM/RAW on HP-UX Installation Cookbook, September 2010
10
• Disks need to be properly initialized before being added into volume groups. Do the following step
for all the disks (LUNs) you want to configure for your RAC volume group(s) from node bike:
bike# pvcreate –f /dev/rdisk/disk30
bike# pvcreate –f /dev/rdisk/disk40
• Create the volume group directory with the character special file called group:
bike# mkdir /dev/vg_oracle
bike# mknod /dev/vg_oracle/group c 64 0x050000
bike# mkdir /dev/vg_rac
bike# mknod /dev/vg_rac/group c 64 0x060000
Note: <0x050000> and <0x060000> are the minor numbers in this example. This minor number
for each group file must be unique among all the volume groups on the system.
• Create Volume Group (VG) (optionally using PV-LINKs) and extend the volume group if required:
bike# vgcreate /dev/vg_oracle /dev/disk/disk30
bike# vgcreate /dev/vg_rac /dev/disk/disk40
• Create LVs for OCR and Voting:
bike# lvcreate –L 1024 –n ora_ocr_1024m /dev/vg_oracle
bike# lvcreate –L 512 –n ora_vote_512m /dev/vg_oracle
• Create logical volumes as shown in the Table 2 above for the RAC database with the command
bike# lvcreate –i 10 –I 1024 –L 100 –n Name /dev/vg_rac
-i: number of disks to stripe across
-I: stripe size in kilobytes
-L: size of logical volume in MB
• Check to see if your volume groups are properly created and available:
bike# strings /etc/lvmtab
bike# vgdisplay –v /dev/vg_rac
• Export the volume group:
– De-activate the volume group:
bike# vgchange –a n /dev/vg_rac
– Create the volume group map file:
bike# vgexport –v –p –s –m mapfile /dev/vg_rac
– Copy the mapfile to all the nodes in the cluster:
bike# rcp mapfile cycle:/tmp/scripts
• Import the volume group on the second node in the cluster
– Create a volume group directory with the character special file called group:
bike# mkdir /dev/vg_rac
bike# mknod /dev/vg_rac/group c 64 0x060000
Note: The minor number has to be the same as on the other node.