These steps help you implement Xen virtual server high availability using the IBM System Director Virtual Availability Manager. These steps are based on IBM Blade Server HS21 and IBM Storage DS4300.
To start, you need three HS21 blade servers that have been installed with SUSE Linux 10 SP1. The shared storage should be configured for two of the three blade servers, blade2 and blade3, and the shared storage space should be bigger than 19GB.
Prepare the environment for the host server
Follow these steps to prepare the environment for your host server:
- Install the prerequisite software packages from the SUSE 10 SP1
Install image file:
- heartbeat at least version 2.0.8
- ocfs2-tools at least version 1.2.2
- evms-ha at least version 2.5.5
- python-curses at least version 2.4.2
- Install the Xen kernel whose version is newer than 2.6.16.53—that's the one with a patch for the package ocfs2.
- Configure the firewall:
- For the Virtual Availability Manager
- To allow services NFS Server and SLP Daemon
- To allow TCP port 3268,3269,15988 15989 6988 and the UDP port 2407
- Disable the Service Location Protocol (SLP) from the system service.
- Check the shared storage by run command
ls /dev/mapper. The result should look like this:3600a0b800017939900003573484f4be0 3600a0b800017939900003573484f4be0-part1 3600a0b800017939900003573484f4be0-part4 3600a0b800017939900003573484f4be0-part5 control
If the result isn't like this, then the multiple path is not open. Run commandschkconfig boot.multipathandchkconfig multipathdto open it. - Check to make sure the two hosts can recognize each other. If the two host names are configured in DNS, configure the correct DNS server for the two hosts. If the host name is configured manually, you need to edit the file /etc/hosts on both hosts to include the other host. That means the file on both hosts will include one record for itself and another record for the other.
- The date/time setting in the two hosts blade2 and blade3 should be same as the server blade1; otherwise, the IBM Director server will assume they are offline.
You have successfully prepared the host environment; now let's install the Virtual Availability Manager-related software.
Install the Virtual Availability Manager software
To install the IBM Director Virtual Availability Manager-related software:
- Install software on the server for high availability of server blade1 (IBM Director Server 5.20.2 and IBM Director Virtualization Manager 1.2 Server). The Director Virtualization Manager includes the Virtual Availability Manager Server.
- Install software on the host servers blade2 and blade3 (Director Agent Core server version 5.20.2 and IBM Director Virtualization Manager 1.2 Agent, which includes Virtual Availability Manager Agent). When installing the Virtualization Manager Agent on the host servers, choose to create the master image later, and don't clone the physical server to a virtual server.
Create the high availability (HA) farm
To create the HA farm, do the following:
- Add the hosts to the IBM Director Server and request access to them.
Then check the attribute of the hosts—the object should be online,
its agent level should be level 1, and the supported protocols are SSH
and CIM.
If the host is offline or it does not support protocol CIM, make sure the service
cimserverdis running on the hosts via the commandservice cimserverd status. Ifcimserverdis stopped, start it.If the host's agent level is level 0, close the firewall temporarily and re-add the host to the IBM Director Server.
- Open the IBM System Director Virtualization Manager Web interface, and choose the task Virtual Servers and Hosts from the Director Console. This will open the IBM System Director Virtualization Manager Web interface.
- Choose the task Create Virtual Farm under the Hardware and
Software node, and then:
- Input the virtual farm name, like HAFarm.
- Choose High Availability with workload management as the farm capability.
- Choose the host blade2 as the initial host.
- Input the storage WWN as the shared storage.
- Choose Restart as the farm policy.
- You will get the timeout error; the Virtual Availability Manager can not complete the creation in this duration.
- Check the log file /opt/ibm/director/am/logs/aminfr.log on the
host blade2 to see if the creation process is finished
when you see these logs:
[07/08/08 13:49:23] startam [INFO]: Exiting startam().
[07/08/08 13:49:24] amm [INFO]: amm_add_node Exit"
It means the HA farm creation process is already completed. - Choose the Add Host... task of the HA farm, and add host blade3 to the farm after the farm is created. It should be successfully created; you should see logs similar to those in the previous step.
- To ensure the HA farm is created successfully:
- Check the folder /opt/ibm/director/am/mnt/keystore on the two hosts; they should be same and have four files.
- Check the folder /opt/ibm/director/am/mnt/clusterdata on the two hosts; they should be same and have three files.
- Check the shared storage file system configuration file /etc/ocfs2/cluster.conf; the content of this should be same on the two hosts.
To create the virtual server, do the following:
- Copy the SUSE 10 SP1 installation image file content to a folder (for example, /shared/tmp); this folder should be writable.
- Run the command
/opt/ibm/director/vm/im/suse_inst.py --dest=/shared/vm_master.img --src=/shared/tmp --net=localon the host blade2 to create the master image. - Copy the master image file to folder /opt/ibm/director/am/mnt/images/masters/.
- Enter the Web interface of the IBM Virtualization Manager, and open the task Create System template under the Templates and Deployment node; choose the image you just created as the master image.
- Choose task Create Virtual Server under the Hardware and Software node, and create a virtual server on host blade2; choose the master image template you just created.
- You can create more virtual servers as you did in the previous step.
That's it for creating the HA farm and virtual server. Now let's test.
Enable and test high availability
To enable the HA and test it:
- Choose the task Activate HA Capabilities to enable the HA
ability. Run command
crm_monon the two hosts to check the monitor status. - Power off the host blade2. You can see that the virtual server we created has been migrated to the host blade3; this means we have successfully implemented the HA capabilities of the virtual server.
To reset the environment, do the following:
- Deactivate the HA farm High Availability Capabilities.
- Remove both hosts from HA farm.
- Delete both hosts and the HA farm from the IBM System Director Virtualization Manager.
- Run
/opt/ibm/director/am/bin/amDoctor purifyon both hosts. If the command fails to complete, reboot the host and try the command again. - Delete the mounted storage from the hosts. Run command
evms_query volumesto query the current mounted storage. The results should look like this:/dev/evms/600a0b8000179399000035794872607e_FS_Volume /dev/evms/sda1 /dev/evms/sda2
- Run command
evms, then use commanddr:/dev/evms/600a0b8000179399000035794872607e_FS_Volumeto delete the volumes. Select all the default choices. - Reboot the two hosts again.
Now you're ready to start everything up.
If the file in folder /opt/ibm/director/am/mnt/keystore and /opt/ibm/director/am/mnt/clusterdata on the two hosts are different, or if the contents of the storage configuration file /etc/ocfs2/cluster.conf are different on the two hosts, check whether the two hosts know each other's host name. If they don't, add the other host name and IP address to the file /etc/hosts.
If you get an error when creating the HA farm or when adding hosts to the
farm or activating the HA farm, check the status of the
cimserverd service on the two hosts via command
service cimserverd status; also do this if
cimserverd is suddenly stopped in the current
director agent.
Learn
-
Check out the
IBM
System Director Virtual Availability Management,
an IBM product that provides support for high availability as well as dynamic and
static relocation for Xen virtual servers.
-
Read about the
IBM Systems Director Virtualization Manager,
an extension to IBM Director that helps you manage both physical and
virtual resources from one location.
-
Get to know the
IBM Director,
an integrated suite of tools that provide comprehensive
system-management capabilities to maximize system availability and to lower
IT costs.
- In
"Virtual Linux"
(developerWorks, December 2006), take a tour of virtualization methods,
architectures, and implementations.
-
"Virtualization with coLinux"
(developerWorks, March 2007) introduces coLinux as a quick introduction to
Linux/Windows virtualization, and shows you another path to
virtualization.
- Find support and downloads for
IBM TotalStorage DS4300 Midrange Disk System
including firmware, storage management and host bus adapter software, and
management and diagnostic tools.
-
Xen.org delivers up-to-date info on
the Xen hypervisor, which provides a feature set for virtualization of x86,
x86_64, IA64, PowerPC™, and other CPU architectures, as well as a
wide range of guest operating systems including Windows®, Linux,
Solaris, and various versions of the BSD operating systems.
- In the
developerWorks Linux zone,
find more resources for Linux developers (including developers who are
new to Linux), and scan our
most popular articles and
tutorials.
-
See all
Linux tips and
Linux tutorials on developerWorks.
-
Stay current with
developerWorks technical events and Webcasts.
Get products and technologies
-
Order the SEK for Linux,
a two-DVD set containing the latest IBM trial software for Linux from DB2®,
Lotus®, Rational®, Tivoli®, and WebSphere®.
-
With
IBM trial software,
available for download directly from developerWorks, build your next development
project on Linux.
Discuss
-
Get involved in the
developerWorks community through blogs, forums, podcasts, and spaces.





