-
软件安装
软件安装主要包括
MasterServer
< br>、
MediaServer
、软件的安装。在备份系
p>
统中,选择
hp
做为
MasterServer,
同时充当
MediaServe
r
的角色。为便于管理,
确定
Mast
erServer
作备份系统的
Global
Database Host
,用于存放所有的配置
和备份信息
。下面逐一介绍每一种软件的安装过程,软件安装列表见附件三。
2
.
4
.
1
NetBackup DataCenter MasterServer
Installition
安装前作如下准备工作,在
Med
iaServer
安装时也要作同样的准备:
·连接硬件
所有
MediaServer/MasterServer
以及带库、磁带机均连接到一
台
SAN
光纤交换机。
·硬件识别
在安装软件之前,要保证
系统能够识别磁带机和机械手(只需
MasterServer
识别机械手)
#ioscan
–
fnC tape
·系统空间
安装
MasterServer
之前,确保系统空间大小:
RAM
≥
512Mb
安装目录可用空间≥
64Mb
/tmp
可用空间≥
32Mb
·系统配置
在备份
环境中每台主机都要修改
/etc/hosts
文件,提供
p>
hostname/ip
的
解析。在
MasterServer
端的
/etc/h
osts
文件中增加如下内容:
主机
Hp
SUNV880_A
SUNV880_B
IP
10.46.0.132
10.46.0.133
表
2
主机
/IP-
Address
对应表
安装步骤如下:
step1:
pfs_mountd &
pfsd 6&
pfs_mount -o
xlat=unix /dev/dsk/c3t2d0 /cdrom
step2:
切换到光盘目录
#cd /cdrom
step3:
执行安装脚本
#./install
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]:
1
< br>/*
选则
1
,安装
Server,
同时也安装
mediaserver
软件
The NetBackup
and Media Manager software is built for use on hp
hardware.
Do you want to install
NetBackup and Media Manager files? (y/n) [y]
y
NetBackup is
normally installed in /usr/openv/netbackup.
Is it OK to install in
/usr/openv/netbackup? (y/n) [y]
y
/*
确定
Netbackup
安装目录
Media Manager is normally installed in
/usr/openv/volmgr.
Is it OK to install
in /usr/openv/volmgr? (y/n) [y]
y
/
*
确定
MediaManager
安装
目录
The hp clients will be
loaded.
Do you want to load any other
NetBackup clients onto the server? (y/n) [y] n
/*
确定是否安装其他
client
,
server
本身已包含
client
软件,所以选择“
n
”
……
Enter license key:
/*
输入
NetBackup
DataCenter Base license
AJX6-OPWD-
IC6K-3N36-383P-NCNP-PNNR-PPP:
NetBackup DataCenter Base product with the
following features enabled:
Core Frozen Image Services
Open Transaction Manager
has
been registered.
All additional keys
should be added at this time.
Do you
want to add additional license keys now? (y/n) [y]
y
/*
输入其他相关
licen
se,
也可在安装完软件后再输入其他
license
License Key Utility
-------------------
A) Add a License Key
D) Delete
a License Key
F) List Active
License Keys
L) List Registered
License Keys
H) Help
q) Quit License Key Utility
Enter a letter:
Installing
NetBackup DataCenter version: 4.5GA
Is
backupserver
the
master
server?
(y/n)
[y]
y
/*
设置主机
backupserver
作
masterserv
er
Do you have any media
(slave) servers? (y/n) [n]
y
/*
设置其他主机作
mediaser
ver
Enter the fully
qualified name of a media (slave) server (q to
quit)?
SUNV880_A
Enter the fully qualified name of a
media (slave) server (q to quit)?
SUNV880_B
Enter the fully
qualified name of a media (slave) server (q to
quit)?
q
Checking
for a bpcd entry in /etc/: Adding bpcd entry.
Original /etc/ saved as
/etc/_061103.10:25:08.
Checking for a
vnetd entry in /etc/: Adding vnetd entry.
Checking for a vopied entry in /etc/:
Adding vopied entry.
Checking for a
bpjava-msvc entry in /etc/: Adding bpjava-msvc
entry.
Checking
/etc/services for the needed NetBackup and Media
Manager services.
Copying
original /etc/services file to
/etc/_061103.10:31:32
/etc/services to
update NetBackup and Media Manager services.
/etc/services
will
be
updated
to
add
the
following
entries
for
NetBackup/Media
Manager.
bprd
13720/tcp bprd
bpcd 13782/tcp
bpcd
bpdbm 13721/tcp bpdbm
vnetd 13724/tcp vnetd
vopied 13783/tcp vopied
bpjobd 13723/tcp bpjobd
nbdbd 13784/tcp nbdbd
visd 9284/tcp visd
bpjava-msvc 13722/tcp bpjava-
msvc
vmd 13701/tcp vmd
acsd 13702/tcp acsd
tl8cd 13705/tcp tl8cd
tldcd 13711/tcp tldcd
ts8d 13709/tcp ts8d
odld 13706/tcp odld
tl4d 13713/tcp tl4d
tsdd 13714/tcp tsdd
tshd 13715/tcp tshd
tlmd 13716/tcp tlmd
tlhcd 13717/tcp tlhcd
lmfcd 13718/tcp lmfcd
rsmd 13719/tcp rsmd
To change these entries
modify the file /tmp/_edited.24848
and
enter
/etc/services has been updated to
contain NetBackup and Media Manager services.
To make NetBackup and Media Manager
start up automatically when the system is
restarted, the script found in
/usr/openv/netbackup/bin/goodies has
been placed in the /etc directory, you
must modify /etc/inittab to include it.
……
Enter which
host will store global device information.
(default: backupserver): backupserver
/*
设置
masterserver
作全局设备信息中心
To be
able to install the client software the NetBackup
processes need to be started. Do you
want to start the
NetBackup processes
so client software can be installed? (y/n) [y]
y
Starting the
NetBackup database manager process (bpdbm).
/*
启动
bpdbm
进程以装载
client
软件
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]
n
/*
确定是否安装策略模板
Client database indexing reduces the
search time when restoring
client
files, but it takes about 2% more disk space.
Do you want to index the client
database files? (y/n) [y]
y
/*
确定是否采用
client
index
文件
The
default index level is 9 levels. Use the default?
(y/n) [y]
y
/*
确定
client index level
Running index_clients process in
background mode.
Output from the
process will be written to /tmp/index_.
Do you want to
start the Media Manager device daemon processes?
(y/n) [y]
y
Starting the
Media Manager device daemon processes.
/*
确定是否启动
MediaManager
进程
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).
/*
确定是否启动
Netbackup
监听进程
Done
executing
Step4
:
确认安装成功
#/usr/openv/netbackup/bin/goodies/_all
关闭所有已启动的
NBU
进程
#/usr/openv/netbackup/bin/goodies/netbackup start
启动
NBU
进程
#/usr/openv/netbackup/bin/bpps
–
a
查看
N
BU
进程
#/usr/openv/netbackup/bin/jnbSA&
启动
NBU
的
java
管理
界面
至此
,MasterServe
r
软件安装完毕。
NetBackup DataCenter MediaServer
Installation
MediaServer
的安装与
MasterServer
相类似,以其中一台为例,其他可
照仿。
安装前作如下准备工作,在
MediaServer
安装时也要作同样的准备:
·连接硬件
将
MediaServer
的光纤连
接到
SAN
光纤交换机。
·硬件识别
在安装软件之前,要保证
系统能够识别磁带机(只需
MasterServer
识
别机械手)
#iostat
–
E
如果用上述命令看不到连接的
磁带机,用命令
cfgmg
重新识别。
·系统空间
安装
MasterServer
之前,确保系统空间大小:
RAM
≥
512Mb
安装目录可用空间≥
64Mb
/tmp
可用空间≥
32Mb
·系统配置
在备份
环境中每台主机都要修改
/etc/hosts
文件,提供
p>
hostname/ip
的
解析。在
MediaServer
端的
/etc/ho
sts
文件中增加如下内容:
hp-backupserver
安装步骤如下:
step1:
Mount cdrom
step2:
切换到光盘目录
#cd /cdrom/cdrom0
step3:
执行安装脚本
#./install
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]: 1
/*
选则
1
,安装
Server,
同时也安装
mediaserver
软件
The NetBackup
and Media Manager software is built for use on
RS6000 hardware.
Do you want to install
NetBackup and Media Manager files? (y/n) [y]
y
NetBackup is
normally installed in /usr/openv/netbackup.
Is it OK to install in
/usr/openv/netbackup? (y/n) [y]
y
/*
确定
Netbackup
安装目录
Media Manager is normally installed in
/usr/openv/volmgr.
Is it OK to install
in /usr/openv/volmgr? (y/n) [y]
y
/*
确定
MediaManager
安装目录
The RS6000 clients will be loaded.
Do you want to load any other NetBackup
clients onto the server? (y/n) [y]
n
/*
确定是否安装其他
client
,
server
本身已包含
client
软件,所以选择“
n
”
……
Enter
license
key:
/*
输入
NetBackup
DataCenter
SAN
MediaServer
license
AJX6-OPWD-IC6K-3N36-383P-NCNP-PNNR-PPP:
NetBackup DataCenter Base
product with the following features enabled:
Core Frozen Image Services
Open Transaction Manager
has been registered.
All additional keys should be added at
this time.
Do you want to add
additional license keys now? (y/n) [y]
y
/*
输入其他相关
license,
也可在安装完软件后再输入其他
license
License Key Utility
-------------------
A) Add a License Key
D) Delete
a License Key
F) List Active
License Keys
L) List Registered
License Keys
H) Help
q) Quit License Key Utility
Enter a letter:
q
Installing NetBackup DataCenter
version: 4.5GA
Is
P69WIPSH02 the master server? (y/n) [y] n
/*
设置主机
backupserv
er
作
masterserver
Which host will be the master server
:backupserver
Checking for a bpcd
entry in /etc/: Adding bpcd entry.
Original /etc/ saved as
/etc/_061103.10:25:08.
Checking for a
vnetd entry in /etc/: Adding vnetd entry.
Checking for a vopied entry in /etc/:
Adding vopied entry.
Checking for a
bpjava-msvc entry in /etc/: Adding bpjava-msvc
entry.
Checking
/etc/services for the needed NetBackup and Media
Manager services.
Copying
original /etc/services file to
/etc/_061103.10:31:32
/etc/services to
update NetBackup and Media Manager services.
/etc/services
will
be
updated
to
add
the
following
entries
for
NetBackup/Media
Manager.
bprd
13720/tcp bprd
bpcd 13782/tcp
bpcd
bpdbm 13721/tcp bpdbm
vnetd 13724/tcp vnetd
vopied 13783/tcp vopied
bpjobd 13723/tcp bpjobd
nbdbd 13784/tcp nbdbd
visd 9284/tcp visd
bpjava-msvc 13722/tcp bpjava-
msvc
vmd 13701/tcp vmd
acsd 13702/tcp acsd
tl8cd 13705/tcp tl8cd
tldcd 13711/tcp tldcd
ts8d 13709/tcp ts8d
odld 13706/tcp odld
tl4d 13713/tcp tl4d
tsdd 13714/tcp tsdd
tshd 13715/tcp tshd
tlmd 13716/tcp tlmd
tlhcd 13717/tcp tlhcd
lmfcd 13718/tcp lmfcd
rsmd 13719/tcp rsmd
To change these entries
modify the file /tmp/_edited.24848
and
enter
/etc/services has been updated to
contain NetBackup and Media Manager services.
To make NetBackup and Media Manager
start up automatically when the system is
restarted, the script found in
/usr/openv/netbackup/bin/goodies has
been placed in the /etc directory, you
must modify /etc/inittab to include it.
……
Enter which
host will store global device information.
(default: backupserver): backupserver
/*
设置
masterserver
作全局设备信息中心
To be
able to install the client software the NetBackup
processes need to be started. Do you
want to start the
NetBackup processes
so client software can be installed? (y/n) [y]
y
Starting the NetBackup
database manager process (bpdbm).
p>
/*
启动
bpdbm
进程以装载
client
软件
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]
n
/*
确定是否安装策略模板
Client database indexing reduces the
search time when restoring
client
files, but it takes about 2% more disk space.
Do you want to index the client
database files? (y/n) [y]
y
/*
确定是否采用
client
index
文件
The
default index level is 9 levels. Use the default?
(y/n) [y]
y
/*
确定
client index level
Running index_clients process in
background mode.
Output from the
process will be written to /tmp/index_.
Do you want to start the Media Manager
device daemon processes? (y/n) [y]
y
Starting the Media Manager device
daemon processes.
/*
确定是否启动
MediaManager
进程
Done executing
Step4 :
确认安装成功
#/usr/openv/netbackup/bin/goodies/_all
关闭所有已启动的
NBU
进程
#/usr/openv/netbackup/bin/goodies/netbackup start
启动
NBU
进程
#/usr/openv/netbackup/bin/bpps
–
a
查看
N
BU
进程
至此
,MediaServer
软件安装完毕。可以继续安装其它
server,
或者安装
patch(
见
2.5)
2
.
4
.
4 NetBackup
DataCenter Agent for Sybase Database Installation
Netbackup Agent for Sybase
提供了
Veritast Netbackup DataCe
nter
与
Sybase
的一个
API
接口,用来实现
Sybase
数据库的热备份和备份策略管理。
软件安装在运行
sybase
数据库并要使用
NBU
进行备份的主机,当然,这些主机
也是
NBU
< br>的备份
client
。
安装前的准备工作:
·系统空间
安装目录可用空间
≥
64Mb
/tmp
目录可用空间
≥
32Mb
·
sybase
数据库
安装软件时数据库安装目录要存在,确认
$$SYABASE_HOME
变量
安装步骤
#cd /cdrom/cdrom0
Step3:
执行安装脚本
#./install
**********
There are two ways to install database
extension 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 sofware only to this
local machine.
**********
Do
you want to do a local installation? (y/n) [n]
y /*
键入
Y
选择本地安装
NetBackup
Database Extension Installation
Choose
the Database Extensions you wish to install
one at a time or select Install All
Database Extensions.
1)
NetBackup for DB2
2) NetBackup
for Informix
3) NetBackup for
Lotus Notes
4) NetBackup for
Oracle
5) NetBackup for Oracle
on UNIX Advanced BLI Agent
6)
NetBackup for SAP
7) NetBackup
for Sybase
8) NetBackup for
Teradata
9) Install All
Database Extensions
q) Done Selecting Extensions
x) Exit from this Script
Choose an
option: 7
/*
键入
7
选择安装
Netbackup for sybase
Choose
an option: q
/*
键入
q
,选择完毕
You have chosen to install these
Database Extensions:
NetBackup
for Sybase
Is this list correct? (y/n)
[y]
y
/*
键入
y
确认安装
**********
Of the extensions
selected, the following are supported
on this platform and will be installed:
Sybase
……
Please specify the Sybase instance home
path name:
/sybase
/*
输入
sybase
数据库的
p>
home path
……
3
.
2
设备配置
3
.
2
.
1
配置说明
设备配置主要包括磁带机、
机械手
(robot)
、
共享设备的配置。
机械手用来抓
取、识别磁带,有一
条光纤与交换机相连。
SAN MediaServer
执行备
份任务时需
要使用机械手,如果机械手设置为共享方式,则
SA
N MediaServer
之间要进行
vmd/tldcd<
/p>
等进程间的通讯,
这样既增加了配置的复杂程度,
同时防火墙要放宽更
多的过滤规则,安全性降低,因此机械手由
MasterServer(
同时也是一个
Media
Server)
控制,
这样其他
Med
iaServer
有对机械手的请求时,
只和
< br>MasterServer
进行通讯即,
这样不仅使配置
简化,
还增加了系统安全性,
减少了
I
P
的网络流量,
同时它能满足系统的备份要求。由
SAN MediaServer
共享使用,并且机械手和磁
带机支持
device
serialization
.
,
这是设备
Firmware
的一个特征,
NBU
通过设备
序列号识别和标识机械手与磁带机。
3
.
3
介质配置
3
.
3
.
1
配置说明
介质配置主要包括
volume
、
volume
pool
及
Calalog volume
配置。一个
volume
对应一盒磁带,一个
volume pool
包含多个
volume<
/p>
。
Volume pool
概念的
引入是为了便于备份数据的管理。
可以根据不同的备份类型划分不同的
pool
,
例
如文件系统备份和数据库备份可以放在不同的
pool
里;
p>
也可以根据不同的部门或
不同的主机划分不同的
pool
。
每盒磁带上都有一个条形码
(
barcode
)
,
在磁带库
加电自检时都可识别到。在
Verita
s NBU
中,每一个
volume
都
有一个
Meida ID,
此
ID
p>
可以自己定义,也可以由
NBU
自动定义,
它根据
barcode
产生
Media
ID
。一般
情况下由
NBU
自动产生
MediaID,
这样
< br>MediaID
与
barcode
可以一一对应。
另外,
系统提供一个
scratch
volume
pool
,
它的作用是当其他
volume
pool
中没有可用的磁带时,
NBU
从
scratch
volume
pool
中抓取一盒未曾用过的
volume
加入其中,
以保证备份能顺利进行。
volume pool
已用
slot
规划
slot
Sybase-pool
1-15
1-15
Other-pool
16-20
16-20
scratch pool
21-22
21-22
表
3 volume
pool
表
3
.
3
.
2
volume pool
配置
可以通过图形界面配置
volume
pool
。
步骤如下:
Step1:
启动并登录
java
管理界面
< br>
#/usr/openv/netbackup/bin/jnbSA&
Step2:
打开“
Media and Device Manageme
nt
”
,
选择
Media
然后打开菜单
Actions->New->volume
pool
step3:
输入
volume
pool
的名字
如果是定义
scratch
pool
,则选择
“
scratch volume
pool
”
step4:
重复
step2-step3,
定义所有的
volume pool
3
.
3
.
3 Volume
配置
volume
< br>配置主要是把多个
volume
划归到不同的
volume pool
中,同时指明
volum
e
相关参数。步骤如下:
Step1:
启动并登录
java<
/p>
管理界面
#/usr/openv/netbackup/bin/jnbSA&
Step2:
打开“
Media and Device Manageme
nt
”
,
选择
Media
然后打开菜单
Actions->inventory
robot
出现如下窗口
:
图
3 robot inventory
在
Select robot
框中选择
Device host =
backupserver
在
Select
Inventory operation
框中选择
“
show contents of
robot
”
然后点击“
start
”,结束后下面的窗口中将显示
rob
ot
检测到的
volume
此窗口中其他功能选项请参见〈
Media
ManagerMent>
Step3:
关闭上述对话框,点
击菜单
Actions->New->volume
??
,
打开对话框: