04 Deploy RAC Nodes


Overview

Two (2) VMs are created for the REVESBY cluster.

References

Procedure

Create the VM Directories

On VICTORIA , run the following commands to create two (2) directories in the Running Pool:

mkdir /OVS/running_pool/REVESBY1
mkdir /OVS/running_pool/REVESBY2

Missing File

Reviewing /OVS/seed_pool/OVM_OL6U4_X86_64_12101DBRAC_PVM/vm.cfg , I find that I am missing /OVS/seed_pool/OVM_OL6U4_X86_64_12101DBRAC_PVM/Oracle12101DBRAC_x86_64-xvdb.img .

The problem was solved by uploading V38985-01.zip to /OVS/scratch , and running the following commands:

cd /OVS/scratch
unzip -q V38985-01.zip
tar -xvjf OVM_OL6U4_X86_64_12101DBRAC_PVM-2of2.tbz
cp -r OVM_OL6U4_X86_64_12101DBRAC_PVM/* /OVS/seed_pool/OVM_OL6U4_X86_64_12101DBRAC_PVM/

Deploy Image Files into Running Pool

Run the following commands to deploy the image files into the running pool:

cd /OVS/seed_pool/OVM_OL6U4_X86_64_12101DBRAC_PVM/
cp *.img /OVS/running_pool/REVESBY1/
cp *.img /OVS/running_pool/REVESBY2/

Configuration File for REVESBY1

The VM configuration file, vm.cfg , is as follows:

cat >/OVS/running_pool/REVESBY1/vm.cfg <<DONE
bootloader = '/usr/bin/pygrub'
disk = ['file:/OVS/running_pool/REVESBY1/System.img,xvda,w',
'file:/OVS/running_pool/REVESBY1/Oracle12101DBRAC_x86_64-xvdb.img,xvdb,w',
'file:/OVS/sharedDisk/Revesby.ASM1.img,xvdc,w!',
'file:/OVS/sharedDisk/Revesby.ASM2.img,xvdd,w!',
'file:/OVS/sharedDisk/Revesby.ASM3.img,xvde,w!',
'file:/OVS/sharedDisk/Revesby.ASM4.img,xvdf,w!',
'file:/OVS/sharedDisk/Revesby.ASM5.img,xvdg,w!',
]
memory = '4096'
name = 'REVESBY1'
on_crash = 'restart'
on_reboot = 'restart'
vcpus = 2
vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0']
vif = ['bridge=xenbr0,type=netfront, mac=00:16:3E:00:00:02',
'bridge=xenbr1,type=netfront, mac=00:16:3E:00:00:03',
]
vif_other_config = []
DONE

Configuration File for REVESBY2

The VM configuration file, vm.cfg , is as follows:

cat >/OVS/running_pool/REVESBY2/vm.cfg <<DONE
bootloader = '/usr/bin/pygrub'
disk = ['file:/OVS/running_pool/REVESBY2/System.img,xvda,w',
'file:/OVS/running_pool/REVESBY2/Oracle12101DBRAC_x86_64-xvdb.img,xvdb,w',
'file:/OVS/sharedDisk/Revesby.ASM1.img,xvdc,w!',
'file:/OVS/sharedDisk/Revesby.ASM2.img,xvdd,w!',
'file:/OVS/sharedDisk/Revesby.ASM3.img,xvde,w!',
'file:/OVS/sharedDisk/Revesby.ASM4.img,xvdf,w!',
'file:/OVS/sharedDisk/Revesby.ASM5.img,xvdg,w!',
]
memory = '4096'
name = 'REVESBY2'
on_crash = 'restart'
on_reboot = 'restart'
vcpus = 2
vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0']
vif = ['bridge=xenbr0,type=netfront, mac=00:16:3E:00:00:04',
'bridge=xenbr1,type=netfront, mac=00:16:3E:00:00:05',
]
vif_other_config = []
DONE

Update DNS Entries

See 00 Update DNS for REVESBY Cluster for the updates to DNS for this cluster.