Sample Configurations with SGeRAC and Oracle RAC 10gR2, March 2009
18
Creating volume group and logical volumes
1. Initialize LVM disk on node (“eenie”)
# pvcreate /dev/rdsk/c4t3d0
2. Create the volume group on node (“eenie”).
# mkdir /dev/vg_ops
# mknod /dev/vg_ops/group c 64 0x070000
Note: <0x070000> is the minor number on this sample configuration.
# vgcreate /dev/vg_ops /dev/dsk/c4t3d0
# vgextend /dev/vg_ops /dev/dsk/c5t3d0
Note: <c5t3d0> is a redundant link to <c4t3d0>
3. Create logical volumes on node (“eenie”). For each of the logical volumes in the worksheet,
create the logical volumes.
# lvcreate –L <size> -n <lv name> <vg name>
Example:
# lvcreate -L 128 –n ora_ocr /dev/vg_ops
Repeat this step for each logical volume specified in the worksheet.
4. Export Volume Group on node (“eenie”)
# vgexport –s –p –m /tmp/vg_ops.map /dev/vg_ops
5. Import Volume Group on node (“meenie”). Assuming remote shell is configured, for example
permission on /.rhosts or /etc/host.equiv, and logon on node (“meenie”).
# rcp eenie:/tmp/vg_ops.map /tmp
# mkdir /dev/vg_ops
# mknod /dev/vg_ops/group c 64 0x070000
# vgimport –s –m /tmp/vg_ops.map /dev/vg_ops
Create cluster ASCII file
# cd /etc/cmcluster
# cmquerycl –C clm.asc –n eenie –n meenie
Edit the cluster ASCII file. A two node configuration requires either a Serviceguard quorum server or
cluster lock device. In this sample, the shared disk from the SLVM volume group is used as a cluster
lock device.
CLUSTER_NAME cluster_eenie