Sun N1 System Manager 1.3 Discovery and Administration Guide

ProcedureTo Restore Database and Configuration Files

This procedure describes how to restore the N1 System Manager database and configuration files to a newly installed management server.

The N1 System Manager service is restarted several times during this process. Therefore, perform these steps only when the N1 System Manager is not currently running jobs.

These steps require that the N1 System Manager is not yet installed on the server. Also, preferably, a new installation of either Linux or the Solaris OS should be installed on the server.

The n1smbackup.sh script backs up only the N1SM database and configuration files. The actual OS files are not backed up. After running n1smrestore.sh, OS distributions and OS profiles that exist in the database will need to be deleted and recreated.

Before You Begin
Steps
  1. Log in to the management server as superuser (root).

    See To Access the N1 System Manager Command Line for details.

  2. Run the n1smconfig utility.


    # /usr/bin/n1smconfig
    

    The current system configuration appears, and lists the network interfaces. You are then asked to enter the interface for the provisioning network.

  3. Specify the port for the provisioning network interface.

    The available interfaces are listed in the prompt. Type the interface name that is to be used for the provisioning interface, for example eth0, hme0, bge0 and so on depending on the machine architecture and installed OS.

  4. Answer the remaining questions in the n1smconfig utility.

    Note that the remaining answers given in n1smconfig will be overwritten by the following steps in this procedure. It is important to provide the answers and to apply the new settings in order to complete the restore process.

  5. Create the /var/tmp/n1smbackup directory on the management server.


    # mkdir /var/tmp/n1smbackup
    
  6. Copy the n1smbackup.tgz backup file to the /var/tmp/n1smbackup directory.

  7. Restore the N1 System Manager database and configuration files:


    # /opt/sun/n1gc/bin/n1smrestore.sh -f /var/tmp/n1smbackup/n1smbackup.tgz
    
    This program will restore Sun N1SM from backup files.
    
    The N1SM services will be restarted and N1SM will be interrupted during 
    the process.
    
    All files related to N1SM, including network interface 
    configuration, will be restored. Therefore, it is recommended 
    that these files are restored to an identical hardware setup. 
    
    The restore process will take about 8 minutes.
    
    Would you like to continue? [y/N] y
    
    Restoring configuration files (done)
    Restoring SCS database (done)
    Restoring SCS database (done)
    N1SM restarted.
    N1SM restore completed.
    Run n1smconfig and verify that N1SM settings are correct.
  8. Verify that the N1 System Manager configuration settings are still valid or modify them as appropriate.


    # /usr/bin/n1smconfig
    
  9. Verify that the N1 System Manager is working as expected, using the browser interface or n1sh command line.

    See To Access the N1 System Manager Command Line for details.

  10. (Optional) Remove any OS distributions or OS profiles that exist on the management server before creating new OS distributions and OS profiles.


    N1-ok> show os all
    ID     Name                  Type          Version
    2      s10                   solaris       solaris10x86
    
    N1-ok> show osprofile
    ID     Name                       Distribution
    2      s10                        s10
    
    N1-ok> delete osprofile s10
    N1-ok> delete os s10
    N1-ok> show os
    No items found.
    N1-ok> show osprofile
    No items found.
Next Steps

You will need to copy new OS distributions and create new OS profiles. See Copying OS Distributions and Flash Archives in Sun N1 System Manager 1.3 Operating System Provisioning Guide and To Create an OS Profile in Sun N1 System Manager 1.3 Operating System Provisioning Guide. For OS distributions and profiles based on the Microsoft Windows operating system, see Chapter 3, Provisioning Windows Operating Systems, in Sun N1 System Manager 1.3 Operating System Provisioning Guide.

Alternatively, restore your previous OS distributions as described in To Backup and Restore OS Distributions.