Sun Open Telecommunications Platform 1.1 Installation and Administration Guide

ProcedureTo Restore the Provisioning Service Backup To The Restore Target OTP Host

Before You Begin
  1. Log in as root to the restore target OTP host.

    This is the OTP host from which you removed the remote agent as described in To Remove the Remote Agent from the Restore Target OTP Host.

  2. 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
  3. Restore the Provisioning service database.

    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 file you created in To Back Up the Provisioning Service on the Source OTP Host, and log file name is the name you specify for the log file.

  4. Drop and recreate the tables used by the cluster to poll the resource group.

    Type the following commands:


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

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

  5. Type Ctrl-d to terminate the SQL session.

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


    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
  7. Enable the provisioning service resource in the resource group.


    /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 backup source OTP host as described in the next procedure.