Adding A Shared Virtual Disk Using Nfs - Oracle VM User Manual

Table of Contents

Advertisement

Creating a Shared Virtual Disk for Live Migration
Determine the share disk volume you want to use.
Create a new directory named /etc/ocfs2 directory:
2.
# mkdir /etc/ocfs2
Create the OCSF2 configuration file as /etc/ocfs2/cluster.conf. The following is a
3.
sample cluster.conf file:
node:
node:
cluster:
Review the status of the OCFS2 cluster service:
4.
# service o2cb status
Load the OCFS2 module:
5.
# service o2cb load
Set the OCFS2 service to be online:
6.
# service o2cb online
Configure the OCFS2 service to start automatically when the computer boots:
7.
# service o2cb configure
Start up the OCFS2 service.
8.
# service o2cb start
Format the shared virtual disk from any of the Oracle VM Servers in the cluster:
9.
# mkfs.ocfs2 /dev/sdb
Mount the shared virtual disk from all the Oracle VM Servers in the cluster on
10.
/OVS/remote:
# mount /dev/sdb /OVS/remote/ -t ocfs2
Change the /etc/fstab file to include the shared virtual disk mounted at boot:
11.
/dev/sdb

6.1.3 Adding a Shared Virtual Disk Using NFS

To add a shared virtual disk using NFS:
Find an NFS mount point to use. This example uses the mount point:
1.
mycomputer:/vol/vol1/data/ovs
6-4 Oracle VM Server User's Guide
ip_port = 7777
ip_address = 10.1.1.1
number = 0
name = example1.com
cluster = ocfs2
ip_port = 7777
ip_address = 10.1.1.2
number = 1
name = example2.com
cluster = ocfs2
node_count = 2
name = ocfs2
/OVS/remote
ocfs2
defaults
1 0

Advertisement

Table of Contents
loading

Table of Contents