大家都说好记性不如烂blog

博客园 首页 新随笔 联系 订阅 管理

最简单的配置

Veritas Netbackup做为备份市场中的执牛耳者,一直都想好好捣古一下,并且公司的备份环境也是Veritas NBU 6.5,可惜不敢乱动,千辛万苦网上找着了NBU 7.0试用版下载地址:https://www4.symantec.com/Vrt/offer?a_id=91443,赛门铁克把个下载地址都捂得很严实……,不过这个下载地址没准什么时候就过期了。

先注册个帐号,其中有NBU 7.0所有版本的下载。NetBackup 7.0 (CLIENTS)是除了windows外其它所有被支持系统的客户端软件;NetBackup 7.0 (Linux Redhat)这个就是红帽下的服务器端软件了,需要注意的是,在非windows系统下,不管是Server端还是Client端,都只支持64位的系统,据说NBU 7.0也支持NBU6.5的客户端,以兼容32位的系统,不过只是道听途说,未做过验证。NetBackup 7.0 (WIndows ZIP 1 of 2)和NetBackup 7.0 (WIndows ZIP 2 of 2)是windows系统(x86,x64,IA64)所有组件的安装版本。

windows下软件的安装一贯简单,redhat版本做实验。

一、NBU7.0安装

这次下载的是7.1!!!

由于netbackup客户端软件有两个tar包,先合成一个tar包。如果是在windows上,则
copy /b "NetBackup_7.1_CLIENTS_tar-gz.1of2"+"NetBackup_7.1_CLIENTS_tar-gz.2of2" "NetBackup_7.1_CLIENTS.tgz"
[root@FJXM-DM-HX netbackup]# ls
NetBackup_7.1_CLIENTS_tar-gz.1of2  
NetBackup_7.1_CLIENTS_tar-gz.2of2 
[root@FJXM-DM-HX netbackup]# cat NetBackup_7.1_CLIENTS_tar-gz.1of2 NetBackup_7.1_CLIENTS_tar-gz.2of2 > NetBackup_7.1_CLIENTS.tgz


先将安装源拷到redhat上,然后解压成一个NB_7.0_LinuxR_x86_64_GA的目录,进入后运行./install

[root@veritas NB_7.0_LinuxR_x86_64_GA]# ./install

Symantec Installation Script

Copyright 1993 - 2010 Symantec Corporation, All Rights Reserved.

1)  OpsCenter Server

2)  NetBackup Server Software

3)  Exit from this Script

Choose an option:  [1 - 3]: 2

此处选择1是一个管理端,可管理多台veritas服务器,安装选择2即安装MasterServer。

The NetBackup and Media Manager software is built for use on LINUX_RH_X86 hardware.

Do you want to install NetBackup and Media Manager files? [y,n] (y)

NetBackup and Media Manager are normally installed in /usr/openv.

Is it OK to install in /usr/openv? [y,n] (y)

肯定都选y了,如果想要安装到其它地方,第二步选n,然后再指定目录。回车后开始安装

Reading NetBackup files from /datafile/ftp/NB_7.0_LinuxR_x86_64_GA/linuxR_x86/anb

usr/openv/NB-Java.tar.gz

usr/openv/db/bin/

usr/openv/db/bin/nbdb_admin

usr/openv/db/bin/vxdbms_server.tar.gz

usr/openv/db/bin/create_nbdb

usr/openv/db/bin/dbadm

usr/openv/db/bin/nbdbms_server_install

usr/openv/db/bin/nbdb_backup

usr/openv/db/bin/nbdb_move

usr/openv/db/bin/nbdb_ping

……(略)

到这里会提示自动启动文件放置的位置。

The following automatic startup and shutdown scripts (respectively)

have been installed.  They will cause the NetBackup daemons to be

automatically shut down and restarted each time the system boots.

/etc/rc.d/rc2.d/S77netbackup

/etc/rc.d/rc3.d/S77netbackup

/etc/rc.d/rc5.d/S77netbackup

/etc/rc.d/rc0.d/K01netbackup

/etc/rc.d/rc1.d/K01netbackup

/etc/rc.d/rc6.d/K01netbackup

安装NBU7.0需要试用序列号才行,同样千辛万苦地网上找了一个NBU7.0试用序列号,不过有试用期限,这里安装就会提示过期

A NetBackup Server or Enterprise Server license key is needed

for installation to continue.

Enter license key: OENN-JTV4-SV2N-XPRO-6OCU-8LGK-HM77-HH7P-PP36

OENN-JTV4-SV2N-XPRO-6OCU-8LGK-HM77-HH7P-PP36: is an expired demo key (161)

再开一个session改一下系统时间到2010年3,4月份即可,再次输入这个序列号就可以安装了,并且给出这个Key的权限,既然是试用Key,应该是所有功能都具备的:

A NetBackup Server or Enterprise Server license key is needed

for installation to continue.

Enter license key: OENN-JTV4-SV2N-XPRO-6OCU-8LGK-HM77-HH7P-PP36

Evaluation NetBackup Enterprise Server with May 10, 2010 expiration date will be registered.

Is this OK? [y,n] (y)

OENN-JTV4-SV2N-XPRO-6OCU-8LGK-HM77-HH7P-PP36:

Evaluation NetBackup Enterprise Server Base product with the following features enabled:

PureDisk Remote Office 256G

PureDisk Remote Office

PureDisk Option

SAN Client

……

Shared Storage Option

Global Data Manager

NDMP

EMC

Additional clients

has been registered.

All additional keys should be added at this time.

Do you want to add additional license keys now? [y,n] (y) n

Use /usr/openv/netbackup/bin/admincmd/get_license_key

to add, delete or list license keys at a later time.

Installing NetBackup Enterprise Server version: 7.0

确认这台机器是不是master server和media server, master server就是服务器端了,media server通过是用来连接存储设备的,一般都可以将这两台角色装在一台机器上。

Would you like to use "veritas" as the configured

name of the NetBackup server? [y,n] (y)

Is veritas the master server? [y,n] (y)

Do you have any media servers? [y,n] (n)

Sending SIGHUP to xinetd process.

Reloading configuration: [  OK  ]

……

出来下面的信息就基本可以成功了

Starting the NetBackup compatibility daemon.

Starting the NetBackup Enterprise Media Manager.

Starting the NetBackup Resource Broker.

Populating the database tables.  This will take some time.

Starting the Media Manager device daemon processes.

Do you want to start the NetBackup bprd process so

backups and restores can be initiated? [y,n] (y)

Starting the NetBackup request daemon process (bprd).

Starting the NetBackup Job Manager.

Starting the NetBackup Policy Execution Manager.

Starting the NetBackup Storage Lifecycle Manager.

Starting the NetBackup Remote Monitoring Management System.

Starting the NetBackup Key Management daemon.

Starting the NetBackup Service Layer.

Starting the NetBackup Agent Request Server.

Starting the NetBackup Bare Metal Restore daemon.

Starting the NetBackup Vault daemon.

Starting the NetBackup Service Monitor.

Starting the NetBackup Bare Metal Restore Boot Server daemon.

最后指定OPS Server,就是管理服务器,这里没有,直接回车

Enter the OpsCenter server (default: NONE):

NetBackup server installation complete.

二、管理控制台连接

可以用VNC连接Linux的图形界面,运行/usr/openv/netbackup/bin/jnbSA打开控制台,也可以下载windows版本后,在windows机上安装“Java Windows Administration Console”后远程管理。

登录成功后界面

三、安装Linux Client端

服务器端MasterServer安装的时候同时也会将Client安装到本机,直接就可以备份本机上的文件,但实际应用主要还是用来网络备份其它机器上的东西,所以再做一个Linux系统做为Client端测试。要正确执行备份很重要的一件事,就是要在Client端将MasterServer的相关信息添加到/etc/hosts里,并且在MasterServer上,也同样把Client的信息加入/etc/hosts,否则会导致备份错误,如果有DNS的话,可以省略这一步。解压压缩包,进去执行./install , 一路选y

客户端通常为* file.1of2 file.2of2

用cat file.1of2 file.2of2>file 来生成新的文件。

[root@client NB_7.0_CLIENTS_GA]# ./install

Symantec Installation Script

Copyright 1993 - 2010 Symantec Corporation, All Rights Reserved.

Installing NetBackup Client Software

Do you wish to continue? [y,n] (y)

Do you want to install the NetBackup client software for this client? [y,n] (y)

This package will install Linux/RedHat2.6 client.

This package will install NetBackup client 7.0.

此处添加Server端的名字

Enter the name of the NetBackup server : veritas.ora

Would you like to use "client.ora" as the configured

name of the NetBackup client? [y,n] (y)

openv/

openv/lib/

openv/lib/map/

openv/lib/map/libemcpower.so

……

/etc/rc.d/rc2.d/S77netbackup

/etc/rc.d/rc3.d/S77netbackup

/etc/rc.d/rc5.d/S77netbackup

/etc/rc.d/rc0.d/K01netbackup

/etc/rc.d/rc1.d/K01netbackup

/etc/rc.d/rc6.d/K01netbackup

Successfully updated the session cache parameters.

Starting vnetd...

Starting bpcd...

Starting nbftclnt...

Starting bmrbd...

Installation of Java LiveUpdate agent succeeded.  Refer to file

/tmp/JLU-Log/JavaLiveUpdate-Install.log on client.ora

for installation details.

/etc/rc.d/rc2.d/S77netbackup

/etc/rc.d/rc3.d/S77netbackup

/etc/rc.d/rc5.d/S77netbackup

/etc/rc.d/rc0.d/K01netbackup

/etc/rc.d/rc1.d/K01netbackup

/etc/rc.d/rc6.d/K01netbackup

Successfully updated the session cache parameters.

Starting vnetd...

Starting bpcd...

Starting nbftclnt...

Starting bmrbd...

Installation of Java LiveUpdate agent succeeded.  Refer to file

/tmp/JLU-Log/JavaLiveUpdate-Install.log on client.ora

for installation details.

四、创建一个基本备份任务

1、添加存储设备

都装完可以创建备份任务了,在这之前,要在MasterServer上先将用于备份的存储设备加入设备列表,此处先用本地磁盘,关于磁带的下篇再说。

自行命名后,将备份的目标指向/data/backup目录,可以查看空间使用情况。

点OK后就有了第一个存储设备

2、创建一个最简单的备份策略

在Policy type是备份类型,有针对各个操作系统或DB的,普通文件备份选择Standard即可。

在Policy volume里,可以选择刚创建的存储设备。普通备份在右边将Bare Metal Restore前的勾去掉,BMR一般用于备份操作系统并进行裸机恢复。以后研究一下再写出来。

1)Schedules选项卡

Type of backup有五个选项,作用:

Full Backup:即全备份,将所有要备份的文件每次都全部备份一次。

Differential Incremental Backup:差异备份,和全备份组合使用,即每次都备份自上一次全备份以来产生的所有不同文件。假如全备份后,进行了十次差异备份,如果要恢复到最新,需要用到全备份数据和最后一次的差异备份数据。

Cumulative Incremental Backup:增量备份,和全备份组合使用,每次备份上一次备份以来(全备份,差异备份,增量备份)产生的不同文件。假如全备份后,进行了十次增量备份,如果要恢复到最新,需要用到全备份数据和十次所有的增量备份数据。

User Backup:用户备份,可以从客户端启动的备份。

User Archive:用启归档,可以从客户端启动的备份,但备份完成后,删除掉客户端上备份的文件。

Schedule type:Calendar,可以用天,周,月详细定义备份的时间。Frequency,备份频率,即多长时间备份一次。

这里建立一个的Full Backup

2)Start Windows选项卡

即备份开始的时间,以周为单位设置。后面的Exclude Dates即排除时间。

3)Clients选项卡,选择客户端名字和系统类型

4)Backup Selections选项卡:选择要备份的文件,此处添加一个/boot

5)运行测试

新建的任务上右键手动运行

进Activity Monitor后可看到正在运行的任务。蓝色表示成功,绿色表示正在运行,黄色表示有警告,红叉表示失败。如果失败并且报23或48的错误,原因很可能是主机或客户端的/etc/hosts文件没有添加对方的相应信息。

双击任务可查看运行状态

Copyright © Dbabc.Net All Rights Reserved. 本站内容仅代表个人观点, 与其他任何组织或公司无关

posted on 2011-06-23 16:29  leqiangw  阅读(6277)  评论(0编辑  收藏  举报