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:
Содержание VM
Страница 1: ...Oracle VM Server User s Guide Release 2 1 E10898 04 June 2009 ...
Страница 10: ...x ...
Страница 16: ...Oracle VM 1 4 Oracle VM Server User s Guide ...
Страница 24: ...Monitoring Oracle VM Agent 3 4 Oracle VM Server User s Guide ...
Страница 40: ...Installing Paravirtual Drivers 4 16 Oracle VM Server User s Guide ...
Страница 44: ...Using the xm Command Line Interface 5 4 Oracle VM Server User s Guide ...
Страница 50: ...Migrating a Domain 6 6 Oracle VM Server User s Guide ...
Страница 54: ...Removing a Repository 7 4 Oracle VM Server User s Guide ...
Страница 68: ...Enabling HA 9 8 Oracle VM Server User s Guide ...
Страница 88: ...Oracle VM Server Configuration File B 6 Oracle VM Server User s Guide ...
Страница 96: ...Oracle VM Agent Deployment D 4 Oracle VM Server User s Guide ...
Страница 104: ...Attaching to a Console with the Grub Boot Loader E 8 Oracle VM Server User s Guide ...
Страница 108: ...Xen Glossary 4 ...
Страница 112: ...Index 4 ...