How to create cluster pool in OVM ?

After the installation of OVM shown in previous article here.

I have done the installation of two OVS servers on VMware workstation. Its time to scan those two servers into OVM.


Installed OVM manager.

Ethernet configured to handle the storage network traffic.

Need to attach one filer which is used for storage using that storage ethernet configuration.

Step 1 : Installation of OVS server is very simple like any Linux OS installation. Only difference which I noticed is that it will ask for one more password during installation that is for Oracle VM agent password.

This password we require during the scanning of OVS server into OVM.

By default after successful installation of OVS server bond0 will get created with eth0.

[root@OVS-1 ~]# ifconfig -a
bond0     Link encap:Ethernet  HWaddr 00:0C:29:81:60:F9
inet addr:  Bcast:  Mask:
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5881 (5.7 KiB)  TX bytes:6999 (6.8 KiB)

My OVS version is :

[root@OVS-1 ~]# cat /etc/ovs-release
Oracle VM server release 3.3.1

[root@OVS-1 ~]# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   832     4     r—–     53.9

Step 2 : I have assigned one more network interface to OVS servers. Now I have two interfaces on each OVS server.
eth0 is used for mgmt, cluster heartbeat and Live Migrate.
eth1 is used for storage.
[root@OVS-1 ~]# ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:0C:29:81:60:03
inet addr:  Bcast:  Mask:
RX packets:7700 errors:0 dropped:0 overruns:0 frame:0
TX packets:4885 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9714910 (9.2 MiB)  TX bytes:446684 (436.2 KiB)

Step 3 : While creating pool in OVM. Disk which is used to heartbeat in cluster pool should be at least of size is 12 GB.

I have scanned the two physical servers OVS-1 and OVS-2 in unassigned pool before creating the new pool. I have not shown here because its very simple.

Below is the links for document shown with screenshots.

After the successful creation of cluster  pool. You will find new file system will be mounted on each OVS server.

[root@OVS-1 ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       7.8G  1.2G  6.3G  15% /
tmpfs           369M   16K  369M   1% /dev/shm
/dev/sda1       477M   47M  401M  11% /boot
none            369M   40K  369M   1% /var/lib/xenstored
/dev/dm-8        14G  369M   14G   3% /poolfsmnt/0004fb00000500002d107c91a367306b

[root@OVS-1 ~]# cat /etc/mtab  | grep -i ocfs2
ocfs2_dlmfs /dlm ocfs2_dlmfs rw 0 0
/dev/mapper/14f504e46494c45004e74666b654f2d6854444f2d79775143 /poolfsmnt/0004fb00000500002d107c91a367306b ocfs2 rw,_netdev,heartbeat=global 0 0

Below is the cluster configuration file which is created after creation of pool with two OVS servers.

[root@OVS-1 ~]# cat /etc/ocfs2/cluster.conf
name = OVS-1
cluster = 723250d652ed73ba
number = 0
ip_address =
ip_port = 7777

name = OVS-2
cluster = 723250d652ed73ba
number = 1
ip_address =
ip_port = 7777

name = 723250d652ed73ba
heartbeat_mode = global
node_count = 2

cluster = 723250d652ed73ba
region = 0004FB00000500002D107C91A367306B


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s