BESR(SSR2011)如何备份及恢复LINUX系统

赛门铁克的BESR是一款强大的操作系统备份与恢复的软件,现最新的版本叫SSR2011,但关于其备份与恢复LINUX系统的资料较少。这些实施了一个项目,记录下来与大家分享。

环境描述:WINDOWS主机192.172.11.246建一共享文件夹ssr,linux为RHEL5.4,做了LVM。

具体操作步骤如下:

挂载cifs文件(挂载192.172.11.246/ssr共享文件夹)

[root@rhel /]# mount -t cifs -o username=administrator,password=dghr@0769 //192.172.11.246/ssr /media/

查看卷状况

[root@rhel media]# df -h
/dev/mapper/VolGroup00-LogVol00
                       15G  2.8G   12G  21% /
/dev/hda1              99M   20M   74M  22% /boot
tmpfs                 3.2G     0  3.2G   0% /dev/shm
none                  3.2G   40K  3.2G   1% /var/lib/xenstored
//192.172.11.246/ssr  300G  4.8G  296G   2% /media

备份/boot/
[root@rhel /]# symsr -b /boot/ -d /media/251boot.v2i
Warning: Application license will expire on Mon Feb  6 18:43:55 2012.
Analyzing the storage management stack                                                                                             
Snapping volumes                                                                                                                   
Copying volume data                                                                                                                
100% [==================================================================================================================] Finished

备份lvm卷
 
[root@rhel /]#  symsr -b /dev/mapper/VolGroup00-LogVol00 -d /media/251data.v2i
Warning: Application license will expire on Mon Feb  6 18:43:55 2012.
Analyzing the storage management stack                                                                                             
Snapping volumes                                                                                                                   
  0% [=                                                                                                    ] 174 minutes remaining  Analyzing the storage management stack                                                                                             
100% [===========================================================================================================] Apply Cancelled 
Error E7640001: The work in progress has been cancelled.
Error E0A20019: Backup Failed.
Info 60A20009: The process recieved an exit signal.

如像上面一样报错,则运输入下面三条命令
[root@rhel /]# rmmod symbdsnap
[root@rhel /]# modprobe symbdsnap
[root@rhel /]# echo 3 > /proc/sys/vm/drop_caches

重试备份lvm卷
[root@rhel /]# symsr -b /dev/mapper/VolGroup00-LogVol00 -d /media/251data.v2i
Warning: Application license will expire on Mon Feb  6 18:43:55 2012.
Analyzing the storage management stack                                                                                             
Snapping volumes                                                                                                                   
Copying volume data                                                                                                                
100% [==================================================================================================================] Finished 

创建SRD光盘镜像

先挂载cdrom

[root@rhel /]# [root@rhel /]# mkdir /media/cdrom
[root@rhel /]# mount /dev/cdrom /media/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only

再创建ISO

[root@rhel /]# createSRD -i /media/cdrom/ -d /media/251SRD.iso -t RHEL5
Creating SRD...Please Wait
[ ################################################################### ] 100%

Done.
[root@rhel /]#

恢复LINUX系统
用SRD光盘引导,配置好IP,选择不挂载硬盘(一定要)

1.挂CIFS
# mount -t cifs -o username=administrator,password=dghr@0769 //192.172.11.246/ssr /tmp/

2.查看分区状况,扫描LVM
#symsy -list
#lvm vgscan
#lvm vgchange -ag
#symsy -list

3.恢复boot (也可用df -h查看硬盘分区情况)
#symsr -r /tmp/251boot.v2i -d /dev/hda1

4.恢复LVM卷
#symsr -r /tmp/251data.v2i -d /dev/mapper/VolGroup00-LogVol00

 

你可能感兴趣的:(linux,休闲,SSR,ssr2011,BESR)