Symantec logo
Creating disk groups, volumes, and mount points

To create disk groups, volumes, and mount points for Oracle, review these guidelines. Before you install the Oracle Cluster Ready Services (CRS) and Oracle 10g binaries, you must create storage space for these installations. You need to provide storage for:

Identifying required directories for CRS and Oracle

Identify the directories required for installing Oracle and CRS software:

Directory

Component

/app 

Mountpoint for Oracle/CRS binaries 

/app/crshome  

CRS_HOME 

/app/oracle 

ORACLE_BASE 

/app/oracle/home 

ORACLE_HOME 

/oradata 

Mountpoint for Oracle database 

Preparing $CRS_HOME and $ORACLE_HOME on each node

 To create a file system on local storage for Oracle/CRS binaries (/app)

  1. As root user, first create a VxVM local diskgroup, orabindg_hostname:

    # vxdg init orabindg_galaxy Disk_1

  2. Create a volume, orabinvol_hostname:

    # vxassist -g orabindg_galaxy make orabinvol_galaxy 12G

  3. Create directory, /app

    # mkdir /app

  4. Create a filesystem with this volume, orabinvol_hostname

    # mkfs -t vxfs /dev/vx/dsk/orabindg/orabinvol

  5. Mount /app

    # mount -t vxfs /dev/vx/dsk/orabindg/orabinvol /app

  6. Add an entry for this filesystem in /etc/fstab.

    /dev/vx/dete/orabindg/orabinvol

    /app

    vxfs

    defaults 01

 To prepare $CRS_HOME on each node

  1. On each system, log in as "root".
  2. Create the directory for CRS_HOME:

    #mkdir -p /app/crshome

  3. Change ownership and permissions

    #chown -R oracle:oinstall /app/crshome

    #chmod -R 775 /app/crshome

 To prepare $ORACLE_BASE on each node

  1. On each system, log in as "root".
  2. Create the directory for ORACLE_BASE:

    #mkdir -p /app/oracle

  3. Change ownership and permissions

    #chown -R oracle:oinstall /app/oracle

    #chmod -R 775 /app/oracle

 To prepare $ORACLE_HOME on each node

  1. On each system, log in as "root".
  2. Create the directory for ORACLE_HOME:

    #mkdir -p /app/oracle/orahome

  3. Change ownership and permissions

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

    #chmod -R 775 /app/oracle/orahome

Creating OCR and VOTE-disk volumes

The installation of CRS requires predefined locations for the OCR and VOTE-disk components. Whether you create volumes or file system directories, you can add them to the VCS configuration to make them highly available.

 To create a filesystem for OCR and VOTE disks (/ocrvote)

  1. As root user, from the CVM master, create a shared VxVM diskgroup

    # vxdg -s init ocrvotedg Disk_2

  2. As root user, from CVM master, create volume(s) for ocr and voting disk.

      Note   Note: For 10.1.0.3, you need to create cfs mount for ocr and raw volume for voting disk. For 10.2.0.1, you need to create raw volumes for ocr as well as voting disk.


    # vxassist -g ocrvotedg make ocrvol 400M

    # vxassist -g ocrvotedg make vdrvol 400M

  3. For raw volumes, also need to change permissions as follows.

    #vxedit -g ocvotedg set user=oracle group=oinstall mode=660 ocrvol

    #vxedit -g ocvotedg set user=oracle group=oinstall mode=660 vdvol

  4. Verify that the VCS resources, ocrvote_mnt and ocrvote_voldg, are ONLINE on all systems in the cluster.

    #hares -state ocrvote_mnt

    #hares -state ocrvote_voldg