Nethence Documentation Lab Webmail Your IP BBDock  


Those documents are obsolete, please use the Nethence Documentation instead.

HomeUnixWindowsOracleObsoleteHardwareDIYMechanicsScriptsConfigsPrivate

Preparing an Oracle RAC infrastructure with XEN
 
http://pbraun.nethence.com/oracle/oracle11g_rac.html
http://pbraun.nethence.com/oracle/oracle11g_rac_xen.html
 
 
Introduction
We're going to configure two nodes. Each one has two network interfaces. First vif goes with bridge0, second vif goes with dummybr0 which we need to create on the dom0 e.g.,
brctl addbr dummybr0
ifconfig dummybr0 192.168.2.100 netmask 255.255.255.0 up
 
By the way, custom XEN setups aren't supported by Oracle, which only supports its own crappy product for virtualization (a scaled down version of XEN if you consider its web interface and cluster management, Oracle VM).
 
 
Guest configuration
We need to provide 1,5TB of memory for grid infrastructure. We're using a second disk to provide additional swap space and /u01 as a seperate mount point. For testing purposes, we're using the first node as NFS server, instead of a dedicaed NAS. Hence the third disk on rac1.
 
Prepare the supplemental disks,
cd /data/guests/rac1/
dd if=/dev/zero of=rac1.disk2 bs=1024k count=1 seek=10000
dd if=/dev/zero of=rac1.disk3 bs=1024k count=1 seek=20000

cd /data/guests/rac2/
dd if=/dev/zero of=rac1.disk2 bs=1024k count=1 seek=10000
 
So rac1's configuration would be,
name = "rac1"
memory = "1536"
bootloader = "/usr/bin/pygrub"
disk = ['file:/data/guests/rac1/rac1.disk,xvda,w',\
'file:/data/guests/rac1/rac1.disk2,xvdb,w',\
'file:/data/guests/rac1/rac1.disk3,xvdc,w' ]
vif = [ 'vifname=vrac1.0,bridge=dummybr0',\
'vifname=vrac1.1,bridge=bridge0' ]
vcpus = "1"
 
And rac2's configuration would be,
name = "rac2"
memory = "1536"
bootloader = "/usr/bin/pygrub"
disk = ['file:/data/guests/rac2/rac2.disk,xvda,w',\
'file:/data/guests/rac2/rac2.disk2,xvdb,w' ]
vif = [ 'vifname=vrac2.0,bridge=dummybr0',\
'vifname=vrac2.1,bridge=bridge0' ]
vcpus = "1"
 
 
System configuration
Don't forget to eventually disable tcp offloading on eth1 too,
cd /etc/
cat >> rc.local <<EOF9
ethtool -K eth1 tx off
ethtool -K eth1 sg off
ethtool -K eth1 tso off
EOF9
 
Configure the additional disk on both nodes,
fdisk /dev/xvdb
mkswap /dev/xvdb1
mkfs.ext3 /dev/xvdb2
cd /etc/
cat >> fstab <<EOF9
/dev/xvdb1 swap swap defaults 0 0
/dev/xvdb2 /u01 ext3 defaults 1 2
EOF9
swapon /dev/xvdb1
swapon -s
mount /u01
 
We will deal with the third disk in the main Oracle 11g release 2 RAC guide (http://pbraun.nethence.com/oracle/oracle11g_rac.html).
 

Last update: Oct 19, 2011