Perform the following procedure to create a cluster file system and local file systems to support the data services.
This procedure creates a cluster file system for use by Sun Cluster HA for Apache and local file systems for use by Sun Cluster HA for NFS and Sun Cluster HA for Oracle. Later in this manual, the local file systems are configured as highly available local file systems by using HAStoragePlus.
From phys-sun, create the UFS file systems.
phys-sun# newfs /dev/md/apacheset/rdsk/d0 phys-sun# newfs /dev/md/nfsset/rdsk/d1 phys-sun# newfs /dev/md/oraset/rdsk/d0 phys-sun# newfs /dev/md/oraset/rdsk/d1 |
On each node, create a mount-point directory for each file system.
phys-X# mkdir -p /global/apache phys-X# mkdir -p /local/nfs phys-X# mkdir -p /oracle/oracle/product/10.2.0 phys-X# mkdir -p /oradata/10gR2 |
For the Oracle home directory and database directory, set the owner, group, and mode.
Set the owner as oracle and the group as dba.
phys-X# chown -R oracle:dba /oracle/oracle/product/10.2.0 phys-X# chown -R oracle:dba /oradata/10gR2 |
Make the Oracle directories writable only by the owner and the group.
phys-X# chmod -R 775 /oracle/oracle/product/10.2.0 phys-X# chmod -R 775 /oradata/10gR2 |
On each node, add an entry to the /etc/vfstab file for each mount point.
Only the cluster file system for Apache uses the global mount option. Do not specify the global mount option for the local file systems for NFS and Oracle.
phys-X# vi /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # /dev/md/apacheset/dsk/d0 /dev/md/apacheset/rdsk/d0 /global/apache ufs 2 yes global,logging /dev/md/nfsset/dsk/d1 /dev/md/nfsset/rdsk/d1 /local/nfs ufs 2 no logging /dev/md/oraset/dsk/d0 /dev/md/oraset/rdsk/d0 /oracle/oracle/product/10.2.0 ufs 2 no logging /dev/md/oraset/dsk/d1 /dev/md/oraset/rdsk/d1 /oradata/10gR2 ufs 2 no logging,forcedirectio |
From phys-sun, verify that the mount points exist.
phys-sun# cluster check |
If no errors occur, nothing is returned.
From phys-sun, mount the file systems.
phys-sun# mount /global/apache phys-sun# mount /local/nfs phys-sun# mount /oracle/oracle/product/10.2.0 phys-sun# mount /oradata/10gR2 |
On each node, verify that the file systems are mounted.
Only the cluster file system for Apache is displayed on both nodes.
phys-sun# mount … /global/apache on /dev/md/apacheset/dsk/d0 read/write/setuid/global/logging on Sun Oct 3 08:56:16 2005 /local/nfs on /dev/md/nfsset/dsk/d1 read/write/setuid/logging on Sun Oct 3 08:56:16 2005 /oracle/oracle/product/10.2.0 on /dev/md/oraset/dsk/d0 read/write/setuid/logging on Sun Oct 3 08:56:16 2005 /oradata/10gR2 on /dev/md/oraset/dsk/d1 read/write/setuid/logging/forcedirectio on Sun Oct 3 08:56:16 2005 phys-moon# mount … /global/apache on /dev/md/apacheset/dsk/d0 read/write/setuid/global/logging on Sun Oct 3 08:56:16 2005 |