Sample Configurations with SGeRAC and Oracle RAC 10gR2, March 2009
33
# ln -s /usr/lib/libXt.3 /usr/lib/libXt.sl
# ln -s /usr/lib/libXtst.2 /usr/lib/libXtst.sl
Create file system for Oracle directories
In the following samples, /mnt/app is a mounted file system for Oracle software. Assume there is a
private disk c2t0d0 at 18 GB size on all nodes. Create the local file system on each node.
# umask 022
# pvcreate /dev/rdsk/c2t0d0
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# vgcreate /dev/vg01 /dev/dsk/c2t0d0
# lvcreate –L 16000 /dev/vg01
# newfs –F vxfs /dev/vg01/rlvol1
# mkdir –p /mnt/app
# mount /dev/vg01/lvol1 /mnt/app
# chmod 775 /mnt/app
Create Oracle Cluster Software home directory
For installing Oracle Cluster Software on local file system, create the directories on each node.
# mkdir –p /mnt/app/crs/oracle/product/10.2.0/crs
# chown –R oracle:oinstall /mnt/app/crs/oracle
# chmod -R 775 /mnt/app/crs/oracle
Create Oracle base directory (for RAC binaries on Cluster File System)
If installing RAC binaries on Cluster File System, create the oracle base directory once since this is
CFS directory visible by all nodes. The CFS file system used is /cfs/mnt1.
# mkdir –p /cfs/mnt1/oracle
# chown –R oracle:oinstall /cfs/mnt1/oracle
# chmod –R 775 /cfs/mnt1/oracle
# chmod 775 /cfs/mnt1
Change directory permission on each node.
# chmod 775 /cfs
Modify oracle user to new home directory on each node.
# usermod –d /cfs/mnt1/oracle oracle
Prepare shared storage on Cluster File System
This section assumes the OCR, Vote device, and database files are created on CFS directories. The
OCR and vote device reside on /cfs/mnt3 and the demo database files reside on /cfs/mnt2.
Create OCR and vote device on Cluster File System
Create directories for OCR and vote device on Cluster File System. Run commands only on one node.
# chmod 755 /cfs/mnt3
# cd /cfs/mnt3
# mkdir OCR
# chmod 755 OCR
# mkdir VOTE
# chmod 755 VOTE
# chown –R oracle:oinstall /cfs/mnt3
Change directory permission on each node (if needed).