Consolidating the Db2 pureScale Feature in a virtual environment (Linux)

You can use server consolidation to efficiently use server resources, and reduce the number of servers that you need for your work environment.

Before you begin

You must have the following networks:
  • A high-speed adapter for a private network. For RHEL 6.2 KVM, you must use a 10GE network adapter.
  • A network adapter for a public network.
  • If you are using VMWare ESXi, you must also have a separate physical network adapter for the ESX console.

You must export your Fibre Channel (FC) SAN storage to the guest virtual machine (VM). If you are using VMWare ESXi, you must export your SAN storage as raw device mapping (RDM) disks in physical compatibility mode.

If you are using VMWare ESXi, you must install VMWare Vsphere 5.0 to use virtual cloud computing capabilities.

About this task

You can consolidate multiple database servers into a set of physical machines that run multiple Db2 pureScale instances. You must be using VMWare ESXi 5.0 or Red Hat Enterprise Linux® (RHEL) 6.2 KVM. Figure 1 shows the network topology of a consolidated virtual Linux environment. You can have only a single VM per physical server, per instance.
Figure 1. Network topology of a consolidated virtual Linux environment
An image showing the Network topology of a consolidated virtual Linux environment.

Procedure

To consolidate a Db2 pureScale instance in a Linux virtual environment:

  1. Install and configure your hypervisor.
    Note: The RHEL 6.2 KVM hypervisor is available as part of the Linux kernel.
  2. Create a guest VM image for the first Db2 pureScale member on one physical server.
  3. On VMWare ESXi, assign logical unit numbers (LUNs) from SAN storage as RDM disks to the member VM. On RHEL 6.2 KVM, assign SAN disks as virtual disks to the member VM. Refer to pureScale disk requirements for how many shared disks that are required.
  4. Assign public and private NICs to the guest VM.
  5. Install a Linux operating system on the guest VM.
    Note: If you are using the RHEL 6.2 KVM hypervisor, you must install RHEL 6 as your operating system.
  6. You can create more Db2 pureScale members, the primary cluster caching manager (CF), and the secondary CF by cloning the VM image of the first member or following the same procedure. Each VM must reside on a separate physical server. For example, if you have two members, a primary CF, and a secondary CF, you must use four physical servers.

    It is also possible to configure both a member and a CF to reside on the same VM. This is known as co-resident or collocated member/CF deployment. In this configuration, only one VM is required to host the co-resident member and CF.

  7. Install the Db2 pureScale Feature. When you create the pureScale instance, choose the guest VMs that you created on the physical servers.
    Note: Tie-breaker support is not available when using virtual disks.
  8. Create a database or move existing databases to the instance you created.

What to do next

You can repeat this procedure to define other instances on the same set of physical machines. Each instance can host one or more databases.

You must configure the client application machine to connect to the server that hosts the Db2 member before you are able to use it.