Professional Documents
Culture Documents
www.huawei.com
Objectives
Page2
Contents
1. M2000 Backup and Restore Solutions
Page3
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
Page4
files under the /export/home/omc/var files under the /export/home/sysm/devdoc files under the /export/home/sysm/ftproot
Page5
Backup Content
/opt/sybase
/opt/OMC /export/home
Page6
Backup Content
/ partition
Page7
Backup of dynamic data (manually back up dynamic data to tapes) Back up of static data
Page8
The M2000 system runs normally. It needs to roll back to the historical operational status.
The database device or the configuration files of the M2000 are damaged. The operating system is still running properly.
Restore the operating system Restore static data Restore dynamic data
Page9
Contents
1. M2000 Backup and Restore Solutions
Page10
Manual backup
Page11
Periodic backup
Page12
Periodic backup
Page13
Page14
# 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
Replace /dev/rmt/0 with the path of the tape drive Run the following command to reload configuration
parameters.
Page16
# stop_svc
# 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)
# mt -f /dev/rmt/0n rewind
Repeatedly run the following command until all the data on the tape is copied to a hard disk:
Switch to user dbuser and restart the Sybase. Then, switch to user root.
# 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
# start_svc
Page19
Contents
1. M2000 Backup and Restore Solutions
Page20
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.
Page21
Delete extra files if the backup is not performed immediately after the initial installation of the M2000.
# cd /export/home/omc/var/logs
# rm core*
# cd /export/home/omc/var/logs/tracebak
# rm iMAP*
Page22
# cd /opt
# ufsdump 0ucf /dev/rmt/0n OMC
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.
Page23
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.
# mt rewind
# ufsrestore tf /dev/rmt/0n
# 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.
Page24
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.
# mt rewind
# ufsrestore tf /dev/rmt/0n
# ufsrestore tf /dev/rmt/0n
Page25
# mt -f /dev/rmt/0 rewind
Restore the M2000 configuration files, the Sybase application, and the device files of the Sybase
# rm restoresymtable
Page26
-bash-3.00$ isql -Sdatabase server name -Usa -Pxxxxxx 1> sp_helpdb 2> go
Restart Sybase
Start M2000
Page27
Contents
1. M2000 Backup and Restore Solutions
Page28
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
# mt -f /dev/rmt/0 status
Page29
# cd /opt/PlatformTools # ./setup
Page30
Page31
# mt rewind
# tar tf /dev/rmt/0n
# 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.
Page32
Summary
Page33
Thank you
www.huawei.com