Sun Cluster Data Service for NetBackup Guide for Solaris OS

Installing and Configuring Sun Cluster HA for NetBackup

This chapter describes the procedures to set up and administer Sun Cluster HA for NetBackup on Sun Cluster servers.

This chapter contains the following sections.

Overview of the Installation and Configuration Process for Sun Cluster HA for NetBackup

The following table lists the sections that describe the installation and configuration tasks.

Table 1 Task Map: Installing and Configuring Sun Cluster HA for NetBackup

Task 

For Instructions, Go To … 

Note installation requirements and supported configurations 

Sun Cluster HA for NetBackup Overview

Install VERITAS NetBackup 

Installing VERITAS NetBackup

Enable VERITAS NetBackup to run on a cluster 

Enabling NetBackup to Run on a Cluster

Verify the VERITAS NetBackup installation and configuration 

Verifying the NetBackup Installation and Configuration

Install data service packages 

Installing Sun Cluster HA for NetBackup Packages

Register and configure Sun Cluster HA for NetBackup 

Registering and Configuring Sun Cluster HA for NetBackup

View fault monitor information 

Fault Monitoring Sun Cluster HA for NetBackup

(Optional) Configure Non-HA VERITAS NetBackup clients on a cluster 

(Optional) Configuring Non-HA VERITAS NetBackup Clients on a Cluster

Sun Cluster HA for NetBackup Overview

Sun Cluster HA for NetBackupmakes the VERITAS NetBackup master server highly available.

The NetBackup master server acts as the centralized administration and scheduling server. Each cluster can have only one NetBackup master server.

The master server communicates with media servers through connections to the public network. Typically, in non-clustered systems, the node that runs the master server is connected to the devices that are used for making and storing backups. However, in the Sun Cluster environment, you must attach backup devices to media servers rather than to master servers. You cannot include backup devices or media servers in the cluster.

NetBackup media servers are the machines that perform backups. Multiple media servers can exist on the local network. You can distribute workload between multiple media servers.

NetBackup clients are processes that run on nodes that are inside or outside the cluster. The clients transfer data from the machine to be backed up to the master servers and media servers.

NetBackup also includes a NetBackup media manager, which consists of daemons that interact with the backup devices. Sun Cluster does not control the daemons.

Sun Cluster HA for NetBackup only makes the NetBackup master server highly available. VERITAS NetBackup components, agents, add-ons, and the features that use these components are not highly available. For example, online (hot) and warm backups of databases are not highly available because the database backup agents are not under the control of the Sun Cluster framework.

Installation Notes

Note the following considerations before you install VERITAS NetBackup and Sun Cluster HA for NetBackup. Figure 1 illustrates the configuration limitations.

Supported Configurations

The following figure illustrates the supported configuration for Sun Cluster HA for NetBackup.

You must include the NetBackup master server in a cluster. You can attach backup devices only to media servers. You cannot include backup devices and media servers in a cluster.

Communication between NetBackup components occurs only through connections to the public network. If failover or switchover occurs, the components under cluster control fail over or switch over to their backup nodes.

Figure 1 Sun Cluster HA for NetBackup Supported Configurations

Illustration: The preceding context describes the graphic.

Installing VERITAS NetBackup

After you install and configure Sun Cluster, use the following procedure and your VERITAS documentation to install and configure VERITAS NetBackup.

ProcedureHow to Install VERITAS NetBackup

In the examples throughout this procedure, the name nb-master refers to the cluster node that masters NetBackup, and slave-1 refers to the media server.

You must have the following information to perform this procedure.

Steps
  1. Ensure that Sun Cluster is running on all of the nodes.

  2. Create a failover resource group to hold the network and application resources.

    You can optionally select the set of nodes that the data service can run on with the -h option, as follows.


    # scrgadm -a -g resource-group [-h nodelist]
    -g resource-group

    Specifies the name of the resource group.

    [-h nodelist]

    Specifies an optional comma-separated list of physical node names or IDs that identify potential masters. The order here determines the order in which the nodes are considered as primary during failover. If all of the nodes in the cluster are potential masters, you do not need to use the -h option.

  3. Verify that you have added all of your network resources to the name service database.

    You should have performed this verification during the Sun Cluster installation.


    Note –

    Ensure that all of the network resources are present in the server's and client's /etc/inet/hosts file to avoid any failures because of name service lookup.


  4. Add a logical host resource to the resource group.


    # scrgadm -a -L -g resource-group -l logical-hostname
    
  5. Enable the failover resource group and bring the resource group online.


    # scswitch -Z -g resource-group
    
    -g resource-group

    Specifies the name of the resource group.

    -Z

    Moves the resource group to the managed state, and brings the resource group online.

  6. Log on to the node that masters the logical host resource.

  7. Execute the install script to install the VERITAS NetBackup packages from the VERITAS product CD-ROM into the /usr/openv directory.


    phys-schost-1# ./install
    
  8. When the menu appears, choose Option 1 (NetBackup).

    This option installs both the Media Manager and the NetBackup software on the server.

  9. Follow the prompts in the installation script.

    The installation script adds entries to the /etc/services and /etc/inetd.conf files.


    phys-schost-1# ./install
    ...
    Would you like to use "phys-schost-1.somedomain.com" as the 
    configured name of the NetBackup server? (y/n) [y] n
    ...
    Enter the name of the NetBackup server: nb-master
    ...
    Is nb-master the master server? (y/n) [y] y
    ...
    Enter the fully qualified name of a media (slave) server (q to quit)? 
    slave-1
    
  10. Switch the NetBackup resource to the backup node

  11. Repeat Step 6 through Step 10 until you install the NetBackup binaries on all the nodes that will run the NetBackup resource.

Enabling NetBackup to Run on a Cluster

This section contains the procedure you need to enable NetBackup to run on a cluster.

ProcedureHow to Enable NetBackup to Run on a Cluster

In the examples throughout this procedure, the name nb-master refers to the cluster node that masters NetBackup, and slave-1 refers to the media server.

Steps
  1. Remove the /etc/rc2.d/S77netbackup and /etc/rc0.d/K77netbackup files from each cluster node on which Sun Cluster HA for NetBackup is installed.

    If you remove these files, you prevent NetBackup from starting at boot time.

  2. On one node, modify the /usr/openv/netbackup/bp.conf file to specify the following information.

    • SERVER = logical-hostname-resource

      All requests to the backup server originate from the primary node. The server name equals the logical hostname resource.

    • CLIENT_NAME = logical-hostname-resource

      On a cluster that runs Sun Cluster HA for NetBackup, the CLIENT_NAME equals nb-master.


      Note –

      Use this client name to back up files in the cluster running Sun Cluster HA for NetBackup.


    • REQUIRED_INTERFACE = logical-hostname-resource

      This entry indicates the logical interface that the NetBackup application is to use.

    The resulting file should resemble the following example.


    SERVER = nb-master
    SERVER = slave-1
    CLIENT_NAME = nb-master
    REQUIRED_INTERFACE = nb-master
    
  3. From one node, put the NetBackup configuration files on a multihost disk.

    Place the files on a disk that is part of a failover disk device group that NetBackup is to use.

    1. Run the following commands from the primary node of the failover disk device group. In this example, the failover disk device group is global.


      # mkdir /global/netbackup
      # mv /usr/openv/netbackup/bp.conf /global/netbackup
      # mv /usr/openv/netbackup/db /global/netbackup
      # mv /usr/openv/volmgr/database /global/netbackup
      # ln -s /global/netbackup/bp.conf /usr/openv/netbackup/bp.conf
      # ln -s /global/netbackup/db /usr/openv/netbackup/db
      # ln -s /global/netbackup/database /usr/openv/volmgr/database
      
    2. If the directory /usr/openv/db/var and the file /usr/openv/volmgr/vm.conf exist on the node, move them to the disk that is part of the failover disk device group.

      You must configure the NetBackup master server before you move and link /usr/openv/volmgr/vm.conf file.


      # mv /usr/openv/db/var /global/netbackup/nbdb
      # mv /usr/openv/volmgr/vm.conf /global/netbackup
      # ln -s /global/netbackup/nbdb /usr/openv/db/var 
      # ln -s /global/netbackup/vm.conf /usr/openv/volmgr/vm.conf
      

      Note –

      Run the command scstat -D to identify the primary for a particular disk device group.


    3. Run the following commands from all of the other nodes that will run the NetBackup resource.


      # rm -rf /usr/openv/netbackup/bp.conf
      # rm -rf /usr/openv/netbackup/db
      # rm -rf /usr/openv/volmgr/database
      # ln -s /global/netbackup/bp.conf /usr/openv/netbackup/bp.conf
      # ln -s /global/netbackup/db /usr/openv/netbackup/db
      # ln -s /global/netbackup/database /usr/openv/volmgr/database
      
    4. On all of the other nodes that will run the NetBackup resource, if the directory /usr/openv/db/var and the file /usr/openv/volmgr/vm.conf exist on the node, run the following commands:


      # rm -rf /usr/openv/db/var
      # rm -rf /usr/openv/volmgr/vm.conf
      # ln -s /global/netbackup/nbdb /usr/openv/db/var
      # ln -s /global/netbackup/vm.conf /usr/openv/volmgr/vm.conf
      

      Note –

      You must configure the NetBackup master server before you remove and link /usr/openv/volmgr/vm.conf file.


Verifying the NetBackup Installation and Configuration

This section contains the procedure you need to verify the NetBackup installation and configuration.

ProcedureHow to Verify the NetBackup Installation and Configuration

Use this procedure to verify the NetBackup installation and configuration. This procedure does not verify that your application is highly available because you have not installed your data service yet.

Steps
  1. Start the NetBackup application manually.

  2. Did your NetBackup application start without error?

    • If yes, this step completes this procedure.

    • If no, you need to install and configure NetBackup again.

Installing Sun Cluster HA for NetBackup Packages

If you did not install the Sun Cluster HA for NetBackup packages during your initial Sun Cluster installation, perform this procedure to install the packages. Perform this procedure on each cluster node where you are installing the Sun Cluster HA for NetBackup packages. To complete this procedure, you need the Sun Cluster Agents CD.

If you are installing more than one data service simultaneously, perform the procedure in Installing the Software in Sun Cluster Software Installation Guide for Solaris OS.

Install the Sun Cluster HA for NetBackup packages by using one of the following installation tools:


Note –

If you are using Solaris 10, install these packages only in the global zone. To ensure that these packages are not propagated to any local zones that are created after you install the packages, use the scinstall utility to install these packages. Do not use the Web Start program.


ProcedureHow to Install Sun Cluster HA for NetBackup Packages Using the Web Start Program

You can run the Web Start program with a command-line interface (CLI) or with a graphical user interface (GUI). The content and sequence of instructions in the CLI and the GUI are similar. For more information about the Web Start program, see the installer(1M) man page.

Steps
  1. On the cluster node where you are installing the Sun Cluster HA for NetBackup packages, become superuser.

  2. (Optional) If you intend to run the Web Start program with a GUI, ensure that your DISPLAY environment variable is set.

  3. Insert the Sun Cluster Agents CD into the CD-ROM drive.

    If the Volume Management daemon vold(1M) is running and configured to manage CD-ROM devices, it automatically mounts the CD-ROM on the /cdrom/cdrom0 directory.

  4. Change to the Sun Cluster HA for NetBackup component directory of the CD-ROM.

    The Web Start program for the Sun Cluster HA for NetBackup data service resides in this directory.


    # cd /cdrom/cdrom0/components/SunCluster_HA_NetBackup_3.1
    
  5. Start the Web Start program.


    # ./installer
    
  6. When you are prompted, select the type of installation.

    • To install only the C locale, select Typical.

    • To install other locales, select Custom.

  7. Follow the instructions on the screen to install the Sun Cluster HA for NetBackup packages on the node.

    After the installation is finished, the Web Start program provides an installation summary. This summary enables you to view logs that the Web Start program created during the installation. These logs are located in the /var/sadm/install/logs directory.

  8. Exit the Web Start program.

  9. Remove the Sun Cluster Agents CD from the CD-ROM drive.

    1. To ensure that the CD-ROM is not being used, change to a directory that does not reside on the CD-ROM.

    2. Eject the CD-ROM.


      # eject cdrom
      
Next Steps

Go to Registering and Configuring Sun Cluster HA for NetBackup.

ProcedureHow to Install Sun Cluster HA for NetBackup Packages by Using the scinstall Utility

Perform this procedure on all of the cluster members that can master Sun Cluster HA for NetBackup.

Before You Begin

Ensure that you have the Sun Cluster Agents CD.

Steps
  1. Load the Sun Cluster Agents CD into the CD-ROM drive.

  2. Run the scinstall utility with no options.

    This step starts the scinstall utility in interactive mode.

  3. Select the menu option, Add Support for New Data Service to This Cluster Node.

    The scinstall utility prompts you for additional information.

  4. Provide the path to the Sun Cluster Agents CD.

    The utility refers to the CD as the “data services cd.”

  5. Specify the data service to install.

    The scinstall utility lists the data service that you selected and asks you to confirm your choice.

  6. Exit the scinstall utility.

  7. Unload the CD from the drive.

Next Steps

Go to Registering and Configuring Sun Cluster HA for NetBackup.

Registering and Configuring Sun Cluster HA for NetBackup

Use the procedures in this section to register and configure Sun Cluster HA for NetBackup as a failover data service.

To configure a data service, you must create resource groups and resources for your application. See the Sun Cluster Data Services Planning and Administration Guide for Solaris OS and the Sun Cluster Concepts Guide for Solaris OS document for details on resources and resource groups.

Setting Sun Cluster HA for NetBackup Extension Properties

The section that follows contains instructions for registering and configuring resources. For information about the Sun Cluster HA for NetBackup extension properties, see Appendix A, Sun Cluster HA for NetBackup Extension Properties. The Tunable entry indicates when you can update a property.

To set an extension property of a resource, include the following option in the scrgadm(1M) command that creates or modifies the resource:


-x property=value 
-x property

Identifies the extension property that you are setting

value

Specifies the value to which you are setting the extension property

You can also use the procedures in Chapter 2, Administering Data Service Resources, in Sun Cluster Data Services Planning and Administration Guide for Solaris OS to configure resources after the resources are created.

ProcedureHow to Register and Configure Sun Cluster HA for NetBackup

This section describes how to use the scrgadm(1M) command to register and configure Sun Cluster HA for NetBackup.


Note –

Other options also enable you to register and configure the data service. See Tools for Data Service Resource Administration in Sun Cluster Data Services Planning and Administration Guide for Solaris OS for details about these options.



Note –

Perform this procedure on one cluster member.


Steps
  1. Become superuser on a cluster member.

  2. Run the scrgadm command to register the resource type for the data service.

    Register SUNW.netbackup_master as the resource type.


    # scrgadm -a -t SUNW.netbackup_master
    
    -t SUNW.netbackup_master

    Specifies the predefined resource type name for your data service.

  3. Create a NetBackup resource in the resource group.


    # scrgadm -a -j resource -g resource-group -t SUNW.netbackup_master 
    
  4. Ensure that netbackup processes are stopped on all nodes.

  5. Run the scswitch(1M) command to complete the following tasks.

    • Enable the resource and fault monitoring.

    • Move the resource group into a managed state.

    • Bring the resource group online.


    # scswitch -Z -g resource-group
    
    -Z

    Moves the resource group to the managed state, and brings the resource group online.


Example 1 Registering Sun Cluster HA for NetBackup

The following example shows how to register Sun Cluster HA for NetBackup on a two-node cluster.


Cluster Information
Node names: phys-schost-1, phys-schost-2
Resource Type: SUNW.netbackup_master
Logical hostname resource: nb-master
Resource group: NB-RG (failover resource group)
Netbackup Resources: test-scnb

(Register the NetBackup resource type.)
# scrgadm -a -t SUNW.netbackup_master 

(Add the failover resource group to contain all the resources.)
# scrgadm -a -g NB-RG -h phys-schost-1,phys-schost-2
 
(Add the network resource to the resource group.)
# scrgadm -a -L -g NB-RG -l nb-master 
 
(Add the NetBackup resource to the resource group.)
# scrgadm -a -j test-scnb -g NB-RG -t SUNW.netbackup_master
 
(Bring the resource group online.)
# scswitch -Z -g NB-RG

Fault Monitoring Sun Cluster HA for NetBackup

Depending on the installed version of NetBackup, NetBackup application startup starts one of the following sets of daemons:

Sun Cluster HA for NetBackup can work with either of these two sets of daemons. The Sun Cluster HA for NetBackup fault monitor monitors either of these two sets of processes. While the START method runs, the fault monitor waits until the daemons are online before monitoring the application. The Probe_timeout extension property specifies the amount of time that the fault monitor waits.

After the daemons are online, the fault monitor uses kill (pid, 0) to determine whether the daemons are running. If any daemon is not running, the fault monitor initiates the following actions, in order, until all of the probes are running successfully.

  1. Restarts the resource on the current node.

  2. Restarts the resource group on the current node.

  3. Fails over the resource group to the next node on the resource group's nodelist.

All process IDs (PIDs) are stored in a temporary file, /var/run/.netbackup_master.

(Optional) Configuring Non-HA VERITAS NetBackup Clients on a Cluster

Optionally, you can configure NetBackup clients on a cluster that will not run Sun Cluster HA for NetBackup. To do so, use one of the following methods.