Chinaunix首页 | 论坛 | 博客
  • 博客访问: 520765
  • 博文数量: 213
  • 博客积分: 7027
  • 博客等级: 少将
  • 技术积分: 1974
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-24 08:51
文章分类

全部博文(213)

文章存档

2007年(213)

我的朋友

分类: LINUX

2007-09-07 17:56:20

1.安装master server
(1)运行安装程序
# /cdrom1/install

VERITAS Installation Script
Copyright 1993 - 2004 VERITAS Software Corporation, All Rights Reserved.

Installation Options

1 NetBackup
2 NetBackup Client Software

q To quit from this script
Choose an option [default: q]: 1

The NetBackup and Media Manager software is built for use on LINUX hardware.
Do you want to install NetBackup and Media Manager files? [y,n] (y) y

NetBackup and Media Manager are normally installed in /usr/openv.
Is it OK to install in /usr/openv? [y,n] (y) y

The Linux clients will be loaded.
Do you want to load any other NetBackup clients onto the server? [y,n] (y) n
开始安装
Reading client binaries for /usr/openv/netbackup/client/Linux
Linux/
......
+ /bin/cp ./fsanalyze /usr/openv/netbackup/bin/fsanalyze


A NetBackup Server or Enterprise Server license key is needed
for installation to continue.

Enter license key: (输入master licence)

:
NetBackup Enterprise Server Base product with the following features enabled:
Open File Backup
Remote Client Support
Robotic Library Sharing Support
Remote Media Server Support
Microsoft RSM Robotic Libraries
ADIC DAS/SDLC Robotic Libraries
IBM ATL Robotic Libraries
Fujitsu LMF Robotic Libraries
StorageTek ACS Robotic Libraries
Inline Tape Copy
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
是否增加其他licence,可以选y继续输入或选n等安装完后在管理界面上再添加


If this machine will be using a different network interface than the
default (gzdb1), the name of the preferred interface should be used
as the configured server name. If this machine will be part of a
cluster, the virtual name should be used as the configured server name.

The domainname of your server appears to be "(none)".
You may choose to use this domainname in your configured NetBackup server
name, or simply use "gzdb1" as the configured NetBackup server name.

Would you like to use "gzdb1.(none)" as the configured
name of the NetBackup server? [y,n] (y) n (选n)

Enter the name of the NetBackup server: gzdb1 (手工填写本机名,可不用域名)

Is gzdb1 the master server? [y,n] (y) (问本机是否是master server,选y)
Do you have any media servers? [y,n] (n) (问有无其他media server,暂无选n)

......
安装过程会在/etc/services增加服务
......

To change these entries modify the file /tmp/services.ov_edited.27459
and enter when ready to continue: (按回车继续)

......

Sending SIGHUP to xinetd process.

Reloading configuration: [ OK ] (系统的xinetd服务必须已启动)

......
安装过程会在/etc/rc.d增加系统启动和关闭服务脚本
......

Enter which host will store the global device database.
(default: gzdb1): (问全局库的主机,如默认显示是master server就按回车,否及手工输入)

Starting the NetBackup database manager process (bpdbm).

Do you want to create policy and schedule examples that you can view or use
when you are configuring your own policies and schedules? [y,n] (y) (问是否创建备份策略调度列表及事例,选y)

......
安装过程在创建policy and schedule
......

Do you want to start the Media Manager device daemon processes? [y,n] (y) (问是否启动Media Manager服务,选y)
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) (问备份恢复服务是否启动,选y)
Starting the NetBackup request daemon process (bprd).


Done executing NB.inst


VERITAS Installation Script
Copyright 1993 - 2004 VERITAS Software Corporation, All Rights Reserved.

Installation Options

1 NetBackup
2 NetBackup Client Software

q To quit from this script
Choose an option [default: q]: (安装完毕,选q退出)
(2) 编辑.bash_profile
在root目录下的.bash_profile里手工加入Veritas的命令路径,便于日常命令使用。
加入:
PATH=$PATH:$HOME/bin:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/admincmd:/usr/openv/netbackup/bin/goodies:/usr/openv
/volmgr/bin
保存退出
执行使生效:#. ./.bash_profile

执行bpps -a查看进程,应有以下进程
# bpps -a
NB Processes
------------
root 27633 1 0 11:23 pts/0 00:00:00 /usr/openv/netbackup/bin/bpdbm
root 27906 1 0 11:23 pts/0 00:00:00 /usr/openv/netbackup/bin/bprd
root 27635 27633 0 11:23 pts/0 00:00:00 /usr/openv/netbackup/bin/bpjobd


MM Processes
------------
root 27613 1 0 11:23 pts/0 00:00:00 /usr/openv/volmgr/bin/vmd

(3)编辑/usr/openv/netbackup/bp.conf文件
根据主机脚色加入以下信息
SERVER = gzdb1
SERVER = gzwebdb
SERVER = gzwebdbbak
CLIENT_NAME = gzdb1
MEDIA_SERVER = gzwebdb
MEDIA_SERVER = gzwebdbbak
......
注:SERVER--〉包括master server 和media server;
CLIENT_NAME--〉本机及要通过网络备到本机的主机;
MEDIA_SERVER--〉包括master server 和media server。

(4)安装补丁
安装以下所补丁
NB_51_4_M_280420.linux.tar
NB_CLT_51_4_M_280431.tar
NB_ORA_51_4_M_280463.linux2.4.tar
1)将文件放在一临时目录下,全部用tar接压;
2)用netbackup stop停止netbackup服务;
3)运行安装脚本;
#./Vrts_pack.install

There are 3 packs available in /data/veritas_inst:
(* denotes installed pack)

NB_51_4_M
NB_CLT_51_4_M
NB_ORA_51_4_M

Enter pack name (or q) [q]: NB_51_4_M (在列表里选择第一个补丁)

Pack NB_51_4_M requires the following pack levels(s) :
NB_CLT_51_4_M.

Pack NB_51_4_M will not be installed at this time.

Installing required pack, NB_CLT_51_4_M, now.

Pack NB_CLT_51_4_M co-requires the following pack level(s) :
NB_51_4_M.

Install pack NB_CLT_51_4_M Wed Feb 15 14:56:14 CST 2006 Rev. 1.19.4.23

Performing install of Linux/RedHat2.4 client binaries locally.

Running preinstall script.
......
安装程序会将“NB_CLT_51_4_M”一并安装
......

------------------------------------------------
Installation of pack NB_51_4_M completed Wed Feb 15 14:56:14 CST 2006 Rev. 1.19.4.23.
------------------------------------------------

There are 3 packs available in /data/veritas_inst:
(* denotes installed pack)

NB_51_4_M *
NB_CLT_51_4_M *
NB_ORA_51_4_M

Enter pack name (or q) [q]: (打*号表示已安装的补丁,master server不需安装NB_ORA_51_4_M,选q退出)

4)执行netbackup start重新启动服务。








2.安装media server
(1)运行安装程序
# /cdrom1/install


VERITAS Installation Script
Copyright 1993 - 2004 VERITAS Software Corporation, All Rights Reserved.

Installation Options

1 NetBackup
2 NetBackup Client Software

q To quit from this script
Choose an option [default: q]: 1

The NetBackup and Media Manager software is built for use on LINUX hardware.
Do you want to install NetBackup and Media Manager files? [y,n] (y) y

NetBackup and Media Manager are normally installed in /usr/openv.
Is it OK to install in /usr/openv? [y,n] (y) y

The Linux clients will be loaded.
Do you want to load any other NetBackup clients onto the server? [y,n] (y) n
开始安装
Reading client binaries for /usr/openv/netbackup/client/Linux
Linux/
......
+ /bin/cp ./fsanalyze /usr/openv/netbackup/bin/fsanalyze


A NetBackup Server or Enterprise Server license key is needed
for installation to continue.

Enter license key: (输入master licence)

:
NetBackup Enterprise Server Base product with the following features enabled:
Open File Backup
Remote Client Support
Robotic Library Sharing Support
Remote Media Server Support
Microsoft RSM Robotic Libraries
ADIC DAS/SDLC Robotic Libraries
IBM ATL Robotic Libraries
Fujitsu LMF Robotic Libraries
StorageTek ACS Robotic Libraries
Inline Tape Copy
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
是否增加其他licence,可以选y继续输入或选n等安装完后在管理界面上再添加


If this machine will be using a different network interface than the
default (gzwebdb), the name of the preferred interface should be used
as the configured server name. If this machine will be part of a
cluster, the virtual name should be used as the configured server name.

The domainname of your server appears to be "(none)".
You may choose to use this domainname in your configured NetBackup server
name, or simply use "gzwebdb" as the configured NetBackup server name.

Would you like to use "gzwebdb.(none)" as the configured
name of the NetBackup server? [y,n] (y) n (选n)

Enter the name of the NetBackup server: gzwebdb (手工填写本机名,可不用域名)

Is gzdb1 the master server? [y,n] (n) (问本机是否是master server,选n)

What is the fully qualified name of the master server? gzdb1 (在此输入master server的主机名,如“gzdb1”)

......
安装过程会在/etc/services增加服务
......

To change these entries modify the file /tmp/services.ov_edited.27459
and enter when ready to continue: (按回车继续)

......

Sending SIGHUP to xinetd process.

Reloading configuration: [ OK ] (系统的xinetd服务必须已启动)

......
安装过程会在/etc/rc.d增加系统启动和关闭服务脚本
......


Enter global device database host (default: gzdb1): (问全局库的主机,如默认显示是master server就按回车,否及手工输入)

Do you want to start the Media Manager device daemon processes? [y,n] (y) (问是否启动Media Manager服务,选y)
Starting the Media Manager device daemon processes.


Done executing NB.inst


VERITAS Installation Script
Copyright 1993 - 2004 VERITAS Software Corporation, All Rights Reserved.

Installation Options

1 NetBackup
2 NetBackup Client Software

q To quit from this script
Choose an option [default: q]: (安装完毕,选q退出)


(2)编辑.bash_profile
在root目录下的.bash_profile里手工加入Veritas的命令路径,便于日常命令使用。
加入:
PATH=$PATH:$HOME/bin:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/admincmd:/usr/openv/netbackup/bin/goodies:/usr/openv
/volmgr/bin
保存退出
执行使生效:#. ./.bash_profile

执行bpps -a查看进程,应有以下进程
# bpps -a
NB Processes
------------

MM Processes
------------
root 27613 1 0 11:23 pts/0 00:00:00 /usr/openv/volmgr/bin/vmd


(3)编辑/usr/openv/netbackup/bp.conf文件
根据主机脚色加入以下信息
SERVER = gzdb1
SERVER = gzwebdb
SERVER = gzwebdbbak
CLIENT_NAME = gzdb1
MEDIA_SERVER = gzwebdb
MEDIA_SERVER = gzwebdbbak
......
注:SERVER--〉包括master server 和media server;
CLIENT_NAME--〉本机及要通过网络备到本机的主机;
MEDIA_SERVER--〉包括master server 和media server。
(4)安装oracle agent
因为media server作为client端,需要在线备份oracle数据库,所以要安装database agent用以数据库的备份。
1) 进入加载database agent的光盘或IOS目录
cd /cdrom2
2)运新安装程序
# ./install

VERITAS Installation Script
Copyright 1993 - 2004 VERITAS Software Corporation, All Rights Reserved.

Installation Options
1 NetBackup Add-On Product Software
2 NetBackup Database Agent Software
q To quit from this script
Choose an option [default: q]: 2
**********
There are two ways to install database agent software.
1. Remote Installation: Loads the software on a master server with
the intent of pushing database software out to affected clients.

2. Local Installation: Loads and installs the software only to this
local machine.
**********
Do you want to do a local installation? [y,n] (n) 2
You have entered an invalid option.
Do you want to do a local installation? [y,n] (n) y

**********
NetBackup Database Agent Installation
Choose the Database Agents you wish to install
one at a time or select Install All Database Agents.

1) NetBackup for DB2
2) NetBackup for Informix
3) NetBackup for Lotus Notes
4) NetBackup for Oracle
5) NetBackup for SAP
6) NetBackup for Sybase
7) Install All Database Agents
q) Done Selecting Agents
x) Exit from this Script

Select the Oracle option if upgrading any of the
following: Oracle, Oracle on UNIX Advanced BLI Agent,
Oracle ServerFree Agent or Database Archiver.
The packages have been combined.

Choose an option: 4 (选4,安装oracle类型)

Choose an option: q (如没其他类型的数据库,默认q退出选择状态)


You have chosen to install these Database Agents:

NetBackup for Oracle

Is this list correct? [y,n] (y) (显示当前选择的database 类型,选y开始安装)

**********
Of the agents selected, the following are supported
on this platform and will be installed:

Oracle

Loading the Database Agent packages into the
/usr/openv/netbackup/dbext directory and installing.

**********

Installing NetBackup for Oracle
……安装程序在安装文件
NetBackup for Oracle installation completed.

**********

Execution of ./install_dbext is complete.

Execution of ./install is complete.

File /tmp/install_options_trace.27635 contains a trace of this install.

VERITAS Installation Script
Copyright 1993 - 2004 VERITAS Software Corporation, All Rights Reserved.

Installation Options

1 NetBackup Add-On Product Software
2 NetBackup Database Agent Software

q To quit from this script
Choose an option [default: q]:
退出完成安装


(5)安装补丁
安装以下所补丁
NB_51_4_M_280420.linux.tar
NB_CLT_51_4_M_280431.tar
NB_ORA_51_4_M_280463.linux2.4.tar
1)将文件放在一临时目录下,全部用tar接压;
2)用netbackup stop停止netbackup服务;
3)运行安装脚本;
#./Vrts_pack.install

There are 3 packs available in /data/veritas_inst:
(* denotes installed pack)

NB_51_4_M
NB_CLT_51_4_M
NB_ORA_51_4_M

Enter pack name (or q) [q]: NB_51_4_M (在列表里选择第一个补丁)

Pack NB_51_4_M requires the following pack levels(s) :
NB_CLT_51_4_M.

Pack NB_51_4_M will not be installed at this time.

Installing required pack, NB_CLT_51_4_M, now.

Pack NB_CLT_51_4_M co-requires the following pack level(s) :
NB_51_4_M.

Install pack NB_CLT_51_4_M Wed Feb 15 14:56:14 CST 2006 Rev. 1.19.4.23

Performing install of Linux/RedHat2.4 client binaries locally.

Running preinstall script.
......
安装程序会将“NB_CLT_51_4_M”一并安装
......

------------------------------------------------
Installation of pack NB_51_4_M completed Wed Feb 15 14:56:14 CST 2006 Rev. 1.19.4.23.
------------------------------------------------

There are 3 packs available in /data/veritas_inst:
(* denotes installed pack)

NB_51_4_M *
NB_CLT_51_4_M *
NB_ORA_51_4_M

Enter pack name (or q) [q]: NB_ORA_51_4_M (在列表里选择ORA补丁)

Install pack NB_ORA_51_4_M Wed Feb 15 14:56:14 CST 2006 Rev. 1.19.4.23


Please pick one of the following methods for installing this database pack.

1. Remote Installation: Loads the software on a master server with
the intent of pushing the pack out to affected clients.
2. Local Installation: Loads and installs the pack only to this
local machine.

Enter option (or q) [q]: 2

Saving pre-existing binaries.
Running preinstall script.
......
安装程序会将“NB_ORA_51_4_M”补丁
......

------------------------------------------------
Installation of pack NB_ORA_51_4_M completed Wed Feb 15 15:16:14 CST 2006 Rev. 1.19.4.23.
------------------------------------------------
There are 3 packs available in /data/veritas_inst:
(* denotes installed pack)

NB_51_4_M *
NB_CLT_51_4_M *
NB_ORA_51_4_M *

Enter pack name (or q) [q]: (打*号表示已安装的补丁,选q退出)

4)执行netbackup start重新启动服务。

5)用Veritas链接数据库
Veritas必须和数据库进行链接后才可以正常使用,使用veritas自带脚本(位置/usr/openv/netbackup/bin/oracle_link)进行数据库链接
,直接运行即可:
/usr/openv/netbackup/bin/oracle_link
三、配置Veritas
1.图形管理界面调用
1)用图形工具,如VNC打开master server图形界面,新建一个终端窗口。
2)运行/usr/openv/netbackup/bin/jnbSA命令出现“Netbackup Admin Console”界面。


2.配置Storage Units
在“Storage Units”处配置master server和media server的备份设备。
master server:
例(主机名为gzdb1,备份目录为/backup)
按右键选new
"Storage unit name"输入gzdb1-disk
"NerBackup media server"输入gzdb1
"Storage unit tupe"选disk
"Absolute pathname to directory"输入/backup
按"OK"退出

media server:
例(主机名为gzwebdb,备份目录为/backup)
按右键选new
"Storage unit name"输入gzwebdb-disk
"NerBackup media server"输入gzwebdb
"Storage unit tupe"选disk
"Absolute pathname to directory"输入/backup
按"OK"退出
......
如此将所有media server的主机都新建起来。


3.配置Veritas的catalog信息库备份
1)点左窗口的最上方的“gzdb1(Master Server)”->再选右边的“Configure the Catalog Backup”配置向导;
2)按提示操作选择,一直下一步直到Master server和所有的media server的备份信息目录都显示出来,按“OK”保存退出;
3)右键点左窗口的“Catalog”选“Configure the Catalog Backup”,出现配置窗口;
“Attributes”栏:“Mdia1”-〉选diak,-〉“Media density”备份目录名如输入/backup/catalog
“Schedule”栏: 选择“After each session of scheduled,user,or manual backups”
按“OK”退出


4.配置策略进行备份
建立oracle在线全备
1)新建一个策略,命名尽量能看出那台主机和备份的概要,如要对gzwebdb进行oracle全备可为:gzwebdb_ora_full;
“Attributes”栏:“Policy”选oracle,->“Policy storage unit”选要备份的主机本地的unit,如gzwebdb-disk;
“Schedules”栏:选“new”按钮->“name”定义一个名称可以策略名相同gzwebdb_ora_full,->“Frequency”选备份的频率,一日一备选
1 Days,->“Retention”选保存的时间,如保存一周选1 week;“start window”->根据需要设置备份策略启动周期的时间,保存按“OK”

“Clients”栏:按“new”手工输入备份主机名gzwebdb;
“Backup Selections”栏:按“new”手工输入备份脚本的路径,如/u01/oracle/ora920/backup/back_fulldb.sh
保存退出

2)可对策略进行手工备份,选定设定好策略,按右键选“Manual backup...”,及开始备份。备份过程状态可在窗口的“Activity Monitor
”处监控。


5.oracle备份脚本
在Veritas下设定oracle备份策略开始备份前,相应的oracle脚本需在指定的目录下存在,每个脚本可产生对应的日志文件,便于查看和差错时使用。备份脚本见附件“Veritas_ora_script.rar”,每台备份主机可根据实际情况修改使用。



阅读(2460) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~