首页 > 代码库 > NBU客户端安装失败

NBU客户端安装失败

  该服务器是阿里云上的centos6.8,是用来做oracle服务器,买来之后进行测试,发现没有安装图形化界面,还有部分包也没有安装。在oracle安装完成之后,尝试安装NBU的客户端,结果发生报错:The pbx_exchange daemon is not currently running,以下是全部过程:

1. 解压NBU客户端安装包,进入目录进行安装,连续回车并输入NBU服务器的计算机名后,发生如下报错:

[root@KG-ORA-01 nbu]# ls
NetBackup_7.6.0.1_CLIENTS2 NetBackup_7.6.0.1_CLIENTS2.tar.gz
[root@KG-ORA-01 nbu]# cd NetBackup_7.6.0.1_CLIENTS2
[root@KG-ORA-01 NetBackup_7.6.0.1_CLIENTS2]# ls
Doc install LICENSE NBClients VSM_README
[root@KG-ORA-01 NetBackup_7.6.0.1_CLIENTS2]# ./install

ERROR: The pbx_exchange daemon is not currently running. It must
be started before NetBackup installation can be continued.
Aborting ...

ERROR: A failure was detected running
/tmp/orasoft/nbu/NetBackup_7.6.0.1_CLIENTS2/NBClients/anb/Clients/usr/op
env/netbackup/client/Linux/RedHat2.6.18/cp_to_client kg-nbu-01.dev.chngalaxy.com 
KG-ORA-01 /tmp/install_trace.15277


2. 经过网上查找问题的原因,说是卸载VRTSpdx这个包就可以,然后查看是否有安装这个包,可以看到真的安装了这个包,因此就进行卸载,没想到会有警告,想着无所谓就忽略了:

[root@KG-ORA-01 ~]# rpm -q VRTSpbx 
VRTSpbx-1.5.4.0-0.x86_64
[root@KG-ORA-01 ~]# rpm -e VRTSpbx

warning: erase unlink of /opt/VRTSpbx/lib/libvxicui18n.so.6 failed: No such file or directory
warning: erase unlink of /opt/VRTSpbx/bin/vxpbxcfg failed: No such file or directory

[root@KG-ORA-01 ~]# rpm -e VRTSpbx 
error: package VRTSpbx is not installed

3. 卸载之后继续安装,仍然报下面的错误:

[root@KG-ORA-01 NetBackup_7.6.0.1_CLIENTS2]# ./install
ERROR: The pbx_exchange daemon is not currently running. It must
be started before NetBackup installation can be continued.
Aborting ...


ERROR: A failure was detected running
/tmp/orasoft/nbu/NetBackup_7.6.0.1_CLIENTS2/NBClients/anb/Clients/usr/op
env/netbackup/client/Linux/RedHat2.6.18/cp_to_client kg-nbu-01.dev.chngalaxy.com 
KG-ORA-01 /tmp/install_trace.15905

4. 继续在网上搜索资料,有说/opt目录空间不足,但是我这里/opt并非另外挂载,而是在根目录下面,因此删掉/opt目录下面的VRTSpbx文件夹:

[root@KG-ORA-01 openv]# cd /opt/VRTSpbx/
[root@KG-ORA-01 VRTSpbx]# ls
bin build_version lib log man resources
[root@KG-ORA-01 VRTSpbx]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 99G 29G 65G 31% /
tmpfs 32G 0 32G 0% /dev/shm
/dev/mapper/vgdata-lvdata1
493G 70M 467G 1% /oradata
/tmp/orasoft/CentOS-6.8-x86_64-bin-DVD1.iso
3.7G 3.7G 0 100% /media/centos
[root@KG-ORA-01 VRTSpbx]# du -sh
26M .
[root@KG-ORA-01 VRTSpbx]# cd ..
[root@KG-ORA-01 opt]# du -sh
28M .
[root@KG-ORA-01 opt]# ls
ORCLfmap VRTSpbx
[root@KG-ORA-01 opt]# rm -rf VRTSpbx/

5. 再次尝试安装,报错发生改变,查看安装日志也没看出结果

[root@KG-ORA-01 NetBackup_7.6.0.1_CLIENTS2]# ./install


ERROR: Installing PBX was unsuccessful.
Aborting ...


ERROR: A failure was detected running
/tmp/orasoft/nbu/NetBackup_7.6.0.1_CLIENTS2/NBClients/anb/Clients/usr/op
env/netbackup/client/Linux/RedHat2.6.18/cp_to_client kg-nbu-01.dev.chngalaxy.com 
KG-ORA-01 /tmp/install_trace.16435 


6. 开始了自己摸索的阶段,网上说是PBX这个包没有成功卸载掉,或者安装卸载的时候存在报错,想想可能是最开始卸载的时候有警告导致,所以就猜测,这个包会不会就在客户端安装包里,经过排查,还真的有这个包,于是把它拷贝出来,单独安装下

[root@KG-ORA-01 RedHat2.6.18]# pwd
/tmp/orasoft/nbu/NetBackup_7.6.0.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/RedHat2.6.18

 

[root@KG-ORA-01 RedHat2.6.18]# ls
client_bin.tar.gz ftp_to_client nbcheck pddeagent.tar.gz tar
client_config install_client NB-Java.tar.gz pdinstall version
cp_to_client installpbx nbj.conf sftp_to_client
extract_java JRE.tar.gz PBX.tar.gz ssh_to_client


[root@KG-ORA-01 RedHat2.6.18]# mkdit /tmp/pbx
-bash: mkdit: command not found
[root@KG-ORA-01 RedHat2.6.18]# mkdir /tmp/pbx
[root@KG-ORA-01 RedHat2.6.18]# cp PBX.tar.gz /tmp/pbx/

7. 真是奇葩,这里安装的时候又报已经安装完,但其实是没有安装,明显是上次卸载的时候没有成功卸载。

[root@KG-ORA-01 RedHat2.6.18]# cd /tmp/pbx/
[root@KG-ORA-01 pbx]# ls
PBX.tar.gz
[root@KG-ORA-01 pbx]# tar -zxvf PBX.tar.gz 
VRTSpbx-1.5.4.0-0.RH_x86_64.rpm
[root@KG-ORA-01 pbx]# ls
PBX.tar.gz VRTSpbx-1.5.4.0-0.RH_x86_64.rpm
[root@KG-ORA-01 pbx]# rpm -ivh VRTSpbx-1.5.4.0-0.RH_x86_64.rpm 
Preparing... ########################################### [100%]
package VRTSpbx-1.5.4.0-0.x86_64 is already installed
[root@KG-ORA-01 pbx]#

8. 实在找不到办法了,重启试试,结果重启之后再次安装,就成功了!!!无语(这里求大神指点),接着安装NBU客户端也没有问题。

[root@KG-ORA-01 pbx]# reboot

[root@KG-ORA-01 ~]# cd /tmp/pbx/
[root@KG-ORA-01 pbx]# ls
PBX.tar.gz VRTSpbx-1.5.4.0-0.RH_x86_64.rpm
[root@KG-ORA-01 pbx]# rpm -ivh VRTSpbx-1.5.4.0-0.RH_x86_64.rpm 
Preparing... ########################################### [100%]

1:VRTSpbx ########################################### [100%]

[root@KG-ORA-01 pbx]# cd /tmp/orasoft/nbu/NetBackup_7.6.0.1_CLIENTS2

[root@KG-ORA-01 NetBackup_7.6.0.1_CLIENTS2]# ./install

NBU客户端安装失败