problem installing NetBackup 6.5.3 client on Red Hat 4.8
Hi,
I have a very weird problem and I'm hoping somebody can help me because I have pretty limited experience with Netbackup.
Here's the scenerio: I have a Red Hat Linux box that I'd like to backup in my Netbackup 6.5.3 environment. So I grabbed NetBackup_6.5_CLIENTS2.tar.gz, unpacked it and ran the install script. Here's the problem.
The install script runs, unpacks some files and puts them in the usual spot (/usr/openv) but that's it. It doesn't create anything in /etc/xinetd.d so they agents never start. Consequently nothing's listen on 13782 and my server can't connect.
But the script runs fine - there's no error.
So pulling through the install script (I'm better at scripting than I am at netbackup so I went this route) I see that this install script calls 2 other scripts.
First it calls ${MY_CD_PATH}/NBClients/catalog/anb/client.inst ${Trace_File}
and then it can call /usr/openv/netbackup/bin/install_bp
Now it looks like the install_bp script is what does the real meat of the installation - it creates the services at least. However that script never runs. It never runs because it's in an if block that looks like this:
if [ -f ${TMPDIR}/do_install_bp.$$.status ]
So I go hunting for what creates that file and you find a block higher up that looks like this:
if [ "${client_CD}" = "no" ]
so I go looking for what controls that and I find another if block that looks like this:
if [ ! -d "${MY_CD_PATH}/NBClients" ]
So - what we see if, if I have a folder in my install directory named NBClient then it doesn't install the services and I do have that folder so my services don't get installed. I can follow that
What doesn't make sense is the logic behind the scenes. The reason I have this folder is because the tarball put it there - I didn't do that. So the install process is creating a folder that ruins the install process.
I'd be happy to run install_bp by hand but i'm not sure what else I might be missing - who knows what could happen - recursive rm as part of the cleanup? Who knows. I'd rather not risk it and I'd rather have this install make sense.
So has anybody had this problem? It looks to me like this script would never ever work but maybe I'm missing something.
Thanks in advance for any help.
I found the problem - the install script runs a check to see if the machine is a server or not. It's just an if [-f] statement - so it's only checking for the existance of a file, not if the service is running or anything.
The first time through the install somebody used the wrong software and installed the server files. They weren't setup to run and they weren't in xinetd or using ports or anything but the files were there and so I failed that check.
Because I failed that check it assumed I wanted to install the client software for the purpose of remote installation to other clients (which makes sense if this had actually been a server)
Once I found that line in the install script and saw what it was doing I completely removed the openv folder and did a fresh install which worked as expected.