Creating disk groups, volumes, and mount points
To create disk groups, volumes, and mount points for Oracle, review these guidelines. Before you install the Oracle Cluster Ready Services (CRS) and Oracle 10g binaries, you must create storage space for these installations. You need to provide storage for:
Identifying required directories for CRS and Oracle
Identify the directories required for installing Oracle and CRS software:
Directory
|
Component
|
---|
/app
|
Mountpoint for Oracle/CRS binaries
|
/app/crshome
|
CRS_HOME
|
/app/oracle
|
ORACLE_BASE
|
/app/oracle/home
|
ORACLE_HOME
|
/oradata
|
Mountpoint for Oracle database
|
Preparing $CRS_HOME and $ORACLE_HOME on each node
To create a file system on local storage for Oracle/CRS binaries (/app)
-
As root user, first create a VxVM local diskgroup, orabindg_
hostname
:
# vxdg init orabindg_galaxy Disk_1
-
Create a volume, orabinvol_
hostname
:
# vxassist -g orabindg_galaxy make orabinvol_galaxy 12G
-
Create directory, /app
# mkdir /app
-
Create a filesystem with this volume, orabinvol_
hostname
# mkfs -t vxfs /dev/vx/dsk/orabindg/orabinvol
-
Mount /app
# mount -t vxfs /dev/vx/dsk/orabindg/orabinvol /app
-
Add an entry for this filesystem in /etc/fstab.
/dev/vx/dete/orabindg/orabinvol
/app
vxfs
defaults 01
To prepare $CRS_HOME on each node
-
On each system, log in as "root".
-
Create the directory for CRS_HOME:
#mkdir -p /app/crshome
-
Change ownership and permissions
#chown -R oracle:oinstall /app/crshome
#chmod -R 775 /app/crshome
To prepare $ORACLE_BASE on each node
-
On each system, log in as "root".
-
Create the directory for ORACLE_BASE:
#mkdir -p /app/oracle
-
Change ownership and permissions
#chown -R oracle:oinstall /app/oracle
#chmod -R 775 /app/oracle
To prepare $ORACLE_HOME on each node
-
On each system, log in as "root".
-
Create the directory for ORACLE_HOME:
#mkdir -p /app/oracle/orahome
-
Change ownership and permissions
#chown -R oracle:oinstall /app/oracle/orahome
#chmod -R 775 /app/oracle/orahome
Creating OCR and VOTE-disk volumes
The installation of CRS requires predefined locations for the OCR and VOTE-disk components. Whether you create volumes or file system directories, you can add them to the VCS configuration to make them highly available.
To create a filesystem for OCR and VOTE disks (/ocrvote)
-
As root user, from the CVM master, create a shared VxVM diskgroup
# vxdg -s init ocrvotedg Disk_2
-
As root user, from CVM master, create volume(s) for ocr and voting disk.
Note
Note: For 10.1.0.3, you need to create cfs mount for ocr and raw volume for voting disk. For 10.2.0.1, you need to create raw volumes for ocr as well as voting disk.
# vxassist -g ocrvotedg make ocrvol 400M
# vxassist -g ocrvotedg make vdrvol 400M
-
For raw volumes, also need to change permissions as follows.
#vxedit -g ocvotedg set user=oracle group=oinstall mode=660 ocrvol
#vxedit -g ocvotedg set user=oracle group=oinstall mode=660 vdvol
-
Verify that the VCS resources, ocrvote_mnt and ocrvote_voldg, are ONLINE on all systems in the cluster.
#hares -state ocrvote_mnt
#hares -state ocrvote_voldg