N1 Grid Service Provisioning System 5.0 System Administration Guide

ProcedureHow to Restore a Master Server

Before You Begin

Before performing a restore, you must have an installation of the Master Server that contains no data.

Steps
  1. Log into the machine as the user who installed the provisioning system.

  2. Stop the Master Server.


    %N1SPS-home/server/bin/cr_server stop
    
  3. Change to the directory where the backup script is located.


    % cd N1SPS-home/server/bin
    

    N1SPS-home is the home directory of the application.

  4. Start the restoration.


    % ./cr_restore.sh options
    

    The following options are available for use with the cr_restore.sh command.


    Note –

    By default, the resource store, database contents, data files, configuration data, and keystores are restored. You can skip restoring these components by using the appropriate command-line arguments.


    -b

    Master Server base directory

    If you do not use the -b option to specify a directory to in which to restore the backup files, the files are put in the current directory, N1SPS4.1–home/server/bin. If you do not have write permissions for this directory, the software generates an error.

    -q

    Quiet. No informative messages are printed

    -nors

    Skip the Resource Store restore

    -nodb

    Skip the Database, Plug-in, Custom Task restore

    -noconfig

    Skip the Configuration and Keystore restore

    -nokeystore

    Skip the Keystore restore

    -f backupfile

    Restore the contents of the backupfile file

    -l logfile

    Write log output to the logfile file instead of the default logfile file

    -t temp_directory

    Use the temp_directory directory to save temporary files

    -overwrite yes

    Overwrite the existing data during restore

    -shutdown yes

    Shutdown the Master Server without prompting the user

    -u

    Print this information

    -h

    Print this information

    The script verifies that the backup files do not contain any errors. The script warns that if you proceed the Master Server process will stop, if it is not already stopped. Any tasks, such as searches, plans, and comparisons, that are in progress will also stop.

  5. Type y to proceed.

    The script warns that any data currently in the databases will be overwritten with the data in the backup files.

  6. Type y to proceed.

    The restoration proceeds. The script starts the Master Server.