Sun Open Telecommunications Platform 1.1 Installation and Administration Guide

ProcedureTo Restore the Provisioning Service Backup to the Target OTP Host

Before You Begin
  1. Log in as root to an OTP host in the cluster.

  2. Type /usr/cluster/bin/scstat -g to determine which host in the cluster is online.

    Make note of the host on which the resource group otp-system-rg is online.

    For example:


    # /usr/cluster/bin/scstat -g | grep Online
        Group: otp-system-rg       otp-node17          Online
     Resource: otp-lhn             otp-node17          Online    Online - LogicalHostname online
     Resource: otp-sps-hastorage-plus otp-node17          Online    Online
     Resource: otp-spsms-rs        otp-node17          Online    Online
     Resource: otp-spsra-rs        otp-node17          Online    Online

    In the above example, the resource group otp-system-rg is running on online host otp-node17.

  3. Log in as root on the OTP host on which the resource group is online.

  4. Disable the Provisioning service resource in the resource group.

    Type the following commands:


    /usr/cluster/bin/scrgadm -c -g otp-system-rg -y RG_system=FALSE
    
    /usr/cluster/bin/scswitch -n -j otp-spsms-rs
  5. Restore the Provisioning service database to the OTP host.

    Type the following command:


    su - spsotp \
    /var/otp/spsotp/N1_Service_Provisioning_System_5.2/server/bin/cr_restore.sh \
    -b /var/otp/spsotp/N1_Service_Provisioning_System_5.2 \
    -f /var/tmp/backup tar file name \
    -l /var/tmp/log file name \
    -t /var/tmp -shutdown yes -nors -noconfig -nokeystore -overwrite yes

    where backup tar file name is the name of the backup tar file created in To Back Up the Provisioning Service on the External OTP Installation Server, and log file name is the name you specify for the log file. The system date and time stamp is automatically appended to the log file name you specify. For example, /var/tmp/restore_log.070411145059

  6. Drop the tables used by the cluster to poll the resource group.

    Type the following commands. Wait for each command to complete before typing the next command.


    su - spsotp \
    /var/otp/spsotp/N1_Service_Provisioning_System_5.2/server/bin/cr_server start
    su - spsotp \
    /var/otp/spsotp/N1_Service_Provisioning_System_5.2/server/bin/roxdbcmd psql rox
    drop user sc_test;

    The semicolon at the end of the drop user sc_test; is required.

  7. Press Cntrl-d to terminate the SQL session.

  8. Recreate the tables used by the cluster to poll the resource group.

    Type the following commands. Wait for each command to complete before typing the next command.


    su - spsotp \
    /opt/SUNWscsps/master/util/db_prep_postgres \
     /var/otp/spsotp/N1_Service_Provisioning_System_5.2/
    
    su - spsotp \
    /var/otp/spsotp/N1_Service_Provisioning_System_5.2/server/bin/cr_server stop
  9. Enable the provisioning service resource in the resource group.

    Type the following commands.


    /usr/cluster/bin/scswitch -e -j otp-spsms-rs
    
    /usr/cluster/bin/scrgadm -c -g otp-system-rg -y RG_system=TRUE
Next Steps

Add the remote agent to the external OTP installation server as described in the next procedure.