The remote agent must be removed from the backup source OTP host as described in To Remove the Remote Agent from the Backup Source OTP Host
The remote agent must be removed from the restore target OTP host as described in To Remove the Remote Agent from the Restore Target OTP Host
The backup source OTP host provisioning service must be backed up as described in To Back Up the Provisioning Service on the Source OTP Host.
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.
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 |
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.
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.
Type Ctrl-d to terminate the SQL session.
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 |
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 |
Add the remote agent to the backup source OTP host as described in the next procedure.