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
|
/ocrvote
|
Mountpoint for OCR/Vote
|
/oradata
|
Mountpoint for Oracle database
|
The minimum disk space required is 1.5 GB.
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 -F vxfs /dev/vx/rdsk/orabindg_galaxy/orabinvol_galaxy
-
Mount /app
# mount -F vxfs /dev/vx/dsk/orabindg_galaxy/orabinvol_galaxy /app
-
Edit the
/etc/vfstab
file, list the new file system, and specify "yes" for the mount
at
boot
column. For example, type:
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
.
/dev/vx/dsk/orabindg_galaxy/orabinvol_galaxy /dev/vx/rdsk/orabindg_galaxy/orabinvol_galaxy
/app vxfs 1 yes -
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 with 2 or more disks for redundancy.
# vxdg -s init ocrvotedg Disk_2 Disk_3
-
As root user, from the CVM master, create a mirrored volume, ocrvotevol:
# vxassist -g ocrvotedg make ocrvotevol 1G nmirror=2
-
As root user, from CVM master, create a filesystem with the volume, ocrvotevol.
# mkfs -F vxfs /dev/vx/dsk/ocrvotedg/ocrvotevol
-
On each system, create a directory, /ocrvote:
# mkdir /ocrvote
-
On each system, mount /ocrvote
# mount -F vxfs -o cluster /dev/vx/dsk/ocrvotedg/ocrvotevol /ocrvote
-
As root user, from any system, change permissions on /ocrvote
# chown -R oracle:oinstall /ocrvote
-
Add the CFSMount and CVMVolDg resources corresponding to this "/ocrvote" filesystem to the "cvm" group in VCS configuration:
#haconf -makerw
#hares -add ocrvote_mnt CFSMount cvm
#hares -modify ocrvote_mnt Critical 0
#hares -modify ocrvote_mnt MountPoint "/ocrvote"
#hares -modify ocrvote_mnt BlockDevice \ "/dev/vx/dsk/ocrvotedg/ocrvotevol"
#hares -add ocrvote_voldg CVMVolDg cvm
#hares -modify ocrvote_voldg CVMDiskGroup ocrvotedg
#hares -modify ocrvote_voldg CVMVolume -add ocrvotevol
#hares -modify ocrvote_voldg CVMActivation sw
#hares -link ocrvote_mnt ocrvote_voldg
#hares -link ocrvote_mnt vxfsckd
#hares -link ocrvote_voldg cvm_clus
#hares -modify ocrvote_voldg Enabled 1
#hares -modify ocrvote_mnt Enabled 1
#haconf -dump -makero
-
Verify the stanzas corresponding to the ocrvote_mnt and ocrvote_voldg resources in main.cf:
CFSMount ocrvote_mnt (
Critical = 0
MountPoint = "/ocrvote"
BlockDevice = "/dev/vx/dsk/ocrvotedg/ocrvotevol"
)
CVMVolDg ocrvote_voldg (
Critical = 0
CVMDiskGroup = ocrvotedg
CVMVolume = { ocrvotevol }
CVMActivation = sw
)
ocrvote_mnt requires ocrvote_voldg
ocrvote_mnt requires vxfsckd
ocrvote_voldg requires cvm_clus
-
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