The remote agent must be removed from the external OTP installation server as described in To Remove the Remote Agent from the External OTP Installation Server
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 provisioning service on the external OTP installation server must be backed up as described in To Back Up the Provisioning Service on the External OTP Installation Server
Log in as root to an OTP host in the cluster.
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.
Log in as root on the OTP host on which the resource group is online.
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 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
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.
Press Cntrl-d to terminate the SQL session.
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 |
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 |
Add the remote agent to the external OTP installation server as described in the next procedure.