Building Disaster Recovery Serviceguard Solutions Using Metrocluster with Continuous Access EVA A.05.01

Creating the RAC database at the local site
After installing Oracle RAC, create the RAC database from the site which has the source disks of
the replication. In this manual, this site is referred to as the local site. The RAC database creation
is replicated to the remote site through physical replication and the identical RAC database can
be configured on the remote site from the replication target disks.
In our example configuration, a database, hrdb, is created from the San Francisco site. This
database is replicated to the San Jose site. After the RAC database is created at the San Francisco
site, the identical RAC database must be configured at the San Jose site.
The example hrdb RAC database uses the Cluster File System for storing its data files. The Cluster
File System for the RAC data files is created over the replicated disk array disk group. There are
two file systems for each RAC database files; one for the database data files and the other for the
flash recovery area. The subsequent sections describe the procedures to set up the file systems for
RAC database files.
The RAC database can also be configured to use CVM or SLVM raw volumes. As a result,
appropriate CVM disk groups or SLVM volume groups must be created with required raw volumes
over the replicated disks.
Setting up CFS file systems for RAC database data files
This section describes how to create CFS file systems for RAC database data files.
NOTE: If you have SLVM configured in your environment, you must create shared LVM volume
groups for the RAC database and import them on all the nodes. For more information on creating
shared LVM volume groups for the RAC database, see the latest edition of Using Serviceguard
Extension for RAC manual available at http://www.hp.com/go/hpux-serviceguard-docs-> HP
Serviceguard Extension for RAC.
NOTE: The following example shows how to configure CFS file systems for the example hrdb
database in a legacy package style. HP recommends to follow modular style of packaging wherever
possible.
To set up the CFS file systems on the CFS cluster master node:
1. Initialize the source disks of the replication pair.
# /etc/vx/bin/vxdisksetup -i c4t0d1
# /etc/vx/bin/vxdisksetup -i c4t0d2
2. Create a disk group for the RAC database data files.
# vxdg s init hrdbdg c4t0d1 c4t0d2
3. Create Serviceguard Disk Group MNP packages for the disk groups.
# cfsdgadm add hrdbdg sfo_hrdb_dg all=sw SFO_1 SFO_2
4. Activate the CVM disk group in the local site CFS sub-cluster.
# cfsdgadm activate hrdbdg
5. Create a volume from the disk group.
# vxassist -g hrdbdg make rac_vol 4500m
6. Create a file system using the created volume.
# newfs -F vxfs /dev/vx/rdsk/hrdbdg/rac_vol
7. Create mount points for the RAC database data files and set appropriate permissions.
# mkdir /cfs
# chmod 775 /cfs
# mkdir /cfs/rac
8. Create the Mount Point MNP packages.
# cfsmntadm add hrdbdg rac_vol /cfs/rac sfo_hrdb_mp all=rw SFO_1\
SFO_2
110 Configuring Oracle RAC in SADTA