You are on page 1of 31

AAA

V200R002C11
Backup and Recovery Guide
Issue 10
Date 2013-03-15
HUAWEI TECHNOLOGIES CO., LTD.


Copyright Huawei Technologies Co., Ltd. 2013. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without prior written
consent of Huawei Technologies Co., Ltd.

Trademarks and Permissions
and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective holders.

Notice
The purchased products, services and features are stipulated by the contract made between Huawei and the
customer. All or part of the products, services and features described in this document may not be within the
purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information,
and recommendations in this document are provided "AS IS" without warranties, guarantees or representations
of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.






Huawei Technologies Co., Ltd.
Address: Huawei Industrial Base
Bantian, Longgang
Shenzhen 518129
People's Republic of China
Website: http://www.huawei.com
Email: support@huawei.com
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
i
About This Document
Purpose
This document describes how to perform the data backup and recovery, and the logical backup
and recovery of the AAA.
Intended Audience
The intended audience of this document is:
Maintenance engineer
Symbol Conventions
The symbols that may be found in this document are defined as follows.
Symbol Description
DANGER
Indicates an imminently hazardous situation which, if not
avoided, will result in death or serious injury.
WARNING
Indicates a potentially hazardous situation which, if not
avoided, could result in death or serious injury.
CAUTION
Indicates a potentially hazardous situation which, if not
avoided, may result in minor or moderate injury.
TIP
Indicates a potentially hazardous situation which, if not
avoided, could result in equipment damage, data loss,
performance deterioration, or unanticipated results.
NOTICE is used to address practices not related to
personal injury.
AAA
Backup and Recovery Guide About This Document
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
ii
Symbol Description
NOTE
Calls attention to important information, best practices and
tips.
NOTE is used to address information not related to
personal injury, equipment damage, and environment
deterioration.

Update History
Updates between document issues are cumulative. Therefore, the latest document issue contains
all updates made in previous issues.
Issue 10 (2013-03-15)
1.2.1 Configuration Guide is added.
Issue 09 (2012-01-20)
l 1.2.2 Automatically Backing Up Service Data is added.
l 1.2.3 Manually Backing Up Service Data is added.
l 2.1 Overview is added.
Issue 08 (2011-06-09)
l Backing Up All Database Tables is updated.
l 2.3 Recovering All Database Tables is updated.
Issue 07 (2011-02-28)
Backing Up the AAA Operating System Data is updated.
Restoring the AAA Operating System Data is updated.
Issue 06 (2010-03-31)
Add informix database in 2.5 Recovering Databases Logically.
The product version V200R002 is changed to R002C10.
Issue 05 (2009-09-30)
The product name infoX AAA is changed to HUAWEI AAA.
Issue 04 (2009-01-09)
The product name infoX-AAA is changed to infoX AAA.
AAA
Backup and Recovery Guide About This Document
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
iii
Issue 03 (2008-12-10)
Modify test questions.
Issue 02 (2008-11-15)
Guidelines for using the tape drive that connects to the USM server is added.
Issue 01 (2008-06-20)
Initial commercial release.
AAA
Backup and Recovery Guide About This Document
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
iv
Contents
About This Document.....................................................................................................................ii
1 Guidelines for Backing Up Data................................................................................................1
1.1 Overview........................................................................................................................................................................2
1.2 Backing Up Service Data...............................................................................................................................................2
1.2.1 Configuration Guide....................................................................................................................................................2
1.2.2 Automatically Backing Up Service Data.....................................................................................................................3
1.2.3 Manually Backing Up Service Data............................................................................................................................4
2 Guidelines for Recovering Data...............................................................................................12
2.1 Overview......................................................................................................................................................................13
2.2 Combined Recovery.....................................................................................................................................................13
2.3 Recovering All Database Tables..................................................................................................................................13
2.4 Recovering Specified Database Tables........................................................................................................................14
2.5 Recovering Databases Logically..................................................................................................................................15
2.6 Recovering Configuration Files....................................................................................................................................18
2.7 Recovering Bill Files....................................................................................................................................................19
A Introduction to the Backup and Recovery Tool....................................................................20
B Introduction to the Tape Drive................................................................................................22
B.1 Rules for Using the Tape Drive...................................................................................................................................23
B.2 Guidelines for Using the Tape Drive...........................................................................................................................23
C Acronyms and Abbreviations..................................................................................................25
AAA
Backup and Recovery Guide Contents
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
v
1 Guidelines for Backing Up Data
About This Chapter
This chapter describes the guidelines for backing up data, such as databases, configuration files,
and bill files.
NOTE
All passwords in this document are examples. Change them based on your site scenario. Before the system
becomes commercial, change the passwords according to the AAA password change guide.
1.1 Overview
This section describes the rule and cycles of backup.
1.2 Backing Up Service Data
AAA
Backup and Recovery Guide 1 Guidelines for Backing Up Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
1
1.1 Overview
This section describes the rule and cycles of backup.
Backup Rule and Cycles
The backup must be fast and effective.
The recommendations for the backup cycle of each type of data are as follows:
l Databases: Perform a level 0 backup once a day. That is, back up all the data in the database
once a day.
l Bill files: Back up the bill files once a day.
l Configuration files: Back up the configuration files once a day.
1.2 Backing Up Service Data
1.2.1 Configuration Guide
This topic describes how to configure the backup tool.
Procedure
Step 1 Log in to the server where the iSMS or iSCC application is located as the root user.
Step 2 Open the ~AAATools/backup/config.ini file.
NOTE
In the path, ~ indicates the installation path of the system. The default installation path is /export/home/.
For example, The itellindb and SYS passwords setting is as follows:
ORACLE_ITELLINDB_NAME=itellindb #Oracle username of
itellindb
ORACLE_SYS_PASSWD=58996B2724AF909A055330414ECCAB4D #password of system in
sysdb instance
ORACLE_BILLDB_NAME=billdb #Oracle username of
billdb
ORACLE_BILL_PASSWD=10D009F50C3068ADA9F1A3449DF74303 #password of system in
billdb instance
ORACLE_SYS_NAME=SYS #Oracle username of
SYS
ORACLE_SYSDB_SYS_PSWD=3A2073DF46BC2664DDE5D3BDDE7D9019 #Oracle SYS passwd
(dual system)
ORACLE_BILLDB_SYS_PSWD=6192E36032D5934E4F99F1344389F90F #Oracle SYS passwd
(dual system)
ORACLE_SINGLE_SYS_PSWD=3A2073DF46BC2664DDE5D3BDDE7D9019 #Oracle SYS passwd
(single system)
NOTE
Before executing the backup script, check whether the password under itellindb and SYS is the same as
the password in the ~/AAATools/autoinstall/inst_aaa.cfg file.
For example, The DBTYPE setting is as follows:
#DataBase type.default value is oracle.
DBTYPE=ORACLE
AAA
Backup and Recovery Guide 1 Guidelines for Backing Up Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
2
NOTE
For the Oracle database, set DBTYPE to ORACLE.
For the Informix database, set DBTYPE to INFORMIX. Before executing the backup policy, verify that
the DBTYPE value is the same as the database type.
Step 3 Configure tables to be filtered out during full backup in the ~AAATools/backup/
tablesnotbackup.cfg file.
A setting example is as follows:
operator_log
c280_callstatus
accessresultrecord
The operator_log table is set by default.
NOTE
l If no table name is configured, all tables are backed up.
l For Oracle 9i, this function is not supported.
l For Oracle 11g, the specified tables are filtered out during backup in binary mode, and only their table
structures are backed up. Therefore, only the table structures can be restored.
l For Oracle 11g, no data is backed up for the specified tables during backup in text mode.
----End
1.2.2 Automatically Backing Up Service Data
This section describes how to configure a scheduled task to back up the service data manually.
Automatic backup varies according to network architecture.
l Two-node cluster deployment
When the AAA is successfully deployed in a two-node cluster, the backup script is
automatically added to crontab. The backup task is executed at 03:00 each day. The
scheduled task backs up only database information related to itellindb and does not
configure backup configuration files and CDR files.
To back up Billdb, configuration files, and CDR files, add a crontab scheduled task
manually. You are advised to back up configuration files and CDR files manually. The
procedure is as follows:
1. Log in to the server as the root user.
2. Access the directory for storing the backup script.
backup script default path: ~AAATools/backup
In the ~AAATools/backup path, the symbol ~ represents the installation path of the
system. The installation path is /export/home/ by default.
3. Run the crontab -e command.
4. Add information about the scheduled task.
For example, to add the task for backing up configuration files automatically at 04:00
each day, add the following information to crontab:
00 3 * * * /export/home/AAATools/autoinstall/../backup/backup.sh -c > /dev/
null 2>&1
AAA
Backup and Recovery Guide 1 Guidelines for Backing Up Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
3
NOTE
For details about the backup script, access the directory for storing the script on the server and run
the backup.sh -h command.
l Distributed deployment
Database two-node cluster
In the database two-node cluster, the scheduled task for backing up database information
is added to crontab. The task backs up only data related to itellindb. To back up Billdb,
configuration files, and CDR files, create a scheduled task manually.
iSMS two-node cluster
In each node of the iSMS two-node cluster, create a crontab scheduled task for backing
up configuration files automatically.
iSCP node
In each iSCP node, create a crontab scheduled task for backing up configuration files
automatically.
backup script default path: ~AAATools/backup
In the ~AAATools/backup path, the symbol ~ represents the installation path of the system.
The installation path is /export/home/ by default.
NOTICE
If the backup script is used for backup, the default duration for executing the backup script is
three hours (10800 seconds). If the backup duration exceeds three hours because the backup
process is slow or a larger amount of data needs to be backed up, backup engineers must modify
monitor_time in the ~AAATools/backup/config.ini file to ensure that the backup is complete
normally.
1.2.3 Manually Backing Up Service Data
This section describes how to manually use the backup script to manually back up service data.
Manual backup varies according to network architecture.
l Two-node cluster deployment
When the AAA is deployed in a two-node cluster, run the backup script on the servers
running iscc or isms.
l Distributed deployment
When the AAA is deployed in distributed mode, run the backup script in the database two-
node cluster, iSMS two-node cluster, and each iSCP node.
In database two-node cluster, the script backup database date, configuration files of iSCC1,
configuration files of FEP, bill files of iSCC1 and bill files of FEP.
In iSMS two-node cluster, the script backup configuration files of MML Server,
configuration files of WMAS, configuration files of Billproc, configuration files of SMP
and bill files of Billproc.
In each iSCP node, the script backup configuration files of iSCP and bill files of iSCP.
AAA
Backup and Recovery Guide 1 Guidelines for Backing Up Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
4
NOTICE
This section describes how to back up service data when the AAA is deployed in a two-node
cluster.
If the backup script is used for backup, the default duration for executing the backup script is
three hours (10800 seconds). If the backup duration exceeds three hours because the backup
process is slow or a larger amount of data needs to be backed up, backup engineers must modify
monitor_time in the ~AAATools/backup/config.ini file to ensure that the backup is complete
normally.
Combined Backup
This section describes how to perform the combined backup, that is, how to back up multiple
types of data at the same time.
The backup and recovery tool of the AAA supports the combined backup. To perform the
combined backup, an operator needs to add the command parameters for backing up the
corresponding data to the backup command. The following describes the command parameters
of the data to back up.
For example, you can back up the billdb database, configuration files, and bill files by running
the backup.sh -B -c -bf command.
To perform the combined backup, note the following points:
l In the preceding command, -B indicates all the database tables of the billdb database; -c
indicates the configuration files; -bf indicates the bill files.
l To back up the sysdb and billdb databases at the same time, make sure that the iscc and
isms applications coexist on the same server.
l The specified database tables cannot be backed up with other data at the same time.
l The specified database tables of the sysdb database cannot be backed up together with the
specified database tables of the billdb database.
Backing Up All Database Tables
This section describes how to back up table databese in service database which includes sysdb
database and itellindb database and bill database. The service database sysdb belongs to Oracle
database and the service database itellindb belongs to Informix database. The bill database
belongs to Oracle database and Informix database.
Task Description
This task helps you to back up the data of the service database or bill database, such as the records
of all the database tables, table structure, and SQL statements for creating the database
tables ,indexes,stored procedures and functions.
AAA
Backup and Recovery Guide 1 Guidelines for Backing Up Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
5
NOTE
To backup the databases, note the following points:
l Back up the service database on the server where the iscc application is located.
l Back up the bill database on the server where the isms application is located.
l See the introduction to the backup and recovery tool in A Introduction to the Backup and Recovery
Tool.
Procedure
l To back up all the database tables of the service database, do as follows:
1. Log in to the server where the iscc application is located as user root.
2. Access ~AAATools/backup.
NOTE
In the ~AAATools/backup path, the symbol ~ represents the installation path of the system.
The installation path is /export/home/ by default.
3. Back up the database.
# ./backup.sh -l
NOTE
The -l parameter in the command indicates backing up all database tables.
After backup, the AAABackup.tar.Z backup package is generated in ~AAATools/backup.
The package contains the table data and SQL statements for creating all the database tables
of the sysdb database. See the path of the file after backup in A Introduction to the Backup
and Recovery Tool.
l To back up all the database tables of the bill database, do as follows:
1. Log in to the server where the isms application is located as user root.
2. Access ~AAATools/backup.
3. Back up the database.
# ./backup.sh -B
NOTE
The -B parameter in the command indicates the database tables of the bill database.
After backup, the AAABackup.tar.Z backup package is generated in ~AAATools/backup.
The package contains the table data and SQL statements for creating all the database tables
of the bill database. See the path of the file after backup in A Introduction to the Backup
and Recovery Tool.
----End
Backing Up Specified Database Tables
This section describes the function of backing up specified database tables and how to back up
the specified database tables of the service database and bill databases.
Task Description
This task helps you to back up the specified database tables. The data of the database tables to
be backed up includes the records, table structures, and SQL statements for creating database
tables ,indexes,stored procedures and functions.
AAA
Backup and Recovery Guide 1 Guidelines for Backing Up Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
6
The purposes of backing up the specified database tables are as follows:
l To prevent the database table from being deleted or corrupted
l To back up the database table containing a large amount of data independently
Before backing up the specified database tables, prepare the table files. The table files contain
the names of the database tables to be backed up. Store the table files in ~AAATools/backup.
The names of the table files can be set. The format of a table file is as follows:
Table1
Table2
Table3
........
NOTE
To back up specified database tables, note the following points:
l Back up the service database on the server where the iscc application is located.
l Back up the bill database on the server where the isms application is located.
l See the introduction to the backup and recovery tool in A Introduction to the Backup and Recovery
Tool.
Procedure
l To back up the specified database tables of the service database, do as follows:
1. Log in to the servers where the iscc application is located as user root.
2. Access ~AAATools/backup.
3. Back up the database tables.
# ./backup.sh -s filename
After the backup, the AAABackup.tar.Z backup package is generated in ~AAATools/
backup. The package contains the records and SQL statements for creating the specified
database tables of the sysdb database.
l To back up the specified database tables of the bill database, do as follows:
1. Log in to the server where the isms application is located as user root.
2. Access ~AAATools/backup.
3. Back up the database.
# ./backup.sh -b filename
After the backup, the AAABackup.tar.Z backup package is generated in ~AAATools/
backup. The package contains the records and SQL statements for creating the specified
database tables of the sysdb database.
----End
Backing Up Databases Logically
This section describes the function of logical backup and how to logically back up the service
database and bill databases.
Task Description
This task helps you to logically back up the data of all the database tables, such as records and
table structures, SQL statements for creating the database tables and indexes, and logic logs of
AAA
Backup and Recovery Guide 1 Guidelines for Backing Up Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
7
the databases. The logic logs of the databases record all the operations performed since the
database was created.
NOTE
To logically back up the databases, note the following points:
l Logically back up the service database on the server where the iscc application is located.
l Logically back up the bill database on the server where the isms application is located.
l See the introduction to the backup and recovery tool in A Introduction to the Backup and Recovery
Tool.
Procedure
l To logically back up the service database, do as follows:
1. Log in to the server where the iscc application is located as user root.
2. Access ~AAATools/backup.
3. Run the following command to logically back up the database.
# ./backup.sh -L
NOTE
The -L parameter in the command indicates the logical backup.
After the backup, the detailed results are as follows:
Informix database
After the backup, the AAABackup.tar.Z backup package is generated in ~AAATools/
backup. The package contains one or more itellin_online_net.tape.vn (n = 1, 2, 3, ...)
backup files. The data such as logic logs and database tables are stored in the backup
files in binary mode.
NOTE
The number of backup files inthe AAABackup.tar.Z backup package is subject to the capacity
of the database.
Oracle database
After the backup, the AAABackup.tar.Z backup package is generated in ~AAATools/
backup.
l To logically back up the bill database, do as follows:
1. Log in to the server where the isms application is located as user root.
2. Access ~AAATools/backup.
3. Logically back up the database.
# ./backup.sh -L -B
NOTE
In the command, the -L parameter indicates the logical backup and the -B parameter indicates
the bill database.
After the backup, the detailed results are as follows:
Informix database
After the backup, the AAABackup.tar.Z backup package is generated in ~AAATools/
backup. The package contains one or more itellin_online_net.tape.vn (n = 1, 2, 3, ...)
and bill_online_net.tape.vn (n = 1, 2, 3, ...) backup files. The data such as logic logs
and database tables are stored in the backup files in binary mode. If an operator logically
AAA
Backup and Recovery Guide 1 Guidelines for Backing Up Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
8
backs up only the billdb database, the itellin_online_net.tape.vn (n = 1, 2, 3, ...) files
is empty.
NOTE
The number of backup files in the AAABackup.tar.Z backup package is subject to the capacity
of the database.
Oracle database
After the backup, the AAABackup.tar.Z backup package is generated in ~AAATools/
backup.
----End
Backing Up Configuration Files
This section describes how to back up configuration files of each module of the AAA.
Task Description
This task helps you to back up the configuration files, license files, and service files of each
module of the AAA.
The configuration files that the backup script backs up are listed as follows:
l iSCC1
All files in ~/iscc1/config
~/iscc1/.cshrc
l iSCC2
All files in ~/iscc2/config
~/iscc2/.cshrc
All files in ~/iscc2/servicerun
~/iscc2/bin/licensefile.lic
l FEP
All files in ~/fep/config
~/fep/.cshrc
l SMP
~/smp/smp_run/cfg/inetcfg.cfg
~/smp/.cshrc
~/smp/smp_run/bin/licensefile.lic
l MMLServer
All files in ~/ismpmml/sms_run/cfg
All files in ~/ismpmml/sms_run/shell
~/ismpmml/.cshrc
All files in ~/ismpmml/sms_run/license
~/ismpmml/sms_run/license/license.lic
l Billproc
All files in ~/billproc/config
AAA
Backup and Recovery Guide 1 Guidelines for Backing Up Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
9
~/billproc/.cshrc
l WMAS
~/websmap/apps/WEB-INF/conf/wss.cfg
~/websmap/apps/WEB-INF/conf/ftp.ini
~/websmap/.cshrc
The purposes of backing up the configuration files are as follows:
l To back up all the files and data that are used for running the AAA with the database backup
l To recover the AAA by providing only the backup files and working with the Breeze
To back up the configuration files, note the following points:
l If the AAA is deployed in a two-node cluster, back up the configuration files on the server
where the iscc application is located and the server where the isms application is located.
l If the AAA is deployed in distributed mode, run the backup script in the database two-node
cluster, iSMS two-node cluster, and each iSCP nodes.
l See the introduction to the backup and recovery tool in A Introduction to the Backup and
Recovery Tool.
Procedure
Step 1 Log in to the server as user root.
Step 2 Access ~AAATools/backup.
NOTE
In the ~AAATools/backup path, the symbol ~ represents the installation path of the system. The installation
path is /export/home/ by default.
Step 3 Back up the configuration files.
# ./backup.sh -c
NOTE
The -c parameter in the command indicates the configuration files.
After backup, the AAABackup.tar.Z backup package is generated in ~AAATools/backup. The
package contains the configuration file of each module.
----End
Backing Up Bill Files
This section describes how to back up the bill files in the AAA.
Task Description
This task helps you to back up all the bill files in the AAA.
NOTE
To back up the bill files, note the following points:
l Back up the bill files on the server where the isms application is located.
l See the introduction to the backup and recovery tool in A Introduction to the Backup and Recovery
Tool.
AAA
Backup and Recovery Guide 1 Guidelines for Backing Up Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
10
Procedure
Step 1 Log in to the server as user root.
Step 2 Access ~AAATools/backup.
Step 3 Run the following command to back up the bill files.
# ./backup.sh -bf
NOTE
The -bf parameter in the command indicates backup the bill files.
After backup, the AAABackup.tar.Z backup package is generated in ~AAATools/backup.
----End
AAA
Backup and Recovery Guide 1 Guidelines for Backing Up Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
11
2 Guidelines for Recovering Data
About This Chapter
This chapter describes the guidelines for recovering lost data.
2.1 Overview
2.2 Combined Recovery
This section describes how to perform the combined recovery, that is, how to recover multiple
types of data at the same time.
2.3 Recovering All Database Tables
This section describes how to recover all the database tables of the service database and bill
databases.
2.4 Recovering Specified Database Tables
This section describes how to recover specified database tables.
2.5 Recovering Databases Logically
This section describes how to logically recover the service and bill databases.
2.6 Recovering Configuration Files
This section describes how to recover configuration files.
2.7 Recovering Bill Files
This section describes how to recover bill files.
AAA
Backup and Recovery Guide 2 Guidelines for Recovering Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
12
2.1 Overview
The restore operation is executed when an exception occurs in an office.
NOTICE
To restore data, contact Huawei maintenance engineers.
2.2 Combined Recovery
This section describes how to perform the combined recovery, that is, how to recover multiple
types of data at the same time.
The backup and recovery tool of the AAA supports the combined recovery. To perform the
combined recovery, an operator needs to add the command parameters for recovering the
corresponding data. The following describes the command parameters of the data to recover.
For example, you can recover the billdb database, configuration files, and bill files by running
the restore.sh -B -c -bf command.
NOTE
To perform the combined recovery, note the following points:
l In the preceding command, -B indicates all the database tables of the billdb database; -c indicates the
configuration files; -bf indicates the bill files.
l To recover the sysdb and billdb databases at the same time, make sure that the iscc and isms
applications coexist on the same server.
l The specified database tables cannot be recovered with other data at the same time.
l The specified database tables of the sysdb database and the specified database tables of the billdb
database cannot be recovered at the same time.
2.3 Recovering All Database Tables
This section describes how to recover all the database tables of the service database and bill
databases.
Task Description
This task helps you to recover all the database tables of the service database and bill database.
AAA
Backup and Recovery Guide 2 Guidelines for Recovering Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
13
NOTE
To recover the database tables, note the following points:
l Recover the database tables of the service database on the server where the iscc application is
located;Recover the database tables of the bill database on the server where the isms application is
located.
l Make sure that the corresponding backup packages exist in ~AAATools/backup before recovering the
databases.
l See the introduction to the backup and recovery tool in A Introduction to the Backup and Recovery
Tool.
Procedure
l To recover all the database tables of the service database, do as follows:
1. Log in to the servers where the iscc application is located as user root.
2. Transmit the AAABackup.tar.Z backup package to ~AAATools/backup of the server
in binary mode.
3. Access ~AAATools/backup.
4. Extract files from the AAABackup.tar.Z backup package .
# uncompress -vf AAABackup.tar.Z
# tar -vxf AAABackup.tar
5. Recover the database tables.
# ./restore.sh -l
NOTE
The -l parameter in the command indicates recovering all database tables.
l To recover all the database tables of the bill database, do as follows:
1. Log in to the server where the isms application is located as user root.
2. Transmit the AAABackup.tar.Z backup package to ~AAATools/backup of the server
in binary mode.
3. Access ~AAATools/backup.
4. Extract files from the backup package.
# uncompress -vf AAABackup.tar.Z
# tar -vxf AAABackup.tar
5. Recover the database tables.
# ./restore.sh -B
NOTE
The -B parameter in the command indicates the database tables of the bill database.
----End
2.4 Recovering Specified Database Tables
This section describes how to recover specified database tables.
Task Description
This task helps you to recover the corrupted or deleted specified database tables that are backed
up.
AAA
Backup and Recovery Guide 2 Guidelines for Recovering Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
14
The recovery of the specified database tables needs the corresponding table files. You can use
the table files created when you back up the database tables to perform the recovery.
NOTE
To recover the specified database tables, note the following points:
l Recover the specified database tables of the service database on the server where the iscc application is
located.
l Recover the specified database tables of the bill database on the server where the isms application is located.
l See the introduction to the backup and recovery tool in A Introduction to the Backup and Recovery
Tool.
Procedure
l To recover the specified database tables of the service database, do as follows:
1. Log in to the servers where the iscc application is located as user root.
2. Transmit the backup package of the specified database tables to ~AAATools/backup.
3. Access ~AAATools/backup.
4. Recover the specified database tables.
# ./restore.sh -s filename
l To recover the specified database tables of the bill database, do as follows:
1. Log in to the server where the isms application is located as user root.
2. Transmit the backup package of the specified database tables to ~AAATools/backup.
3. Access ~AAATools/backup.
4. Recover the specified database tables.
# ./restore.sh -b filename
----End
2.5 Recovering Databases Logically
This section describes how to logically recover the service and bill databases.
Task Description
This task helps you to logically recover the database to any status since the database was created.
That is, all the operations performed after the database was created can be recovered.
NOTE
To logically recover the databases, note the following points:
l Recover the service database on the server where the iscc application is located.
l Recover the bill database on the server where the isms application is located.
l See the introduction to the backup and recovery tool in A Introduction to the Backup and Recovery
Tool.
Procedure
l To recover the itellindb database, do as follows:
AAA
Backup and Recovery Guide 2 Guidelines for Recovering Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
15
NOTE
Before the recovery, do as follows:
l Make sure that the onconfig.itellin.bak configuration file exists in /opt/informix/etc.
l Close the database because the Informix database adopts the offline recovery mode.
1. Log in to the server where the iscc application is located as user root.
NOTE
If user does not exist on the server where the iscc application is located, you can switch the device
group to a specified node throw the following commands:
scswitch -z -g rg_iscc -h itellin1
2. Modify the onconfig.itellin.bak configuration file in /opt/informix/etc.
Set the TAPEDEV parameter in the configuration file to ~AAATools/backup/
AAABackup/itellin_online_net.tape.
Set the TAPESIZE parameter in the configuration file to 2048000.
3. Access /export/home/opt/informix/backup.
4. Extract files from the AAABackup.tar.Z backup package .
# uncompress -vf AAABackup.tar.Z
# tar -vxf AAABackup.tar
The AAABackup folder is generated, which contains the backup files used for
recovery.
5. Copy the backup files.
Access the AAABackup folder, copy the itellin_online_net.tape.v1 file, and then
modify the permission to use the file.
# cp itellin_online_net.tape.v1 itellin_online_net.tape
# chown informix:informix itellin_online_net.tape
# chmod 660 itellin_online_net.tape
6. Switch to the informix user.
# su - informix
7. Set the environment variable and edit .cshrc, Run the following command:
vi .cshrc
Edit the following contents in .cshrc.
% setenv INFORMIXSERVER itellin_online_net
% setenv ONCONFIG onconfig.itellin.bak
8. Run the following command to make the configuration file take effect.
source .cshrc
9. Close the database.
% onmode -ky
10. Recover the itellindb database.
% ontape -r
The following information is displayed:
Please mount tape 1 on /export/home/AAATools/backup/AAABackup/
itellin_online_net.tape and press Return to continue ...
11. Press Enter.
The following information is displayed:
Continue restore?(y/n)
12. If you do not need to recover other files, type n and press Enter.
The following information is displayed:
AAA
Backup and Recovery Guide 2 Guidelines for Recovering Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
16
Do you want to back up the logs? (y/n)
13. If you do not need to back up logs, type n and press Enter.
The following information is displayed:
Please mount tape 2 on /export/home/AAATools/backup/AAABackup/
itellin_online_net.tape and press Return to continue ...
NOTE
The preceding information is displayed when the size of database files is large and multiple
itellin_online_net.tape.vn (n = 1, 2, 3...) backup files coexist.
14. Start the login tool again and log in as user root to access ~AAATools/backup.
15. Copy the itellin_online_net.tape.v2 file.
cp itellin_online_net.tape.v2 itellin_online_net.tape
16. On the first server, press Enter.
The following information is displayed:
Restore a level 1 archive (y/n)
NOTE
If more backup files need to be recovered, repeat step 11 to step 16.
17. If you do not need to recover other files, type n and press Enter.
The following information is displayed:
Do you want to restore log tapes? (y/n)
18. If you do not need to recover logs, type n and press Enter.
19. Start the database.
Run the following command:
oninit
20. Check the database status.
Run the following command:
% onstat -
If the following information is displayed, it indicates that the database is recovered
successfully.
IBM Informix Dynamic Server Version 9.40.UC2 -- On-Line -- Up
00:02:31 -- 251904 Kbytes
If the following information is displayed, it indicates that the database is being
recovered. Wait for a moment.
IBM Informix Dynamic Server Version 9.40.UC2 -- Fast Recovery -- Up
00:01:11 -- 251904 Kbytes.
If the following information is displayed, run the onmode -m command to switch
the database from the single-user state to the multi-user state.
IBM Informix Dynamic Server Version 9.40.UC2 -- Quiescent -- Up
00:02:09 -- 251904 Kbytes
l To recover the sysdb database, do as follows:
1. Log in to the servers where the iscc application is located as user root.
2. Access ~AAATools/backup.
3. Extract files from the backup package.
# uncompress -vf AAABackup.tar.Z
# tar -vxf AAABackup.tar
4. Recover the database.
./restore.sh -L
l Logically recovering the bill database of Informix
AAA
Backup and Recovery Guide 2 Guidelines for Recovering Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
17
The recovery operations of the billdb database are the same as that of the itellindb database.
In addition, you need to note the following points:
Recover the database on the server where the isms application is located.
Set the TAPEDEV parameter in the onconfig.itellin.bak configuration file to
~AAATools/backup/AAABackup/itellin_online_net.tape.
NOTE
Set the value of the TAPEDEV parameter according to the actual situation.
The file generated after the logical backup of the billdb database is called
bill_online_net.tape.vn (n = 1, 2, 3...).
Set the database to be recovered to bill_online_net.
l Logically recovering the bill database of Oracle.
1. Log in to the servers where the isms application is located as user root.
2. Access ~AAATools/backup.
3. Extract files from the backup package.
# uncompress -vf AAABackup.tar.Z
# tar -vxf AAABackup.tar
4. Recover the database.
./restore.sh -L -B
----End
2.6 Recovering Configuration Files
This section describes how to recover configuration files.
Task Description
This task helps you to recover the configuration files, service files, and license files of each
module of the AAA.
NOTE
l Recover the configuration files on the server where the iscc application is located and on the server
where the isms application is located.
l See the introduction to the backup and recovery tool in A Introduction to the Backup and Recovery
Tool.
Procedure
Step 1 Log in to the server as user root.
Step 2 Transmit the AAABackup.tar.Z backup package to ~AAATools/backup of the servers in binary
mode.
Step 3 Access ~AAATools/backup.
Step 4 Extract files from the AAABackup.tar.Z backup package .
# uncompress -vf AAABackup.tar.Z
# tar -vxf AAABackup.tar
AAA
Backup and Recovery Guide 2 Guidelines for Recovering Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
18
Step 5 Recover the configuration files.
# ./restore.sh -c
----End
2.7 Recovering Bill Files
This section describes how to recover bill files.
Task Description
NOTE
l Recover the bill files on the server where the isms application is located.
l See the introduction to the backup and recovery tool in A Introduction to the Backup and Recovery
Tool.
Procedure
Step 1 Log in to the server as user root.
Step 2 Transmit the AAABackup.tar.Z backup package to ~AAATools/backup of the servers in binary
mode.
Step 3 Access ~AAATools/backup.
Step 4 Extract files from the AAABackup.tar.Z backup package .
# uncompress -vf AAABackup.tar.Z
# tar -vxf AAABackup.tar
Step 5 Run the following command to recover the bill files.
# ./restore.sh -bf
NOTE
The -bf parameter in the command indicates recover the bill files.
----End
AAA
Backup and Recovery Guide 2 Guidelines for Recovering Data
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
19
A Introduction to the Backup and Recovery
Tool
This chapter describes how to obtain the backup and recovery tool of the AAA, and the functions
and modules of the tool.
Obtaining Process
The backup and recovery tool is integrated in the Breeze and stored in ~AAATools/backup.
NOTE
In the ~AAATools/backup path, the symbol ~ represents the installation path of the system. The installation
path is /export/home/ by default.
To obtain the backup and recovery tool in the ~AAATools/backup path.
Path
The path for storing the backup data is same to installation path.
NOTE
The path for storing the backup data is ~AAATools/backup by default.
Function
The functions of the backup and recovery tool are as follows:
l Backing up the database records, logic information, configuration files, and bill files of the
AAA.
l Recovering the backup data when the database of the AAA is faulty and the data is missing.
Module Function
Table A-1 describes the detailed functions of each module of the backup and recovery tool.
AAA
Backup and Recovery Guide A Introduction to the Backup and Recovery Tool
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
20
Table A-1 Functions of each module of the backup and recovery tool
Module Name Function Description
backup.sh Indicates the main program of the backup and recovery tool.
Run the program as user root to back up the database and files.
backup_function Indicates the library file of functions that is invoked by the backup
and recovery tool.
monitor Indicates the monitor process of the backup and recovery tool.
restore.sh Indicates the main program of the backup and recovery tool.
restore_function Indicates the library file of feature functions that is invoked by the
backup and recovery tool.
watch.sh Indicates the process for monitoring the backup.
If the backup process times out, it stops automatically.
config.ini Indicates the configuration file of the backup and recovery tool. The
file is used to set the storing path and the information related to the
database.
NOTE
You can retain the default values of the parameters in the configuration file.
backup.log Indicates the log of restore.sh.
restore.log Indicates the log of backup.sh.
AAA
Backup and Recovery Guide A Introduction to the Backup and Recovery Tool
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
21
B Introduction to the Tape Drive
This chapter describes the rules and methods of using a tape drive to back up data.
B.1 Rules for Using the Tape Drive
This section describes the rules for using the tape drive.
B.2 Guidelines for Using the Tape Drive
This section describes how to connect the tape drive and the server, and how to store the backup
data on tape.
AAA
Backup and Recovery Guide B Introduction to the Tape Drive
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
22
B.1 Rules for Using the Tape Drive
This section describes the rules for using the tape drive.
To back up data by using a tape drive, follow the rules in the following:
l Do not use the same tape repeatedly. This will prevent the tape drive from being corrupted.
l When you complete the backup, take the tape out and attach a label on the tape about the
backup. For example, you can record the date on the label. Store the tape properly.
B.2 Guidelines for Using the Tape Drive
This section describes how to connect the tape drive and the server, and how to store the backup
data on tape.
Instructions
You can free up disk space by storing backup files on tapes. In this case, the disk space can be
used repeatedly.
Connect the tape drive and the server before you back up or recover data by using a tape drive.
The following describes how to prepare for the backup and recovery of data by using a tape
drive.
Procedure
l To prepare for the backup that uses the tape drive, do as follows.
NOTE
Perform the following operations on the active node and standby node.
1. Connect the tape drive to the server and turn on the switch at the back of the tape drive.
2. Insert a tape into the tape drive.
Several seconds later, the Tape indicator light blinks indicating that the tape is found.
After the indicator light blinks for several times, it remains on. Then the tape drive is
ready for backup.
3. Log in to the server as user root.
4. View the contents on the tape.
tar tvf /dev/rmt/*
5. Store the backup file on tape.
tar -cvf Path of the tape drive(/dev/rmt/0m) ~AAATools/backup/backup files
NOTE
If the tape drive does not respond, perform the following steps to reload the system hardware:
1. Shut down the server to the OK state. Restart the server when the service running is not affected.
shutdown -i0 -g0 -y
2. Restart the server in the OK state.
boot -r
l To prepare for the recovery that uses the tape drive, do as follows.
AAA
Backup and Recovery Guide B Introduction to the Tape Drive
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
23
NOTE
Perform the following operations on the active node and standby node.
1. Connect the tape drive to the server. For details, see the preceding preparations for
backup.
2. Log in to the server as user root.
3. Access the path where temporary backup files are stored.
You can specify the path. The default path is ~AAATools/backup.
4. Insert a tape to the tape drive. Copy the backup files to the path of the temporary
backup files.
tar -xvf /dev/rmt/0n
----End
AAA
Backup and Recovery Guide B Introduction to the Tape Drive
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
24
C Acronyms and Abbreviations
A
AAA Authentication, Authorization and Accounting
ATAE Advanced Telecommunication Application Environment

S
SCSI Small Computer Systems Interface
SSH Secure Shell

U
USM Universal Server Manager
AAA
Backup and Recovery Guide C Acronyms and Abbreviations
Issue 10 (2013-03-15) Huawei Proprietary and Confidential
Copyright Huawei Technologies Co., Ltd.
25