
| Configuring Xen HA with Heartbeat for SUSE Linux Enterprise Server |
| 摘自: searchenterpriselinux.techtarget.com 被阅读次数: 65 |
由 yangyi 于 2008-03-24 18:11:48 提供 |
If just one server goes down, essential services don't have to shut down, too. Linux administrators can keep those services up all the time by setting up a Heartbeat cluster on Linux. Heartbeat adds the advantage of the cluster to Xen virtual machines (VMs) as well, so VMs can also be maintained when a server crashes. This series explains how to configure and use a Heartbeat cluster on SUSE Linux Enterprise Server using a storage area network (SAN) and a Xen VM as a cluster resource. I'll also discuss the Linux Heartbeat project, whose mission is improving critical services availability in the network environment at critical times. In this, the first installment, I cover installation of a SAN. In the next tip, I'll cover the configuration of the Oracle cluster file system (OCFS2). Configuring the SAN Before we start, let's make a small list of required components to build a complete cluster solution with heartbeat:
The first part of installing a Xen VM high availability environment (which we'll refer to as Xen HA) involves configuring a SAN. This is done with services included in SUSE Linux Enterprise Server. In a Xen HA environment, you need the SAN to store the Xen disk images and configuration files on a centralized location where they can be reached by both nodes simultaneously. If one node goes down, you still want the other node to be able to reach the required configuration files. To prepare your cluster for storage, just create two logical unit numbers (LUNs) on the SAN. If a SAN is already in place, you can use that, but if you don't yet have a SAN, SUSE Linux Enterprise Server (SLES) 10.1 includes everything you need to create one based on iSCSI. One can be created with a server running SLES 10.1 as the storage server and with two servers running SLES 10.1 that access the LUNs that are offered by the storage server. Creating a shared storage device In case you don't have the opportunity to use a real device, you can use Make sure you have a small device available for storing the Xen VM configuration files. For example, use Defining an iSCSI target Click "add" to define the LUNs. Every LUN is offered as a device at the nodes in the cluster. For every LUN that you create, you need a separate device to share. Therefore, select the LUN number for your first LUN and in the path field, specify the name of the device that you want to share, for example, Connecting the shared device Click the connected targets tab, then click "toggle start-up". This ensures that the connection is established automatically the next time that your server reboots. Click Finish to complete the wizard. To connect all other nodes in the network that need access to the shared storage, repeat the steps for connecting the shared device. Testing the SAN Now you've learned how to configure an iSCSI SAN using SUSE Linux Enterprise Server 10.1, an affordable alternative to proprietary SANs. In Part 2, you'll learn how to create a cluster safe OCFS2 file system on this SAN, and providing high availability to VMs. About the author: Sander van Vugt is an author and independent technical trainer, specializing in Linux since 1994. Vugt is also a technical consultant for high availability (HA) clustering and performance optimization, as well as an expert on SUSE Linux Enterprise Desktop 10 (SLED 10) administration. Original link: http://searchenterpriselinux.techtarget.com/tip/0,289483,sid39_gci1294585,00.html |