HP OpenView Storage Data Protector Backup and Restore of High Availability Cluster Multi-Processing for AIX 5.3 Version 1.0 Backup and Restore of HACMP Cluster 1
1. Introduction... 3 2. Overview of HACMP Cluster... 3 3. Installing Data Protector Agents in a HACMP Cluster... 5 3.1. Local Installation... 5 3.2. Remote Installation... 6 4. Configuring Data Protector in a HACMP Cluster... 7 4.1. Importing Cluster to the Data Protector Cell... 7 5. Backing Up & Restoring Data in the Cluster... 7 5.1. Backup... 7 5.1.1 FileSystem Backup:... 8 5.1.2 Informix Backup:... 8 5.2. Restore... 9 5.2.1 FileSystem Restore:... 9 5.2.2 Informix Restore:... 9 Backup and Restore of HACMP Cluster 2
1. Introduction This Whitepaper provides a guideline for how to configure HP OpenView Storage Data Protector for backup/restore of an Informix Database running in an IBM High Availability Cluster Multi-processing environment (HACMP) for AIX. The cluster software that we are addressing is HACMP Version 5.x. Informix version which we have tested and covered in this whitepaper is IDS 9.40. It describes the steps necessary for the installation and configuration of Data Protector 5.1 and 5.5 in this type of an environment. Performance is not a focus of this Whitepaper as it only describes the concepts of this type of backup. The Whitepaper starts with an overview of a HACMP Cluster. Then it covers the installation of HP OpenView Storage Data Protector for the backup/restore of an Informix Database running in a HACMP Cluster. It explains the procedure used for configuring Data Protector to be able to perform backup/restore of the data on the Informix Database. 2. Overview of HACMP Cluster The IBM solution for building UNIX-based mission-critical computing environments is the HACMP software. The HACMP software ensures that critical resources, such as applications, are available for processing. HACMP has two major components: high availability (HA) and cluster multi-processing (CMP). The primary reason to create HACMP clusters is to provide a highly available environment for mission-critical applications. For example, an HACMP cluster could run a database server program which services client applications. The clients send queries to the server program which responds to their requests by accessing a database, stored on a shared external disk. In an HACMP cluster, to ensure the availability of these applications, the applications are put under HACMP control. HACMP takes measures to ensure that the applications remain available to client processes even if a component in a cluster fails. To ensure availability, in case of a component failure, HACMP moves the application (along with resources that ensure access to the application) to another node in the cluster. The figure below shows a typical HACMP Cluster setup: Backup and Restore of HACMP Cluster 3
As shown in the figure, an HACMP cluster is made up of the following physical components: Nodes Shared external disk devices Networks Network interfaces Clients Nodes: Nodes form the core of an HACMP cluster. A node is a processor that runs AIX, the HACMP software, and the application software. In an HACMP cluster, each node is identified by a unique name. A node may own a set of resources - disks, volume groups, filesystems, networks, network addresses, and applications. Shared External Disk Devices: Each node has access to one or more shared external disk devices. A shared external disk device is a disk physically connected to multiple nodes. The shared disk stores mission-critical data, typically mirrored or RAID-configured for data redundancy. A node in an HACMP cluster must also have internal disks that store the operating system and application binaries, but these disks are not shared. Backup and Restore of HACMP Cluster 4
Networks: As an independent, layered component of AIX, the HACMP software is designed to work with any TCP/IP-based network. Nodes in an HACMP cluster use the network to: - Allow clients to access the cluster nodes - Enable cluster nodes to exchange heartbeat messages - Serialize access to data (in concurrent access environments). Types of Networks: The HACMP software defines two types of communication networks, characterized by whether these networks use communication interfaces based on the TCP/IP subsystem (TCP/IP-based) or communication devices based on non-tcp/ip subsystems (device-based). Clients: A client is a processor that can access the nodes in a cluster over a local area network. Clients each run a "front end" or client application that queries the server application running on the cluster node. The entire cluster is accessed via a cluster host name which is referred as a Virtual Environment Domain Name, which represents the complete HACMP cluster over the network. 3. Installing Data Protector Agents in a HACMP Cluster To back up an Informix Database running in a virtual environment in a HACMP Cluster, Data Protector has to be installed on all the cluster nodes. The virtual environment FQDN / virtual environment package IP address has to be imported to the Data Protector cell. Following are the steps that need to be executed in order to install Data Protector in a HACMP Cluster: Note: You must have root permissions on every target system. 3.1. Local Installation In case there is no Unix Installation Server in the Data Protector cell, the Data Protector Agent(s) need to be installed locally on all the nodes. Follow the procedure below to install the agents locally: 1. Insert any HP-UX Installation Server installation CD-ROM. 2. From the <Mount_Point>/LOCAL_INSTALL directory run omnisetup.sh command. The syntax of the command is as follows: omnisetup.sh [-source <directory>] [-server <name>] [-install <component_list>] where: Backup and Restore of HACMP Cluster 5
directory is the location where the installation CD is mounted. If not specified, the current directory is used. name is a full hostname of the Cell Manager of the cell to which you want to import the client. If not specified, the client will not be automatically imported to the cell. For detailed procedure of installing Data Protector Agent(s) locally, please refer to the topic Local installation of Unix Clients in Chapter 2 (Installing Data Protector on Your Network) of the HP OpenView Storage Data Protector Installation and Licensing Guide for detailed procedure. 3.2. Remote Installation Data Protector Agent(s) can also be installed remotely on all of the Cluster nodes. You can install Agent(s) by distributing them from the UNIX Installation Server to the HACMP cluster nodes, using the Data Protector graphical user interface. At this point you should have the Installation Server for UNIX already installed in the Data Protector Cell. To install the client remotely please follow following steps: 1. Start the Data Protector graphical user interface and in the Data Protector Manager, switch to the Clients context. 2. In the Scoping Pane, right-click Clients and select Add Clients to start the wizard. 3. Select the client system platform and the Installation Server. 4. Enter or select the client you want to install. Click Next to proceed. 5. Select the Data Protector components you want to distribute to the Data Protector client(s). 6. Click the Options tab if you want to change the default user account and target directory for the components you are going to install. 7. In case you want to customize the options for each client system independently, select I want to customize this option for client systems independently and then click Next. 8. Select the components that you want installed on each client system. Click Finish to add the client to the cell. As soon as a system has the Data Protector client software installed and is added to the Data Protector cell, it becomes a Data Protector client. For detailed installation instructions, please refer to Installing Data Protector Clients in Chapter 2 (Installing Data Protector on Your Network) of the HP OpenView Storage Data Protector Installation and Licensing Guide for detailed procedure. Backup and Restore of HACMP Cluster 6
4. Configuring Data Protector in a HACMP Cluster For Data Protector to be able to see all the systems, the nodes as well as the virtual host name or virtual IP address need to be imported into the Data Protector Cell. Following is the procedure for importing the individual & cluster nodes. 4.1. Importing Cluster to the Data Protector Cell Importing means manually adding a system to the cell after the Data Protector software has been installed on the system. Once the system is a member of the Data Protector cell, the information about the new system is written to the Data Protector configuration files, which are located on the Cell Manager. After local/remote installation of the Data Protector Clients on all the nodes, you need to import the virtual node(s) as physical node(s). Before importing node and cluster hostnames, make sure that: Data Protector is installed on all the nodes in the cluster All HACMP Cluster nodes are running Inetd process is running on all nodes (as part of the inetd-service configured through /etc/inetd.conf ) To import a member/cluster using the Data Protector Graphical User Interface perform the following steps: 1. In the Context List, click Clients. 2. In the Scoping Pane, right-click Client and then click Import Client to start the wizard for importing a client. 3. Follow the wizard to add (import) the Nodes to the cell. See the online Help (Help Navigator) for details. 4. After importing all the nodes also import the virtual cluster FQDN / IP address in the Data Protector cell. Please make sure that Virtual Host checkbox is not checked during the import of cluster FQDN. 5. Backing Up & Restoring Data in the Cluster 5.1. Backup To enable the backup and restore of the data on all the nodes (also during the failover) all backup and restore operations are started on the virtual cluster name, and not on the physical cluster nodes. To backup data contained in the cluster, please follow following procedure. Backup and Restore of HACMP Cluster 7
5.1.1 FileSystem Backup: 1. Install the Data Protector Disk Agent on all the nodes. (as described above in section 3.0) 2. Import the cluster into the Data Protector Cell (as described above in section 3.1) Now Data Protector can access the data in the cluster on a cluster-wide basis. 3. For the procedure to create a backup specification, please refer to the topic Creating a Backup Specification in the Backup chapter of the HP OpenView Storage Data Protector Administrator s Guide. Note: For Backing up the cluster use the hostname for the cluster while for backing up individual node information, please use the individual node name. 5.1.2 Informix Backup: 1. Install the Data Protector Informix Agent on each node in the cluster. (as described above in section 3.0) 2. If you have not already done so, import the virtual server into the Data Protector Cell (as described above in section 3.1) Now Data Protector can access the data in the cluster on a cluster-wide basis. 3. Backing up Informix Database would first involve configuring the Informix Integration. For details of configuring and backing up Informix, please refer to the Integrating Informix and Data Protector chapter of the HP OpenView Storage Data Protector Integration Guide for IBM Applications. Notes: 1. Please use the Cluster hostname while configuring the Informix integration and the backup specifications. 2. Informix online integration backs up only database files and logical logs. It is advised to backup the database configuration files are stored on the physical cluster nodes individually using filesystem backup as mentioned above. Backup and Restore of HACMP Cluster 8
5.2. Restore 5.2.1 FileSystem Restore: For details on how to restore filesystem data, please refer to the Restore chapter in the HP OpenView Storage Data Protector Administrator s Guide. Note: For restoring the cluster use the hostname for the cluster while for restoring individual node files e.g. database configuration files, please use the individual node name. 5.2.2 Informix Restore: For details on how to restore Informix data, please refer to the section Restoring Informix Databases in the chapter Integrating Informix and Data Protector of the HP OpenView Storage Data Protector Integration Guide for IBM Applications. Note: Please use the Cluster hostname while restoring the data. Backup and Restore of HACMP Cluster 9