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 

/ocrvote 

Mountpoint for OCR/Vote 

/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 -V vxfs /dev/vx/dsk/orabindg/orabinvol

  5. Mount /app

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

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

    /app:

    dev = dev/vx/dsk/orabindg/orabinvol

    vfs = vxfs

    mount = true

    options = rw

    account = false

 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 the CVM master, create a volume, ocrvotevol:

    # vxassist -g ocrvotedg make ocrvotevol 1G

  3. As root user, from CVM master, create a filesystem with the volume, ocrvotevol.

    # mkfs -V vxfs /dev/vx/dsk/ocrvotedg/ocrvotevol

  4. On each system, create a directory, /ocrvote:

    # mkdir /ocrvote

  5. On each system, mount /ocrvote

    # mount -V vxfs -o cluster /dev/vx/dsk/ocrvotedg/ocrvotevol /ocrvote

  6. As root user, from any system, change permissions on /ocrvote

    # chown -R oracle:oinstall /ocrvote

  7. Add the CFSMount and CVMVolDg resources corresponding to this "/ocrvote" filesystem to the "cvm" group in VCS configuration:

    #haconf -makerw

    #hares -add ocrvote_mnt CFSMount cvm

    #hares -modify ocrvote_mnt Critical 0

    #hares -modify ocrvote_mnt MountPoint "/ocrvote"

    #hares -modify ocrvote_mnt BlockDevice \ "/dev/vx/dsk/ocrvotedg/ocrvotevol"

    #hares -add ocrvote_voldg CVMVolDg cvm

    #hares -modify ocrvote_voldg CVMDiskGroup ocrvotedg

    #hares -modify ocrvote_voldg CVMVolume -add ocrvotevol

    #hares -modify ocrvote_voldg CVMActivation sw

    #hares -link ocrvote_mnt ocrvote_voldg

    #hares -link ocrvote_mnt vxfsckd

    #hares -link ocrvote_voldg cvm_clus

    #hares -modify ocrvote_voldg Enabled 1

    #hares -modify ocrvote_mnt Enabled 1

    #haconf -dump -makero

  8. Verify the stanzas corresponding to the ocrvote_mnt and ocrvote_voldg resources in main.cf:

    CFSMount ocrvote_mnt (

    Critical = 0

    MountPoint = "/ocrvote"

    BlockDevice = "/dev/vx/dsk/ocrvotedg/ocrvotevol"

    )

    CVMVolDg ocrvote_voldg (

    Critical = 0

    CVMDiskGroup = ocrvotedg

    CVMVolume = { ocrvotevol }

    CVMActivation = sw

    )

    ocrvote_mnt requires ocrvote_voldg

    ocrvote_mnt requires vxfsckd

    ocrvote_voldg requires cvm_clus

  9. 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