经过无数次重装,总算bmr能成功还原了(附文档)
时间:2008-01-16 13:33:49 来源: 作者:
|
虽然测试的功能还很单薄,但毕竟是最重要的一步,请各位批评 注意:将hosts文件编辑完整,以下在配置过程中,都要用主机名,不要用ip。 一.环境: 测试机??tsc420-1,tsc420-2,全部是solaris系统,系统中没有vm,vxfs(以后再做) Tsc420-1(192.168.180.2) Master server Bmr Main server Bmr file server Bmr boot server Tsc420-2(192.168.180.3) NBU client BMR client oracle数据库(主要是为测试还原后,对应用的影响) 二.安装: 1. 编辑tsc420-1上的/etc/hosts文件如下: 27.0.0.1 localhost 192.168.180.2 tsc420-1 loghost 192.168.180.3 tsc420-2 编辑tsc420-2上的/etc/hosts文件如下: 127.0.0.1 localhost 192.168.180.3 tsc420-2 loghost 192.168.180.2 tsc420-1 2. 在tsc420-1上安装NBU datacenter 4.5GA。 注意:编辑bp.conf文件,将CLIENT_NAME = …..加入。 3. 在tsc420-1上安装master server补丁,mp1,mp2,mp5。 4. 在tsc420-2的根目录中添加.rhosts文件,文件中加入“+”。从tsc420-1上向tsc420-2远程安装nbu client软件。 完成后,测试从tsc420-1备份tsc420-2上的文件成功。 注意:编辑bp.conf文件,将CLIENT_NAME = …..加入。 5. 在tsc420-1和tsc420-2上都安装nbu client补丁,NB_CLT_45_5_M_260536。(不必要) 6. 在tsc420-1上创建用户bmradmin和bmradmin组,口令为bmradmin,属主目录为/export/home/bmradmin。 7. 在tsc420-1上的/usr/openv/netbackup/db/altnames/中,创建空文件No.Restrictions。 8. 在tsc420-1上创建/export/srt目录,所有者为bmradmin用户和bmradmin组,读写权限为755。 9. 在tsc420-1上,修改/etc/inetd.conf文件,删除“tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot”行前的#号。 10. kill ?CHUP pid(inetd.conf) 11. 启动nfs进程,运行 /usr/lib/nfs/mountd /usr/lib/nfs/nfsd 确认nfsd,mountd,statd,lockd进程全部启动。 12. 在tsc420-1上,运行“pkgadd ?Cd . BMRserver”安装bmr服务器端程序,安装盘上的VERSION文件显示版本号为: ################## Copyright (C)2000 - 2002, VERITAS Software ################# This is "VERSION, bmr, bmr-4.5.0, 4.5.0.22" 13. 在tsc420-2上,运行“pkgadd -d . BMRclient” 安装bmr客户端程序,版本同上。 三.配置: 1. 配置bmr server端 在tsc420-1上运行“/opt/BareMetal/bmrsetupserver”,具体配置如下: Bare Metal Restore Server Configuration Before you begin the BMR setup process, it is recommended that you check the VERITAS web site at http://www.support.veritas.com for the latest patch information. Continue with setup right now? [N]y Verifying environment... Verification successful. Setting up utilities... Utility setup successful. Will this machine be a BMR server? [y] y Enter BMR server's hostname [tsc420-1]: tsc420-1 Enter the BMR server port number [8362]: 8362 Enter the BMR administrator's user name [bmradmin]: bmradmin Enter the BMR administrator's group name [bmradmin]: bmradmin Will this server run the BMR GUI daemon? [y] y Enter the GUI server's port number [80]: 80 Enter the location of bp.conf file [/usr/openv/netbackup]: /usr/openv/netbackup Enter 'm' to use /var/bmr/log/messages or 's' to use syslog [s]: m Do you want to install the BMR license keys? [y] y Enter a license key or a file name containing the key(s): Do you want to install additional license keys? [y] n Will this machine be a file server? [y] y By default, SRTs can only be created in the /export/srt directory. To allow SRTs to be created in other directories, add them to the /var/bmr/etc/exports file, one directory per line. SAMBA is required for Windows clients. Do you want SAMBA installed now? [y]:n(不安装配置SAMBA) Automatically configuring this machine as Boot Server... Waiting for daemon startup to complete. Server configuration complete. 此处经常显示不能启动bmrd进程,但手工执行/opt/BareMetal/sol/bmrd -p 8362 &后又可以启动。 2. 配置bmr client端 在tsc420-2上运行“/opt/BareMetal/bmrsetupclient”显示如下: Bare Metal Restore Client Configuration Verifying environment... Verification successful. Enter BMR server's hostname []: tsc420-1 Enter the BMR server port number [8362]: Enter this client's network interface used for booting [hme0]: The BMR command bmrsavecfg must be run before each backup of this system. Running bmrsavecfg for the first time (this may take a few minutes). bmrsavecfg completed without errors. The BMR command bmrsavecfg must be run before each backup of this system. 1. The NetBackup client runs bpstart_notify (found in /usr/openv/netbackup/bin). 2. You must manually modify the bpstart_notify script to contain: /opt/BareMetal/bmrsavecfg >; /var/bmr/log/bmrsavecfg.log 2>;&1 I understand that I must make this modification manually. [n] y Configuration of client tsc420-2,tsc420-1 completed successfully. 配置完client后,在gui中出现client项。 四.安装bmr软件补丁 1.在tsc420-1上安装bmr server补丁: /opt/BareMetal/bmrpatchserver -f patch-NBU-4.5.0-004_254634.tar 2. 在tsc420-2上安装bmr client补丁: /opt/BareMetal/bmrpatchclient -f patch-NBU-4.5.0-004_254634.tar 五.备份客户端操作系统,备份文件存储在tsc420-1的/nbubak目录中,在此目录上挂接了阵列上30G的空间。 1. 确定DISALLOW_CLIENT_RESTORE在master server上被置为off。在管理界面中master server属性设置中的Client Attributes中。 2. 使用tsc420-1上的datacenter对tsc420-2作全备份,使用“Collect true image restore information”和“with move detection”选项。在file页中选择“ALL_LOCAL_DRIVES”文件。 3.关闭oracle数据库 4. 开始备份。 六.创建SRT在tsc420-1上,srt目录位于tsc420-1的/export目录中,在/export/srt/目录上挂接了阵列20G空间。 1. 运行“/opt/BareMetal/bmrcreatesrt” 2.SRT name []:1802SRT Enter desired level of Solaris/SunOS (2.6/5.6 or 7/5.7 or 8/5.8) [5.8]: Enter SRTpath to use [/export/srt/1802SRT]: Verification of SRT path /export/srt/1802SRT in progress. This may take time. Enter a [hostname:/]pathname containing a suitable Solaris 8 Boot CDROM or SRT image [/cdrom/cdrom0/s0]:(插入solaris soft1安装盘) Enter a [hostname:]/pathname containing the VERITAS NetBackup images [/export/share]:/cdrom/cdrom0(插入datacenter安装盘) 3.安装nbu client软件,过程显示: VERITAS Installation Script Copyright 1993 - 2002 VERITAS Software Corporation, All Rights Reserved. Installation Options 1 NetBackup 2 NetBackup Client Software 3 NetBackup Client Java Software q To quit from this script Choose an option [default: q]: 2 Do you want to install the NetBackup client software for this client? (y/n) [y] y Installing Solaris/Solaris2.6 client. Enter the name of the NetBackup server : tsc420-1 Enter the name of this NetBackup client : tsc420-2 。。。。。。。安装 VERITAS Installation Script Copyright 1993 - 2002 VERITAS Software Corporation, All Rights Reserved. Installation Options 1 NetBackup 2 NetBackup Client Software 3 NetBackup Client Java Software q To quit from this script Choose an option [default: q]: 4.A trace of the install can be found in /tmp/install_trace.2170 That file can be deleted after you are sure the install was successful. Enter a patch or package name to install additional software in SRT, or nothing if done: []: Creating checksum. This may take time. Finished. Goodbye. The SRT named '1802SRT' and stored in: /export/srt/1802SRT should now be ready for basic use. In this form, it may be useful as a source of an SRT CDROM image or for post-SRT device and code installation. 七.创建boot image,并恢复。 1. 进入BMR web管理界面,点击share resource tree,选择1802SRT,点击create boot image。 2. 输入bi name为BI1802,Boot Server为tsc420-1。 3. 点击Create,bi创建完成 4. 进入client页,选择"tsc420-2,tsc420-1"项。 5. 选择Allocated BI Name,其他为默认。 6.9. 点击“prepare to restore” 7.选择还原全部driver 8.OK 9.出现提示,client已经准备好恢复。点击OK。 10.Client状态变为restoring。 11.将client重启,boot net,从网络启动机器。 12.启动后,client自动创建分区 13.Client提示file restoring. 14.打开server上nbu管理器中的activity monitor,出现还原任务。 15.还原任务完成后,client自动重启,进入操作系统,原来的oracle数据库同样可用。 yddll 回复于:2004-09-08 21:41:08 值得赞赏 dooza 回复于:2004-09-09 15:11:33 不错啊!我一直没有环境可以测试。有没有关于win服务器的恢复? nothingtolose 回复于:2004-09-09 15:26:44 愿意分享果实的人是值得大家尊敬的人,希望大家回答问题或提供其他方面帮助时体现出足够的热心及耐心,共同建造这片家园。 maqizhi 回复于:2004-09-09 19:37:50 不错,支持。 alang857 回复于:2004-09-10 08:19:33 不容易呀,我曾经在客户那里遇到过bmr ,最终也没搞定.兄弟厉害 可惜没有环境,不然可以做做试验了 vx1 回复于:2004-11-02 12:04:30 :) Very Good! yinhong 回复于:2005-02-01 17:37:34 各个平台上的BMR我都做过了,只有WIN上的恢复最烦,要重启至少7次, 我认为BMR大WIN平台上做没有什么优势。 yel 回复于:2005-02-02 16:51:22 有很强的参考性!good!! |
原文链接:http://bbs.chinaunix.net/viewthread.php?tid=403070 转载请注明作者名及原文出处 |










文章评论
共有 位网友发表了评论 查看完整内容