Sun Cluster 3.0 12/01 Data Services Installation and Configuration Guide

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 Chapter 1 and the Sun Cluster 3.0 12/01 Concepts document for details on resources and resource groups.

How to Register and Configure Sun Cluster HA for NetBackup

This procedure 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" on page 8 for details about these options.


You must have the following information to perform this procedure.


Note -

Perform this procedure on one cluster member.


  1. Become superuser on a cluster member.

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

    Register SUNW.netbackup_master as the resource type.


    # scrgadm -a -t SUNW.netbackup_master
    
    -a

    Specifies that you are adding a new configuration.

    -t SUNW.netbackup_master

    Specifies the predefined resource type name for your data service.

  3. 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. Each resource group requires a unique name.

    [-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.

  4. 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/hosts file to avoid any failures because of name service lookup.


  5. Add a network resource to the resource group.


    # scrgadm -a {-L|-S} -g resource-group -l hostname-list\
    [-j resource] [-n netiflist] 
    {-L|-S}

    Specifies the type of network resource that the resource group uses. Select either -L, logical hostname resource, or -S, shared address resource.

    -l hostname_list

    Specifies the list of addresses that will be shared.

    [-j resource]

    An optional name for the logical hostname resource. If you do not specify a name, the default resource name is the first name to appear after the -l option.

    [-n netiflist]

    Specifies an optional, comma-separated list that identifies the NAFO groups on each node. All of the nodes in the resource group's nodelist must be represented in netiflist. If you do not specify this option, the scrgadm command attempts to discover a net adapter on the subnet that the hostname-list identifies for each node that is in the nodelist. For example, -n nafo0@nodename, nafo0@nodename2.

  6. Create a NetBackup resource in the resource group.


    # scrgadm -a -j resource -g resource-group -t SUNW.netbackup_master 
    
    -j resource

    Specifies the name of the resource to add.

    -g resource-group

    Specifies the name of the resource group into which you are placing the resource.

    -t SUNW.netbackup_master

    Specifies the type of resource to add.

  7. 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

    Enables the resource and monitor, moves the resource group to the managed state, and brings the resource group online.

    -g resource-group

    Specifies the name of the resource group.

Example - 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