Creating database tablespaces shared on CFS (option 2)
If you plan to use a cluster file system to store the Oracle database, use the following procedure to create the file system.
-
Create a disk group (for example,
oradatadg
):
# vxdg -s init oradatadg HDS0_20
-
Create a single shared volume (for example,
oradatavol
) that is large enough to contain a file system for all tablespaces. Refer to the Oracle documentation for tablespace sizes). Assuming 6.8 GB are required for the tablespaces, type:
# vxassist -g oradatadg make oradatavol 6800M
-
Start the volume in the disk group:
# vxvol -g oradatadg startall
-
Create a VxFS file system in this volume. From one node, type:
# mkfs -V vxfs /dev/vx/rdsk/oradatadg/oradatavol
-
Create a mount point for the shared file system:
# mkdir /oradata
-
From the same node, mount the file system:
# mount -V vxfs -o cluster /dev/vx/dsk/oradatadg/oradatavol \
/oradata
-
Set "oracle" as the owner of the file system, and set "755" as the permissions:
# chown oracle:oinstall /oradata
#
chmod 755 /oradata
-
On the other node(s), complete step 5 through step 7.
-
Refer to Oracle documentation to create the database.