4.5 Using a YaST Auto-Configuration File to Install and Configure Business Continuity Clustering Software

You can install Business Continuity Clustering for Linux core software and Identity Manager management utilities without taking the Business Continuity Clustering software CD or ISO file to different nodes in your cluster. To do this, you must perform the following tasks:

4.5.1 Creating a YaST Auto-Configuration Profile

  1. In a text editor, create a YaST auto-configuration profile XML file named bccprofile.xml.

    Auto-configuration files are typically stored in the /var/lib/autoinstall/repository/ directory, but you can use any directory.

    The file should appear similar to the example below.

    <?xml version="1.0"?>
    <!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd">
    <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
      <configure>
        <bcc>
          <config-type>New</config-type>
          <start-now>Yes</start-now>
          <cluster-dn>cn=my_cluster.o=novell</cluster-dn>
          <ldap-server>10.1.1.0</ldap-server>
          <ldap-port>389</ldap-port>
          <ldap-secure-port>636</ldap-secure-port>
          <admin-dn>cn=admin.o=novell</admin-dn>
          <admin-password>password</admin-password>
        </bcc>
      </configure>
    </profile>
    

    Edit the above example to apply to your own specific system settings.

  2. Copy the XML file you created in Step 1 to each node in the cluster.

    Use the same path on each node. You can use the scp command to copy the file securely. See the scp man page for information on using scp.

4.5.2 Setting Up an NFS Server to Host the Business Continuity Clustering Installation Media

  1. Prepare a directory for an NFS share from within a shell.

    To do this, you can either copy the contents of the CD you created to a local directory, or you can mount the ISO image as a loopback device.

    To copy the contents of the CD to a local directory, you could enter commands similar to the following:

    mkdir /tmp/bcc_install
    
    cp -r /media/dvdrecorder /tmp/bcc_install
    

    To mount the ISO image as a loopback device, enter commands similar to the following:

    mkdir /mnt/iso
    
    mkdir /tmp/bcc_install
    
    mount path_to_BCC_ISO /tmp/bcc_install -o loop
    

    Replace path_to_BCC_ISO with the location of the Business Continuity Clustering software ISO image.

  2. Create an NFS share by opening a shell and running yast2 nfs_server. Then continue with Step 3 below.

  3. Select Start NFS Server, then click Next.

  4. Click Add Directory and enter the following:

    /tmp/bcc_install

  5. Enter a host wildcard if desired, click OK, then click Finish.

4.5.3 Installing and Configuring Business Continuity Clustering on Each Cluster Node

You must install BCC 1.2 software on each cluster node in every cluster that you want to be in the business continuity cluster.

  1. Create a new YaST software installation source by opening a shell and running yast2 inst_source.

  2. Add NFS as the source type.

  3. Specify the server and directory you entered in Step 4, click OK, then Finish.

  4. Install Business Continuity Clustering software by opening a shell and running the following commands in the order indicated:

    yast2 sw_single -i \
    
    novell-business-continuity-cluster \
    
    novell-cluster-services-cli \
    
    yast2-bcc
    
  5. Autoconfigure the Business Continuity Clustering software by running the following command from a shell:

    yast2 bcc_autoconfig path_to_XML_profile
    

    Replace path_to_XML_profile with the path to the file you created in Step 1.

  6. Remove the installation source you created in Step 1 above by completing the following steps:

    1. Open a shell and run yast2 inst_source.

    2. Select the Business Continuity Clustering installation source, click Delete, then click Finish.

4.5.4 Removing the NFS Share from Your Server

You can optionally remove the Business Continuity Clustering installation directory as an NFS share. After a successful install, it is needed only if you re-install or uninstall BCC.

  1. Open a shell and run yast2 nfs_server

  2. Select Start Server, then click Next.

  3. Select the Business Continuity Clustering installation directory, click Delete, then click Finish.

4.5.5 Cleaning Up the Business Continuity Clustering Installation Source

Clean up the Business Continuity Clustering installation source by opening a terminal console and running one of the commands below, depending on which method you chose in Step 1.

rm -rf /tmp/bcc_install

or

umount /mnt/iso