Cisco Systems OL-27172-01 Mobility Aid User Manual


 
10-7
Cisco Broadband Access Center 3.8 Administrator Guide
OL-27172-01
Chapter 10 Database Management
Changing Database Location
Changing Database Location
You can move the database from one partition or disk to another on the same system. You might
sometimes want to do this for administrative reasons. This process requires stopping the RDU server and
the Cisco BAC process watchdog.
The process of changing the database location involves changing system parameters and copying the
appropriate files to the new location. You can adjust one or both of the following parameters:
<BPR_DATA>—This parameter is initially set during installation and points to a directory that is
used to store the database, and many other important files, such as logs, configuration files, and so
on.
This directory also stores log data for the Cisco BAC process watchdog, the DPE (if installed on the
same system), RDU, and SNMP agent, among others.
<BPR_DBLOG>—This parameter is initially set during installation and points to the directory that
stores database transaction log files.
The values for the above parameters are recorded in a file called <BPR_DATA>/bpr_definitions.sh. Any
change to this file requires that you restart all BAC components running on the system.
To change the location of the database and transaction logs:
Step 1 Run the /etc/init.d/bprAgent stop command to stop the BAC process watchdog and all Cisco BAC
components.
Step 2 Make a backup copy of <BPR_HOME>/bpr_definitions.sh file.
Step 3 Edit the file and change either or both the <BPR_DATA> and <BPR_DBLOG> parameters to new
directories.
Step 4 Save the file.
Step 5 Copy or move the directory structure and contents of the original <BPR_DATA> and/or
<BPR_DBLOG> directories to new location(s). If you make a copy, ensure that all file and directory
permissions are preserved.
Step 6 Run the /etc/init.d/bprAgent start command to start the BAC process watchdog and all BAC
components.
Step 7 Monitor the appropriate log files to ensure that all components have successfully started.