HP IAP Version 2.0 Administrator Guide (July 2008)

kickstart machine (/install/db2backups). Database les are backed up once a day, and
the local backups are kept for two days before they are deleted.
Master conguration les: There are three master conguration les: BlackBoxConfig.jcml,
Domain.jcml,andtheUserKeyStore le in the /install/configs/primary directory
on the kickstart server. Whenever one of these les is changed and the converter and
Registry Loader are run, the changed les are copied to the PCC machine, to the directory
/usr/local/MasterConfigFiles.
(To run the RegistryLoader script after changing a conguration le, run the following script on
the kickstart server: regloader.pl -cv.)
NOTE:
The le BlackBoxConfig.bct is not included in the backup, because it can be generated
from BlackBoxConfig.jcml (/install/tools/converter/dumpBCT). The script
createBBC.zr generates the .jcml versionthatisthenbackedup.
If the backup ser ver is installed and application backup (APP) is enabled in the BlackBoxConfig.bct
le, the database backup les and copies of the master conguration les are also backed up to tape.
Restoring DB2 and master conguration le backups
The DB2 database can be restored from the backup les on the /db2/VolBack partition on the
database server. When data is lost because the database machine was reinstalled, restore the backup
les rst. Restore the backup les from either the copy on the kickstart server, or tape backups if
application backup is enabled.
The functionality to restore the database backup partition and the database itself is implemented in the
script: /opt/bin/backup/db2BackupUtility on the database server. Obtain detailed usage
information by running the command without any arguments.
Follow these steps to restore the database:
1. Before restoring the database, stop all IAP applications by issuing /opt/bin/stop on the PCC
serv er.
2. Log on to the database system.
3. If the database server was reinstalled, run one of the following commands to restore the
/db2/VolBack partition from either the version stored on the kickstart server or tape backups.
NOTE:
This will delete the content of the VolBack dir ectory.
/opt/bin/backup/db2BackupUtility -restore_from_kickstart
/opt/bin/backup/db2BackupUtility -restore_from_tape
4. To restore the database, make sure the database is up by issuing the command:
su db2udb –c db2start
5. To restore D B2, run the following command. It will ask for a timestamp of a backup to restore.
Normally, the last two backups of the database are kept.
/opt/bin/backup/db2BackupUtility -restore_db2
6. After the installation is nished, run /opt/bin/start on the PCC server to start the IAP and
validate that it operates correctly.
Restoring the master conguration les
Copies of the master conguration les are kept in the /usr/local/MasterConfigFiles
directory on the PCC server. Whenever one of the lesischangedonthekickstartserverand
Administrator Guide
71