安装环境

Centos 7.6 x86_64

netbackup 9.1 服务端

创建用户

1
2
3
4
5
groupadd nbwebgrp
mkdir -p /usr/openv/wmc
useradd -g nbwebgrp -c 'NetBackup Web Services account' -d /usr/openv/wmc nbwebsvc
useradd -c 'NetBackup Services account' -d /usr/openv/ nbusvc
usermod -a -G nbwebgrp nbusvc

配置系统参数

1
2
3
4
5
6
7
8
echo "kernel.sem = 300 307200 32 1024" >> /etc/sysctl.conf 
sysctl -p
echo "* soft nofile 8192" >> /etc/security/limits.conf
echo "* hard nofile 65536" >> /etc/security/limits.conf
echo "* soft nproc 65536" >> /etc/security/limits.conf
echo "* hard nproc 65536" >> /etc/security/limits.conf
echo "* soft fsize unlimited" >> /etc/security/limits.conf
echo "* hard fsize unlimited" >> /etc/security/limits.conf

修改主名

配置主机名

1
2
hostnamectl set-hostname nbuserver
echo "192.168.31.160 nbuserver" >> /etc/hosts

关闭SELINUX

1
2
sed -i 's/enforcing/disabled/g' /etc/selinux/config
setenforce 0

修改系统环境变量

vi /etc/profile
添加如下行

1
2
PATH=$PATH:$HOME/bin:/usr/openv/netbackup/bin/admincmd:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/goodies:/usr/openv/volmgr/bin
export PATH

安装备必软件包

1
2
如何配置YUM源我就不写了,大家应该都会
yum install net-tools unzip gzip bzip* libnsl.so* insserv-compat* libXtst compat* -y

安装master-server&& media server

veritas_customer_registration_key.json需要提前准备,购买了许可之后可以通过控制台下载(从netbackup 8.0变回veritas商标之后,安装都需要许可。还是symantec时代的版本安装时不需要许可,)

1.查看准备的软包

1
2
[root@netbackup ~]# ls
anaconda-ks.cfg License.txt NetBackup_9.1.0.1_LinuxR_x86_64.tar.gz veritas_customer_registration_key.json

使用tar解压软件包

1
tar -zxvf NetBackup_9.1.0.1_LinuxR_x86_64.tar.gz

进到安装目录里查看

1
2
3
[root@netbackup ~]# cd NetBackup_9.1.0.1_LinuxR_x86_64
[root@netbackup NetBackup_9.1.0.1_LinuxR_x86_64]# ls
Doc install LICENSE linuxR_x86 NBInstallAnswer-client.template NBInstallAnswer-master.template NBInstallAnswer-media.template

开始安装,这里由于输出太长,我只列出关键位置,大家安装的时候可以参考。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[root@netbackup NetBackup_9.1.0.1_LinuxR_x86_64]# ./install 


Veritas Installation Script
Copyright (c) 2021 Veritas Technologies LLC. All rights reserved.


Installing NetBackup Server Software


Please review the VERITAS SOFTWARE LICENSE AGREEMENT located on
………………
中间太长,少略一下。
………………

ATTENTION! To help ensure a successful upgrade to NetBackup 9.1.0.1,
please visit the NetBackup 9.x Upgrade Portal:
https://www.veritas.com/content/support/en_US/article.100048493.

Do you wish to continue? [y,n] (y) ---------输入Y继续
Starting NetBackup Deduplication installer
testing: /tmp/pdde_pkg_dir_16149
NetBackup Deduplication preinstall check passed
Running install analysis tool.

Is this host the master server? [y,n] (y) ---------输入Y继续
Are you currently performing a disaster recovery of a master server? [y,n] (n) ---------输入N,这里是全新安装,不是恢复安装

Using nbwebsvc and nbwebgrp for the
NetBackup web service user and group.

ATTENTION! Provide the name of the service user account to be used to start
most of the daemons.

- It is not recommended to use the root user as the service user.
- The length of the service user name must be less than 32 characters.
- The service user name must contain only English characters.
- The nbwebsvc user should not be used as the service user.
- nbwebgrp must be a secondary group of the service user.
For more details, see the article: https://www.veritas.com/docs/100048220.

Enter the name of the service user account to be used to start most of the daemons: nbusvc

The private_tmp value is /tmp/nbcheck_dir.16107

Checking for critical system conditions...

………………
中间太长,少略一下。
………………
A customer registration key is required to proceed with the installation of this
master server.
Log into Veritas NetInsights Console (https://netinsights.veritas.com) and go
to the "Registration Keys" page and download the appropriate customer registration
key for this master server. If you need help with customer registration keys to
proceed with the installation or upgrade of this master server, please refer to the
NetBackup Release Notes or contact Veritas Support.


Please enter the fully qualified path containing your customer registration key
file, or enter q to quit the install script. -------这里会提示让你输入密钥文件的位置
/root/veritas_customer_registration_key.json

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) --------回复Y继续

NetBackup and Media Manager are normally installed in /usr/openv.
The existing /usr/openv directory will be used for NetBackup and Media Manager.
No existing NetBackup server files to save.
Client folder [/usr/openv/netbackup/client] does not exist. No work to do.

Reading NetBackup files from /root/NetBackup_9.1.0.1_LinuxR_x86_64/linuxR_x86/anb

Checking for pre-existing SYMCnetbp package.
package SYMCnetbp is not installed
Successfully copied VRTSpddes.rpm into staging area.
Successfully copied VRTSpddei.rpm into staging area.

x openv/netbackup/client/Linux/
x openv/netbackup/client/Linux/SuSE4.4.73/
x openv/netbackup/client/Linux/SuSE4.4.73/VRTSpddea.rpm
………………
中间太长,少略一下。
………………
A NetBackup Server or Enterprise Server license key is needed
for installation to continue.

Enter license key: XXXX-XXXX-XXXX-XXXX-XXX-XXXX -----------这里让你输入密钥,我就脱敏一下

XXXX-XXXX-XXXX-XXXX-XXX-XXXX :
NetBackup Enterprise Server Base product with all the features enabled
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 ----------问是否还有其它密钥需要继续输入,没有回复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: 9.1.0.1



If this machine will be using a different network interface than the
default (netbackup), 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.

Would you like to use "netbackup" as the configured
NetBackup server name of this machine? [y,n] (y) -----------回复Y



Media servers can be added during this installation or
to a NetBackup environment after installation completes.
Refer to the NetBackup Administrator's Guide, Volume I for
more information.

Do you want to add any media servers now? [y,n] (n) -----------问是你是否要加其它的media servers这里N就行

………………
中间太长,少略一下。
………………

Do you want to start the job-related NetBackup daemons
so backups and restores can be initiated? [y,n] (y) ------------回复Y,开始启动服务
Starting the NetBackup request daemon process (bprd).
………………
中间太长,少略一下。
………………
Starting the NetBackup Bare Metal Restore Boot Server daemon.

Checking the current NetBackup KMS configuration.


OpsCenter is the monitoring, reporting and administrative
solution designed to centrally manage one or more NetBackup
installations from a web browser.

If an OpsCenter server already exists in your environment
or you plan to install one, enter the real hostname of that
OpsCenter server here. Do not use a virtual name. If you
do not want this local machine to be an OpsCenter server,
enter NONE.

Enter the OpsCenter server (default: NONE): -----这里没有OPSCENTER就回车就行(是veritas的一套管理平台)
WARNING: Catalog backups fail if the disaster recovery passphrase is not set.
NetBackup server installation complete.
Running install analysis tool.
File /usr/openv/tmp/install_trace.16107 contains a trace of this install.

解决安装后WEB控制台无法打开

netbackup提供了WEB控制台,也可以用来配置备份(当然也是JAVA控制台可以使用)

创建如下文件,并赋予权限

1
2
3
touch /usr/openv/var/global/wsl/config/allowedlist.properties
chmod a+r /usr/openv/var/global/wsl/config/allowedlist.properties
chown nbwebsvc:nbwebgrp /usr/openv/var/global/wsl/config/allowedlist.properties

编辑 allowedlist.properties文件,输入如下内容

1
2
3
4
5
[root@nbmaster2 config]# cat allowedlist.properties
#Properties file to allow additional valid HOST and X-FORWARDED-HOST header values
#Tue Jan 25 2022
host.headers=192.168.31.160
x.forwarded.host.headers=192.168.31.160

如果netbackup安装在windows平台,需要重启Web Management Console service

我这里是LINUX平台,需要按如下方法重启服务

1
/usr/openv/netbackup/bin/nbwmc stop && /usr/openv/netbackup/bin/nbwmc start.

给备份存储目录赋予权限

我这里以/mnt/remotedr为例,如不赋予权限,备份的时候会提示目录没有写入权限

1
2
chown -R nbsvcusr /mnt/remotedr
chmod -R 755 /mnt/remotedr

客户端JAVA CONSOLE不是中文

可以在windows平台安装netbackup管理控制台,但是默认是英文的,这时候可以去官网下载语言包,或者去服务端的安装包里找到语言包文件
拷贝ZH、i18n_zh.properties、dbexti18n_zh.properties至客户端如下目录
C:\Program Files\Veritas\Java\vrts\nbvsm_l10n

之后再打开客户端就是中文了

linux服务器端如何打开控制台

/usr/open/netbackup/bin/jnbSA启动控制台

就先写到这里,后面的有空再写………………

欢迎联系我一起讨论。我的微信号:Eric_xu_2023

也欢迎关注我的公众号:

1.png