3 adding a shared virtual disk using nfs, 3 creating ha clusters, 1 creating an nfs cluster for ha – Oracle Audio Technologies E10898-02 User Manual

Page 66: 2 creating an ocfs2 cluster for ha, Adding a shared, Creating ha clus, Creating an nfs cluster, Creating an ocfs2 clus, Creating ha clusters

Advertising
background image

Creating HA Clusters

9-6

Oracle VM Server User's Guide

2.

Format the shared virtual disk from any of the Oracle VM Servers in the cluster.
For example, to create an OCFS2 partition with a 4k block size, 4k cluster size,
64MB journal size, and 16 node slots:

# mkfs.ocfs2 -L mylabel -b 4K -C 4K -J size=64M -N 16 /dev/sdb1

3.

Mount the shared virtual disk from all the Oracle VM Servers in the cluster on
/OVS/remote.

9.2.3 Adding a Shared Virtual Disk Using NFS

To add a shared virtual disk using NFS, you just find an NFS mount point to use. This
example uses the NFS mount point that will be used when enabling HA for the server
pool.

fileserver.example.com:/OVS

9.3 Creating HA Clusters

To support HA you must also create an Oracle VM Server cluster to ensure the safety
of guest data, and protect from runaway nodes which may become unreachable.
Clustered Oracle VM Servers have built in rules and restrictions which are more
stringent than unclustered Oracle VM Servers, for example, Quorum is needed and
may require restarting one or more Oracle VM Servers to preserve the cluster under
rare circumstances.

The following sections detail how to create a cluster and enable HA. You can create
either an NFS-based cluster, or an OCFS2 cluster.

9.3.1 Creating an NFS Cluster for HA

1.

On the Server Pool Master, start the cluster service:

# /usr/lib/ovs/ovs-cluster-configure

2.

On the Server Pool Master, configure the shared storage with

/usr/lib/ovs/ovs-makerepo

source

C

description

, for example.

# /usr/lib/ovs/ovs-makerepo example.com:/OVS C "cluster root"

3.

On the Server Pool Master, check the cluster has been configured correctly and is
running:

# /usr/lib/ovs/ovs-cluster-check --master --alter-fstab

The

--master

parameter should only be used on the Server Pool Master. The

--alter-fstab

parameter modifies the /etc/fstab file. A backup of the original

/etc/fstab file is created in /tmp.

4.

Log in to Oracle VM Manager and create an HA-enabled server pool. See

Section 9.4, "Enabling HA"

for information on creating an HA-enabled server pool.

9.3.2 Creating an OCFS2 Cluster for HA

To create an OCFS2-based cluster for HA:

1.

On the Server Pool Master, format a volume to be an OCFS2 partition with the
mkfs.ocfs2 utility. For example, to create an OCFS2 partition with a 4k block size,
4k cluster size, and 16 node slots:

Advertising