Symantec logo
Creating disk groups, volumes, and mount points for Oracle

 To create disk groups, volumes, and mount points for Oracle

  1. Select Create disk groups, volumes, and mount points for Oracle if you want to specifically perform this task.
  2. Review the displayed guidelines and proceed to step 3.

    For Oracle 9i, create the following on shared storage:

    1. CVM volume or a file on a CFS filesystem for SRVM.

    2. CVM volumes or a directory on a CFS filesystem for storing the database.

    For Oracle 10g, create the following on shared storage:

    1. CVM volume or a file on a CFS filesystem for OCR.

    2. CVM volume or a file on a CFS filesystem for VOTE-disk.

    3. CVM volumes or a directory on a CFS filesystem for storing the database.

    Oracle and CRS home directories (where the binaries are installed) can be on a local filesystem or on CFS.

    Remember to change the permission for all of the above to oracle user/group.

  3. Before you install the Oracle Cluster Ready Services (CRS) and Oracle 10g binaries, you must create storage space for these installations. Create storage space for:

    The home directory ($CRS_HOME) for CRS binaries. 

    On each node, create a volume and file system for $CRS_HOME. 

    See Preparing $CRS_HOME on each node 

    The CRS files for Oracle Cluster Registry (OCR) and the Vote-disk. 

    The CRS files can reside in volumes on raw device, or in directories in a cluster file system.  

    See Creating volumes or directories for OCR and Vote-disk 

    • The home directory ($ORACLE_HOME) for Oracle binaries.
    • The CVM volumes or a directory on CFS for database file storage.

    Symantec recommends you to install the Oracle binaries on local storage on each node. 

    See Preparing to store the Oracle binary and data files 

Preparing $CRS_HOME on each node

On each system in the SF Oracle RAC cluster, create a directory for CRS_HOME. The minimum disk space required is 2 GB. The example procedure uses galaxy as one of the nodes.

 To prepare $CRS_HOME on each node

  1. Make sure you are logged in as superuser on one system.
  2. On one node, create a private disk group on local storage. For example:

    # vxdg init crsdg_galaxy c4t0d0

  3. Create the volume in the group for the CRS_HOME. The volume should be a minimum of 2 GB:

    # vxassist -g crsdg_galaxy make crsvol_galaxy 2000M

  4. Create a VxFS file system on which to install CRS. For example:

    # mkfs -F vxfs /dev/vx/rdsk/crsdg_galaxy/crsvol_galaxy

  5. Create the mount point for the file system.

    # mkdir /app/crshome

  6. Mount the file system, using the device file for the block device:

    # mount -F vxfs /dev/vx/dsk/crsdg_galaxy/crsvol_galaxy \

    /app/crshome

  7. Add an entry to the /etc/fstab file. For example:

    /dev/vx/dsk/crsdg_galaxy/crsvol_galaxy /app/crshome vxfs delaylog 0 2

  8. Set the CRS_HOME directory for the oracle user as /app/crshome.
  9. Assign ownership of the CRS_HOME directory to oracle and the group oinstall:

    # chown -R oracle:oinstall /app/crshome

  10. Repeat step 1 through step 9 on each of the other nodes in the cluster.
Creating volumes or directories for OCR and Vote-disk

The OCR and Vote-disk must be shared among all nodes in a cluster. You can do one of the following:

Whether you create shared volumes or shared file system directories, you can add them in the VCS configuration to make them highly available. Symantec recommends to create OCR and Vote-disk on shared raw volumes.

 To create OCR and Vote-disk volumes on raw volumes

  1. Log in as superuser.
  2. On the master node, create a shared disk group:

    # vxdg -s init ocrvotedg c4t0d1

  3. Create volumes in the shared group for OCR and Vote-disk:

    # vxassist -g ocrvotedg make ocrvotevol 200M

  4. Assign ownership of the volumes using the vxedit(1M) command:

    vxedit -g disk_group set group=group user=user mode=660 volume

    For example:

    # vxedit -g ocrvotedg set group=oinstall user=oracle

    mode=660 ocrvotevol

  5. Start the volume:

    # vxvol -g ocrvotedg startall

 To create OCR and Vote-disk directories on CFS

  1. Log in as superuser.
  2. On the master node, create a shared disk group:

    # vxdg -s init ocrvotedg c4t0d1

  3. Create volumes in the shared group for OCR and Vote-disk:

    # vxassist -g ocrvotedg make ocrvotevol 200M

  4. Assign ownership of the volumes using the vxedit(1M) command:

    vxedit -g disk_group set group=group user=user mode=660 volume

    For example:

    # vxedit -g ocrvotedg set group=oinstall user=oracle

    mode=660 ocrvotevol

  5. Start the volume:

    # vxvol -g ocrvotedg startall

  6. Set the activation mode for the disk group on all cluster nodes:

    # vxdg -g ocrvotedg set activation=sw

  7. Create the file system:

    # mkfs -F vxfs /dev/vx/rdsk/ocrvotedg/ocrvotevol

  8. Create a mount point for the Vote-disk and OCR files on all the nodes.

    # mkdir /ocrvote

  9. On all nodes, mount the file system:

    # mount -F vxfs -o cluster /dev/vx/dsk/ocrvotedg/ocrvotevol\

    /ocrvote

  10. Create a directory for the Vote-disk and OCR files.

    # cd /ocrvote

    # mkdir ocr

    # mkdir vote

  11. Set "oracle" to be the owner of the file system, and set "755" as the permissions:

    # chown -R oracle:oinstall /ocrvote

    # chmod 755 /ocrvote

Preparing to store the Oracle binary and data files

Symantec recomments you to install the Oracle 10g Database Binaries locally on each cluster node. You must create the disk group, volume, and mount points on each node that would be a part of the cluster.

 To create storage space for Oracle files on local disks

Perform the following steps in each node in the cluster.

  1. Log in as superuser on one node.
  2. On one node, create a disk group in the available local storage.

    # vxdg init orabindg_galaxy c4t0d2

  3. Create the volume in the group. For the Oracle 10g binaries, make the volume 7 GB.

    # vxassist -g orabindg_galaxy make orabinvol_galaxy 7168M

  4. Create a VxFS file system on orbin_vol to install the Oracle 10g binaries. For example:

    # mkfs -F vxfs /dev/vx/rdsk/orabindg_galaxy/orabinvol_galaxy

  5. Create the mount point for the file system.

    # mkdir /app/oracle/orahome

  6. Mount the file system using the device file for the block device.

    # mount -F vxfs /dev/vx/dsk/orabindg_galaxy/orabinvol_galaxy \

    /app/oracle/orahome

  7. Edit the /etc/fstab file and list the new file system. For example:

    /dev/vx/dsk/orabindg_galaxy/orabinvol_galaxy /app/oracle/orahome vxfs delaylog 0 1

  8. Assign ownership of the Oracle directory to oracle:

    # chown -R oracle:oinstall /app/oracle/orahome

    # chmod 775 /app/oracle/orahome

  9. Repeat step 1 through step 8 on the other nodes.