Designing Disaster Recovery Clusters using Metroclusters and Continentalclusters, Reprinted October 2011 (5900-1881)

export CLASSPATH
export ORACLE_SID=<set RAC database instance SID>
Configuring the Storage Device for Installing Oracle Clusterware
When Oracle Clusterware is installed in a site, it is installed only on a local file system on the
Clusterware sub-cluster nodes of that site. Complete the following steps on all nodes at the site:
1. Create a directory path for Oracle Clusterware Home, set an owner, and specify appropriate
permissions.
2. Create an Oracle directory to save installation logs, set an owner, and specify appropriate
permissions.
3. Create mount points on all nodes in the site for a CFS file system where the Clusterware
sub-cluster OCR and Voting files will be stored.
Setting Up CRS OCR and VOTING Directories
The shared storage for storing OCR and VOTING data can be configured using SLVM, or CVM,
or CFS. When using SLVM or CVM, a separate SLVM volume group or CVM disk groups, with all
required raw volumes should be configured using non replicated disks. For more information on
using raw devices for OCR and VOTING storage, see the Oracle® Clusterware Installation Guide
available at the Oracle documentation site. This CRS storage is however not required to be
replicated in SADTA.
The current example will use CFS file system for OCR and VOTING. The following procedure
describes configuring CFS for OCR and VOTING data. However, the Clusterware storage need
not be replicated in SADTA.
1. Initialize the disk that will be used for the CFS file system from the CVM master node at the
site.
/etc/vx/bin/vxdisksetup -i c4t0d3
NOTE: This disk should be a non-replicated shared disk that is connected only to the nodes
in the Clusterware sub-cluster site.
2. From the site CVM master node, create the CRS disk group.
vxdg s init sfo_crsdg c4t0d3
3. Create the Serviceguard Disk Group MNP packages for the disk group.
cfsdgadm add sfo_crsdg sfo_crs_dg all=sw SFO_1 SFO_2
4. Activate the CVM DG in the site CFS sub-cluster.
cfsdgadm activate sfo_crsdg
5. Create a volume for the CRS disk group.
vxassist -g sfo_crsdg make crs_vol 500m
6. Create a file system using the created volume.
newfs -F vxfs /dev/vx/rdsk/sfo_crsdg/crs_vol
7. Create Serviceguard Mount Point MNP packages for the clustered file system.
cfsmntadm add sfo_crsdg crs_vol /cfs/sfo_crs sfo_crs_mp all=rw\
SFO_1 SFO_2
8. Mount the clustered file system on the site CFS sub-cluster.
cfsmount /cfs/sfo_crs
9. Create the Clusterware OCR directory in the clustered file system.
mkdir /cfs/sfo_crs/OCR
chmod 755 /sfo_cfs/crs/OCR
370 Designing a Disaster Recovery Solution Using Site Aware Disaster Tolerant Architecture