Вы находитесь на странице: 1из 34

iManager M2000 Backup and Restore Solution

www.huawei.com

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Objectives

Upon completion of this course, you will be able to:

Describe the backup and restore solution


Outline the policy of M2000 data backup and the scenario of M2000 data restoration

Backup and restore M2000 dynamic data and static data

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page2

Contents
1. M2000 Backup and Restore Solutions

2. Backup and Restore M2000 Dynamic Data


3. Backup and Restore M2000 Static Data

4. Backup M2000 Operating System Data

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page3

Backup and Restore Solutions

Depending on the data to be backed up, three data backup

solutions are provided for the M2000

Dynamic data backup: backs up the dynamic service data of the M2000 system

Static data backup: backs up the M2000 server application software, database application software, database device files, and M2000 configuration files

System data backup: backs up the system data of the M2000 server, such as operating system data, database application data, M2000 server application data

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page4

Dynamic Data Backup Content

Database data: omcdb, fmdb, pmdb, swmdb, itfndb,

omclogdb,pmcomdb, sumdb, omcsmdb, and omctmdb

M2000 system files

files under the /export/home/omc/var files under the /export/home/sysm/devdoc files under the /export/home/sysm/ftproot

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page5

Static Data Backup Content

Backup Content

M2000 server application software


Database application software Database device files M2000 configuration files

Partition of backup data

/opt/sybase
/opt/OMC /export/home

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page6

Operating System Data Backup Content

Backup Content

Data of the operating system

Partition of backup data

/ partition

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page7

Typical Scenarios for Data Backup

The M2000 system is newly installed.

Backup of dynamic data (manually back up dynamic data to tapes)


Back up of static data Backup of the operating system data

The M2000 program or database is upgraded, or the database is


expanded.

Backup of dynamic data (manually back up dynamic data to tapes) Back up of static data

A patch of the operating system is installed.

Backup of the operating system data

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page8

Scenarios of M2000 Data Restoration

The M2000 system runs normally. It needs to roll back to the historical operational status.

Restore dynamic data

The database device or the configuration files of the M2000 are damaged. The operating system is still running properly.

Restore static data Restore dynamic data

The operating system of the M2000 server cannot be started.


Restore the operating system Restore static data Restore dynamic data

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page9

Contents
1. M2000 Backup and Restore Solutions

2. Backup and Restore M2000 Dynamic Data


3. Backup and Restore M2000 Static Data

4. Backup M2000 Operating System Data

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page10

Backup M2000 Dynamic Data

Manual backup

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page11

Backup M2000 Dynamic Data

Periodic backup

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page12

Backup M2000 Dynamic Data

Periodic backup

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page13

Set the Storage Device (From Client)

From M2000 client

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page14

Set the Storage Device (From Server)

Ensure that the M2000 daemon process is started.

# daem_ps

Navigate to the /export/home/omc/var/etc/conf directory, and then run the vi command to view the maintainsvc.xml file.

# cd /export/home/omc/var/etc/conf
# vi maintainsvc.xml

Search for the line <param name="backupMedia">, and then change the disk for full backup and incremental backup to the actual storage device.

<module name="all"> ... <param name="backupMedia">disk</param> <module name="inc"> ... <param name="backupMedia">disk</param>
Page15

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Set the Storage Device (From Server)

To back up dynamic data on a tape, specify the path of the

tape drive. Find the following lines:

<path name="backuppath"> <param name="tapePath">/dev/rmt/0</param>

Replace /dev/rmt/0 with the path of the tape drive Run the following command to reload configuration

parameters.

# . /opt/OMC/svc_profile.sh # svc_adm -cmd reload

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page16

Preparation for Data Restoration

If the M2000 service is running, stop it first.

# stop_svc

Ensure that the M2000 daemon process is started.

# daem_ps

Copy the backup files to a hard disk if the backup files are stored on a tape. (Skip this step if the backup files are stored on a hard disk)

Insert a tape into the tape and rewind the tape.

# mt -f /dev/rmt/0n rewind

Repeatedly run the following command until all the data on the tape is copied to a hard disk:

# tar xvf /dev/rmt/0n


Page17

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Restore M2000 Dynamic Data

Switch to user dbuser and restart the Sybase. Then, switch to user root.

# su - dbuser Restart the Sybase -bash-3.00$ exit

Restore the dynamic data.

# svc_backuprestore -cmd restore -s MaintenanceService The following message is displayed: ****************************************************** * Restore is a dangerous operation ! * * If you have to do it, please stop system first ! * ****************************************************** Continue ?[n/y]
Page18

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Check after Data Restoration

Restart the M2000 services.

# start_svc

Check whether all the M2000 services are started.

# svc_adm -cmd status

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page19

Contents
1. M2000 Backup and Restore Solutions

2. Backup and Restore M2000 Dynamic Data


3. Backup and Restore M2000 Static Data

4. Backup M2000 Operating System Data

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page20

Preparation for Data Backup

Back up the dynamic data.

If the M2000 services and the Sybase are running, stop the
M2000 services and the Sybase.

Insert a tape into the tape drive, and then run the following command to rewind the tape:

# mt -f /dev/rmt/0 rewind Store the backup files in two tapes if one tape cannot hold the backup files.

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page21

Preparation for Data Backup

Delete extra files if the backup is not performed immediately after the initial installation of the M2000.

Delete the alarm dump files


# cd /export/home/omc/var/fm/dump # rm -R /export/home/omc/var/fm/dump/event/* # rm -R /export/home/omc/var/fm/dump/history/*

Delete the core files

# cd /export/home/omc/var/logs

# rm core*

Delete the history trace files


# cd /export/home/omc/var/logs/tracebak

# rm iMAP*

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page22

Backup M2000 Static Data

Back up the M2000 application

# cd /opt
# ufsdump 0ucf /dev/rmt/0n OMC

Back up the Sybase application.

# ufsdump 0ucf /dev/rmt/0n sybase

Back up the M2000 configuration files, the database application, and the device files of the Sybase.

# cd / # ufsdump 0ucf /dev/rmt/0n /export/home NOTE: The device files of the Sybase are master.dat, sysprocs.dat, and tmp_dev. The three files are stored in the path /export/home/sybdev.

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page23

Check after Data Backup

Check whether the static backup data on the tape is valid. If the static backup data is backed up on multiple tapes, check the tapes one by one.

Rewind the tape.

# mt rewind

The contents of the first record on the tape are displayed.

# ufsrestore tf /dev/rmt/0n

The contents of the second record on the tape are displayed.

# ufsrestore tf /dev/rmt/0n

If the previous two records do not contain error information such as Media
read error: I/O error, you can infer that the data backup is valid.

Remove the tape from the tape drive. Start the M2000 services and the Sybase.

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page24

Preparation for Data Restoration

If the M2000 services and the Sybase server are running, stop the M2000 services and the Sybase.

Check whether the raw volume or the disk raw partition used by the data device functions well.

Insert a tape into the tape drive. Check whether the static backup data on the tape is valid.

Rewind the tape.

# mt rewind

The contents of the first record on the tape are displayed.

# ufsrestore tf /dev/rmt/0n

The contents of the second record on the tape are displayed.

# ufsrestore tf /dev/rmt/0n

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page25

Restore M2000 Static Data

Rewind the tape

# mt -f /dev/rmt/0 rewind

Restore the M2000 application

# cd / # rm -R /opt/OMC # ufsrestore rf /dev/rmt/0n

Restore the Sybase application

# rm -R /opt/sybase # ufsrestore rf /dev/rmt/0n

Restore the M2000 configuration files, the Sybase application, and the device files of the Sybase

# cd /export/home # ufsrestore rf /dev/rmt/0n

# rm restoresymtable

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page26

Check after Data Restoration

Start the Sybase as user dbuser.

Check the status of the database to make sure the status of


each database is not offline or not recovered.

-bash-3.00$ isql -Sdatabase server name -Usa -Pxxxxxx 1> sp_helpdb 2> go

Restart Sybase
Start M2000

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page27

Contents
1. M2000 Backup and Restore Solutions

2. Backup and Restore M2000 Dynamic Data


3. Backup and Restore M2000 Static Data

4. Backup M2000 Operating System Data

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page28

Preparation for Backup


Back up the static data

Stop the M2000 services and the Sybase


Check the server before backup

View the IP address of the server Check the system hardware Check whether the root disks are properly encapsulated and mirrored Check the log of the operating system Run the explorer program

Check the status of the tape drive.

# mt -f /dev/rmt/0 status

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page29

Backup of Operating System Data

Use the PlatformTools to back up the system data.

Configure the rights of the PlatformTools directory

# chmod -R 777 /opt/PlatformTools

Start the PlatformTools.

# cd /opt/PlatformTools # ./setup

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page30

Backup of Operating System Data

Operation for PlatfromTools

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page31

Check after Backup

Check whether the system backup data on the tape is valid.

Rewind the tape.

# mt rewind

The contents of the first record on the tape are displayed.

# tar tf /dev/rmt/0n

The contents of the second record on the tape are displayed.

# ufsrestore tf /dev/rmt/0n

If the previous two records do not contain error information such as Media read error: I/O error, you can infer that the data backup is valid.

Start the Sybase and the M2000 services

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page32

Summary

Data backup types provides by M2000

Dynamic data backup


Static data backup Operating system data backup

Operations of data backup and restore

Copyright 2009 Huawei Technologies Co., Ltd. All rights reserved.

Page33

Thank you
www.huawei.com

Оценить