14.3. Mounting an OCFS2 Volume

  1. Open a terminal window and log in as the root user or equivalent.

  2. If the O2CB cluster service is offline, start it by entering the following command, then wait for the process to return a status of OK.

    /etc/init.d/o2cb online ocfs2
    

    Replace ocfs2 with the actual cluster name of your OCFS2 cluster.

    The OCFS2 cluster must be online, because the format operation must ensure that the volume is not mounted on any node in the cluster.

  3. Use one of the following methods to mount the volume.

    • In the ocfs2console, select a device in the Available Devices list, click Mount, specify the directory mount point and mount options (optional), then click OK.

    • Mount the volume from the command line, using the mount command.

    • Mount the volume from the /etc/fstab file on system boot.

    Mounting an OCFS2 volume takes about 5 seconds, depending on how long it takes for the heartbeat thread to stabilize. On a successful mount, the device list in the ocfs2console shows the mount point along with the device.

    For information about mounting an OCFS2 volume using any of these methods, see the OCFS2 User Guide on the OCFS2 project at Oracle.

    When running Oracle RAC, make sure to use the datavolume and nointr mounting options for OCFS2 volumes that contain the Voting diskfile (CRS), Cluster registry (OCR), Data files, Redo logs, Archive logs, and Control files. Do not use these options when mounting the Oracle Home volume.

    Option

    Description

    datavolume
    

    Ensures that the Oracle processes open the files with the o_direct flag.

    nointr
    

    No interruptions. Ensures the IO is not interrupted by signals.