Sunteți pe pagina 1din 18

iManager N2000 DMS Datacomm Network Management System Administrator Guide

Contents

Contents
9 Database Backup and Restoration ..........................................................................................9-1
9.1 Database Backup Tool...................................................................................................................................9-2 9.1.1 Backup Policy ......................................................................................................................................9-2 9.1.2 Backup Medium...................................................................................................................................9-2 9.1.3 Backup Path .........................................................................................................................................9-2 9.1.4 Starting the Database Backup Tool ......................................................................................................9-3 9.2 Manual Backup .............................................................................................................................................9-5 9.2.1 Manual Backup Flow Chart .................................................................................................................9-5 9.2.2 Configuring a Database Set..................................................................................................................9-7 9.2.3 Configuring a Backup Device..............................................................................................................9-8 9.2.4 Backing Up the DMS Database Manually ...........................................................................................9-9 9.3 Automatic Backup.........................................................................................................................................9-9 9.3.1 Automatic Backup Flow Chart.............................................................................................................9-9 9.3.2 Configuring an Automatic Backup Policy ......................................................................................... 9-11 9.3.3 Configuring an Automatic Backup Task ............................................................................................9-12 9.4 Restoring the Database................................................................................................................................9-12 9.4.1 Restoring Database Flow Chart .........................................................................................................9-12 9.4.2 Stopping DMS Service Processes ......................................................................................................9-13 9.4.3 Restoring Backup Date ......................................................................................................................9-14 9.4.4 Restarting DMS Service Processes ....................................................................................................9-14 9.5 Query the Backup and Restoration Logs.....................................................................................................9-15 9.6 Viewing Database Details ...........................................................................................................................9-15

Issue 02 (2007-10-15)

Huawei Technologies Proprietary

Figures

iManager N2000 DMS Datacomm Network Management System Administrator Guide

Figures
Figure 9-1 Database backup tool interface .........................................................................................................9-4 Figure 9-2 Adding servers ..................................................................................................................................9-4 Figure 9-3 User login interface...........................................................................................................................9-5 Figure 9-4 Manual backup flow chart ................................................................................................................9-6 Figure 9-5 Configuring the database set.............................................................................................................9-7 Figure 9-6 Modifying the backup device ...........................................................................................................9-8 Figure 9-7 Automatic backup flow...................................................................................................................9-10 Figure 9-8 Adding the automatic backup policy............................................................................................... 9-11 Figure 9-9 Restoring database flow chart.........................................................................................................9-13 Figure 9-10 Viewing database details...............................................................................................................9-16

ii

Huawei Technologies Proprietary

Issue 02 (2007-10-15)

iManager N2000 DMS Datacomm Network Management System Administrator Guide

9 Database Backup and Restoration

9
Section

Database Backup and Restoration

About This Chapter


The following table lists the contents of this chapter. Describes This section describes the database backup tool. This section describes how to back up the database manually. This section describes how to configure the automatic backup database. This section describes how to restore data in the database. This section describes how to check the backup log and the restored log. This section describes how to view the database information.

9.1 Database Backup Tool 9.2 Manual Backup 9.3 Automatic Backup 9.4 Restoring the Database 9.5 Query the Backup and Restoration Logs 9.6 Viewing Database Details

Issue 02 (2007-10-15)

Huawei Technologies Proprietary

9-1

9 Database Backup and Restoration

iManager N2000 DMS Datacomm Network Management System Administrator Guide

9.1 Database Backup Tool


With the database backup tool, you can back up and restore the DMS database to protect the data. With this tool, you can also maintain the NMS database remotely to make the backup and restoration operation conveniently. The basic functions of the database backup tool are as follows:
z

Viewing Information You can view the general information of the DMS database and logs operated by the backup tool.

Configuring Parameters You can set the parameters for the backup, including the Backup Device, Database Set and Auto Backup Policy.

Performing Tasks You can back up and recover the database, including Manual Backup, Auto Backup Task and Restore Database.
The database backup tool is provided as a stand-alone component. This function is supported only when this component is selected during the installation of the DMS.

9.1.1 Backup Policy


The database backup tool supports two backup policies as follows:
z z

Manual backup Scheduled (automatic) backup


Every day: The system backs up data every day. Every week: The system backs up data on a specific day every week. Every month: The system backs up data on a specific day every month.

9.1.2 Backup Medium


The database backup tool backs up data to:
z z

Disk Tape

9.1.3 Backup Path


For the disk backup, the default backup directory of the DMS is $N2000ROOT/backup. In the same database set, up to n (4 by default) backup data files can be stored.
In the same database set, the maximum times of data backup are four. If exceeds four, the system prompts you whether to delete the earliest backup and add a new backup.

9-2

Huawei Technologies Proprietary

Issue 02 (2007-10-15)

iManager N2000 DMS Datacomm Network Management System Administrator Guide

9 Database Backup and Restoration

9.1.4 Starting the Database Backup Tool


Description
Before backing up the database, you need to start the database backup tool.

Precaution
Before starting the database backup tool, note the following:
z z z

The DMS server runs normally. The backup process of the database runs normally. The client of the database backup tool communicates well with the DMS server.

Procedure

The database backup tool allows only one user to log in to the server database. Step 1 The mode of starting the Windows OS and the Solaris OS are as follows respectively.
z

In Windows, choose Program > iManager N2000 > N2000 Database Backup Tool in the Start menu. Or double-click the icon shown in Figure 9-1. to start the database backup tool, as

In the Solaris OS, input the following in the terminal window.


# cd /opt/n2000/client # ./bktool.sh

Start the database backup tool.

Issue 02 (2007-10-15)

Huawei Technologies Proprietary

9-3

9 Database Backup and Restoration

iManager N2000 DMS Datacomm Network Management System Administrator Guide

Figure 9-1 Database backup tool interface

Step 2 Choose System > Add Server and configure the DMS server name and IP address as shown in Figure 9-2. Click Add. Figure 9-2 Adding servers

Step 3 On the navigation tree of the server, choose the server to be logged in to. Step 4 In the Access Password textbox, enter the login password of the DMS database user N2000user, as shown in Figure 9-3.

9-4

Huawei Technologies Proprietary

Issue 02 (2007-10-15)

iManager N2000 DMS Datacomm Network Management System Administrator Guide

9 Database Backup and Restoration

Figure 9-3 User login interface

For details about the database user N2000user, refer to Chapter 2 "User Management."

Step 5 Click OK. ----End

9.2 Manual Backup


9.2.1 Manual Backup Flow Chart
Figure 9-4 shows the manual backup flow chart.

Issue 02 (2007-10-15)

Huawei Technologies Proprietary

9-5

9 Database Backup and Restoration

iManager N2000 DMS Datacomm Network Management System Administrator Guide

Figure 9-4 Manual backup flow chart


Start

Start the database backup tool

Configure the database server

Configure the database set

Modify the backup path?

No

Yes Configure a backup device

Back up the DMS database manually

End

For details of starting the database backup tool and configuring the database server, see 9.1.5 "Starting the Database Backup Tool xe "Starting the Database Backup Tool" ."

9-6

Huawei Technologies Proprietary

Issue 02 (2007-10-15)

iManager N2000 DMS Datacomm Network Management System Administrator Guide

9 Database Backup and Restoration

9.2.2 Configuring a Database Set


Description
You can realize the batch database backup and restoration by configuring the database set. According to different requirements for backup and restoration, you can combine one or more databases to different sets to enable these sets to be shared for backup or restoration tasks. One database can be distributed to several sets.

Precaution
The first character of the name of the database set cannot be the underline "_". The names of the database sets must be different from each other.

Procedure
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose Configuration > Database Set. Or in the navigation tree, choose the Configuration > Database Set node. Step 3 Click Add and enter the configuration page, as shown in Figure 9-5. Figure 9-5 Configuring the database set

Step 4 In the Database Set Name textbox, enter the name of the database set to be created. Step 5 In the Database For Selection textbox, select the database to be contained and then click .

Clicking

, you can select all databases.

Issue 02 (2007-10-15)

Huawei Technologies Proprietary

9-7

9 Database Backup and Restoration

iManager N2000 DMS Datacomm Network Management System Administrator Guide

Step 6 Click Finish, the Prompt dialog box appears. Click OK to complete the creation of the database set. ----End

9.2.3 Configuring a Backup Device


Description
Modify the backup path of the backup device. When you use the disk for backup, the DMS default path is $N2000ROOT/backup.

Precaution
When you use the tape for backup, you need to initialize the tape.

Procedure
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose Configuration > Backup Device. Or in the navigation tree, choose the Configuration > Backup Device node. The configuration page is displayed. Step 3 Select the backup device (here takes disk as an example) and click Modify. The Modify backup device interface is displayed, as shown in Figure 9-6. Figure 9-6 Modifying the backup device

The backup device of the tape type can be used only after the device is initialized.

Step 4 In the Modify backup device box, you can modify the path to back up the device. If Enable Remote Copy Function is selected, you set the path for the remote copy function.

9-8

Huawei Technologies Proprietary

Issue 02 (2007-10-15)

iManager N2000 DMS Datacomm Network Management System Administrator Guide

9 Database Backup and Restoration

Step 5 Click Modify. In the Prompt dialog box that appears, click OK to complete the modification of the backup path.
The method to modify the tape path is the same with that of the backup path.

----End

9.2.4 Backing Up the DMS Database Manually


Description
Back up data in the DMS database manually. Perform the backup operation manually when the DMS server has low load.

Prerequisites
z z

The database set is configured. The backup device is configured.

Precaution
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose Operation > Manual Backup. Or in the navigation tree, choose the Operation > Manual Backup node.The Select Database Set To Backup box is displayed. Step 3 Choose the database set to be backed up. Click Next. Step 4 Choose the device to be backed up.
z z

If the backup device is disk, click Next to perform Step 5. If the backup device is tape, perform Step 6.

Step 5 Choose backup type.


z z

backup: In this mode, the data is backed up from database to data files. bcpout: In this mode, the database user tables are copied to a data files. This mode cannot be used as a general database backup.

Step 6 Click Start to back up data to the specified path. ----End

9.3 Automatic Backup


9.3.1 Automatic Backup Flow Chart
Scheduled backup realizes periodic backup of data. The system automatically backs up data according to the backup policy without manual intervention. Figure 9-7 shows the automatic backup flow chart.

Issue 02 (2007-10-15)

Huawei Technologies Proprietary

9-9

9 Database Backup and Restoration

iManager N2000 DMS Datacomm Network Management System Administrator Guide

Figure 9-7 Automatic backup flow


Start

Start the database backup tool

Configure the database server

Configure the database set

Configure an automatic backup policy

Modify the backup path?

No

Yes Configure a backup device

Configure an automatic backup task

Back up the DMS database automatically

End

For details of starting the database backup tool and configuring the database server, see section 9.1.4 "Starting the Database Backup Tool xe "Starting the Database Backup Tool" ." For details of configuring the database set, see section 9.2.2 "Configuring a Database Set." For details of configuring the backup device, see section 9.2.3 "Configuring a Backup Device xe "Configuring a Backup Device" ."

9-10

Huawei Technologies Proprietary

Issue 02 (2007-10-15)

iManager N2000 DMS Datacomm Network Management System Administrator Guide

9 Database Backup and Restoration

9.3.2 Configuring an Automatic Backup Policy


Description
Configure the period and start time of the scheduled backup policy. To keep the normal maintenance operation, it is recommended to set the start time for automatic backup between 00:00 and 06:00.

Precaution
The first character of the name of the scheduled backup policy cannot be underline "_". The names of the database sets must be different from each other.

Procedure
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose Configuration > Auto Backup Policy. Or in the navigation tree, choose the Configuration > Auto Backup Policy node. Click Add. The configuration page is displayed, as shown in Figure 9-8. Figure 9-8 Adding the automatic backup policy

Step 3 Enter the name of the backup policy in the Time Policy Name textbox. Step 4 Choose the time period and start time of the backup policy. Step 5 Click Finish. In the Prompt dialog box that appears, click OK to complete the creation of the backup policy. ----End

Issue 02 (2007-10-15)

Huawei Technologies Proprietary

9-11

9 Database Backup and Restoration

iManager N2000 DMS Datacomm Network Management System Administrator Guide

9.3.3 Configuring an Automatic Backup Task


Description
According the created database set and scheduled backup policy, create the scheduled backup task to enable the system to automatically back up the selected database in the specified time.

Precaution
Only after configuring the database set and scheduled backup policy, you are allowed to configure the scheduled backup task.

Procedure
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose Operation > Auto Backup Task. Or in the navigation tree, choose the Operation > Auto Backup Task node. Click Add. The configuration page is displayed. Step 3 Select the database set to be backed up. Click Next. Step 4 Select the scheduled backup policy. Click Next. Step 5 Click Finish. In the Prompt dialog box that appears, click OK to complete scheduled backup task. After completing the configuration of the backup task, the system backs up the data according to the scheduled backup policy. ----End

9.4 Restoring the Database


9.4.1 Restoring Database Flow Chart
Figure 9-9 shows the operation flow chart of restoring the database by the data backup file.

9-12

Huawei Technologies Proprietary

Issue 02 (2007-10-15)

iManager N2000 DMS Datacomm Network Management System Administrator Guide

9 Database Backup and Restoration

Figure 9-9 Restoring database flow chart


Start

Prepare the database backup file

Stop DMS service process

Restore backup data

Restart DMS service processes

End

9.4.2 Stopping DMS Service Processes


Description
Before restoring the database, you need to stop the DMS service process that is running. Stop the DMS service process by the Sysmonitor.

Precaution
z z

Stopping the process affects the DMS function; therefore, random operations are prohibited. Do not stop the database backup process. Otherwise, you cannot back up and restore the database.

Procedure
Step 1 Log in to the DMS client. Step 2 Choose System > Stop Server. Step 3 Click OK to stop the DMS service process. Step 4 After stopping the DMS service process, select the Process tab and records of Database Backup Process. Step 5 Right-click the page. Select Start Process to start the database backup process. ----End

Issue 02 (2007-10-15)

Huawei Technologies Proprietary

9-13

9 Database Backup and Restoration

iManager N2000 DMS Datacomm Network Management System Administrator Guide

9.4.3 Restoring Backup Date


Description
Restore the backup data to the DMS database to reduce the loss caused by the faults or errors of the database.

Precaution
Before the backup data is restored, the following conditions need to be satisfied:
z z

The backup data file exists in the specified path of the backup device. Before restoring the database, ensure that no connection to the database exists, which is set up by the DMS users and other users. Otherwise, the database cannot be restored.

Procedure
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose Operation > Restore Database. Or in the navigation tree, choose the Operation > Restore Database node .The configuration window is displayed. Step 3 Select the backup device, Click Next. Step 4 Select the restoration type. Click Next. Step 5 Select the database set to restore. Click Next. Step 6 Select the database to restore. Click Next. Step 7 Select the backup files. Click Restore to restore the data from the specified path. ----End

9.4.4 Restarting DMS Service Processes


Description
After restoring the database, restart the service process by the SysMonitor to enable the DMS server to run normally.

Procedure
Step 1 Log in to the DMS client. Step 2 Choose System > Start Server and start the DMS server. ----End

9-14

Huawei Technologies Proprietary

Issue 02 (2007-10-15)

iManager N2000 DMS Datacomm Network Management System Administrator Guide

9 Database Backup and Restoration

9.5 Query the Backup and Restoration Logs


Description
The backup and restoration operation of the DMS database are realized by the database backup tool. You can view the operation records of backup and restoration in the database backup tool.

Procedure
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose View > Log . Or in the navigation tree, choose the View > Log node,and configure the parameters in the Check log box.
z z

Log type: Choose the type to be viewed, including All, Backup and Restore Time range: View the time field to be viewed, including Recent Month, Recent Three Months, Recent Six Months and Recent Year.

Step 3 Click Next. The information of the logs that satisfy the previous conditions is displayed in the Operation Log box. ----End

9.6 Viewing Database Details


Description
View the basic information of the DMS database, including the size, used Size and created time.

Procedure
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose View > Database. Or in the navigation tree, choose the View > Database node,The browse page is displayed as shown in Figure 9-10.

Issue 02 (2007-10-15)

Huawei Technologies Proprietary

9-15

9 Database Backup and Restoration

iManager N2000 DMS Datacomm Network Management System Administrator Guide

Figure 9-10 Viewing database details

Step 3 In the All Database box, select the database to be viewed. In the Description box, view the details of the database. ----End

9-16

Huawei Technologies Proprietary

Issue 02 (2007-10-15)

S-ar putea să vă placă și