How to install NetBackup 7.0 on Ubuntu 10.04

NetBackup 7 officially “supports” Ubuntu Linux 8.04, 9.04, and 10.04 for Linux clients, as seen in the Software Compatibility List but the installer doesn’t “work”.

Specifically, the problem seems to be that PBX, or Private Branch Exchange, is distributed in an RPM package along with the client.  The normal shell script that installs the client kicks an error when PBX fails to install:

Installing PBX... ./installpbx: 1510: rpm: not found
 ERROR: Could not install VRTSpbx package
 Please see installation log for more details
 Installation log located here: 
/var/tmp/installpbx-1928-100810135211.log

 Installing PBX was unsuccessful.
 Aborting ...

Opening the next log reveals more:

[10-08-10-13:52:11] Extracting 
/var/tmp/VRTSpbx_1928/PBX.tar.gz into 
/var/tmp/VRTSpbx_1928
[10-08-10-13:52:11] Installing/Upgrading private branch 
exchange on Linux
[10-08-10-13:52:11] Checking for the PBX process...
[10-08-10-13:52:11] PBX process is not running.
[10-08-10-13:52:11] rpm -U --nodeps --nopostun --nopreun
/var/tmp/VRTSpbx_1928/VRTSpbx-1.4.0.10-10.RH_x86_64.rpm
./installpbx: 1568: rpm: not found
[10-08-10-13:52:11] ERROR: Could not install VRTSpbx 
package
[10-08-10-13:52:11] Removing temporary directory
[10-08-10-13:52:11] rm -rf /var/tmp/VRTSpbx_1928
[10-08-10-13:52:11] installpbx exiting with return 
code: 1
[10-08-10-13:52:11] Please see installation log for more 
details
[10-08-10-13:52:11] Installation log located here:
/var/tmp/installpbx-1928-100810135211.log

As this isn’t Red Hat, rpm is not present on the system, nor would it work if it was…

With the help of the folks at Symantec, here’s what will get around this problem and help you install the client.  Hopefully they’ll put this online in a tech note soon, but I’m guessing I’m not the only person who ran into this problem, so here are my notes.  I am not a Linux wizard, by any means, but here are the required steps to make this work.  This also requires you to install alien, a package that’ll let you install rpm packages on Ubuntu:

 

Get the giant 7.0 client tarball and copy it to your server.  I downloaded mine from FileConnect.

gunzip NetBackup_7.0_CLIENTS_GA.tar.gz.gz

tar xvf NetBackup_7.0_CLIENTS_GA.tar.gz

cd NB_7.0_CLIENTS_GA/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/RedHat2.6

sudo mkdir /tmp/pbx

sudo cp PBX.tar.gz /tmp/pbx

cd /tmp/pbx

sudo gzip -dv PBX.tar.gz

sudo tar xvf PBX.tar

sudo apt-get install alien

sudo alien -i --scripts VRTSpbx-1.4.0.10-10.RH_x86_64.rpm
(you will see lots of errors, you can ignore them)

Then start PBX on the CLIENT:
sudo /opt/VRTSpbx/bin/vxpbx_exchanged start

sudo nano NB_7.0_CLIENTS_GA/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/RedHat2.6/cp_to_client

Comment out lines 1723 - 1732 by inserting a # at the start of the line (use Control-W in nano to search for PBX to help locate this):

  1723 #       ${ECHO} " 
  1724 #Installing PBX..." 
  1725 
  1726 #       ${SOURCE_DIR}/installpbx -f PBX.tar.gz 
  1727 #       if [ $? -ne 0 ] ; then 
  1728                 ${ECHO} " 
  1729 #Installing PBX was unsuccessful. 
  1730 #Aborting ..." 
  1731 #               exit 1 
  1732 #       fi

Hit Control-X to save and exit.

Then execute the "install" script in /NB_7.0_CLIENTS_GA

Success!

You can then normally patch the client to version 7.01, as that won’t require you to use any RPM-based packages.  I've also heard that installing version 6.5.4, then upgrading from there to 7.0 will work too, as that version of PBX will install ok, but I haven’t tried it.

Jungle Disk

I installed Jungle Disk on my home PC last night to use for backing up my personal data. I've been using Mozy for the last year, and was pretty happy with it, but since I don't back up a ton of data, I think Jungle Disk will be slightly cheaper, and has a few unique features. I chose RackSpace as the location to store my data, though Amazon's S3 service is the default. They both charge 15 cents per GB per month to host your data, but S3 charges an additional bit for every GB you transfer in or out, and RackSpace doesn't charge that. I'm not sure why it defaults to S3, when RackSpace is cheaper, but it does.

I'm very curious about their "Enterprise" offering. The rate they're charging is very very low, but at the same time, they aren't EMC, they aren't Symantec, and I wonder how many enterprises are really ready to trust their data to Jungle Disk...

I'm using the Desktop edition, and I like that it lets you also mount your backup space as a drive, though I was a bit dismayed at first that I had to schedule a particular time to do my backups, as I tend to leave my PC asleep. Going through the options, I saw it had the ability to wake my PC from sleep, as well as perform my backups at the next time the machine was on, which is how I actually prefer to run it. I also liked that it let me throttle bandwidth usage during certain hours of the day, so that I can turn it loose from midnight to 6:00 a.m., but it won't eat up all my bandwidth when I'm likely to be using it. I do wish that it would let me configure separate settings based on days of the week though, I'd be fine with giving up all of my bandwidth during weekdays too, but not on weekends.

Mozy

I've been using Mozy ( now owned by EMC) for the last couple of months for my home PC, and I'm pretty impressed. The initial backup takes a while, (14 hours for me) due to the slow uploads that are typical of residential cable internet, but my daily backups tend to take less than a minute, since the software is smart enough to back files up at the block level, rather than the file level. With a little Googling for coupons, it wound up costing me about $40 for a year of unlimited backup service, which seems reasonable to get all my files, photos, and tax records automatically out of the house daily to save me from disaster. I also looked at their MozyPro service, which is actually pretty decently priced as compared to the backup service I run at work. They charge $6.95 per server per month, plus 50 cents per GB per month. The major downside that I see is that you can only restore from the last 30 days. That's really all you need for disaster recovery, of course, but it doesn't protect you from the user who deletes something and doesn't notice it's gone until the next semester.

While I don't think Mozy is going to be replacing our campus backup system anytime soon, it might be a viable alternative for those areas who are doing workstation backups, as it eliminates the need to leave the machine on for the scheduled backup job (Mozy just runs whenever the user turns the box on). Workstations are cheaper than servers, at $3.95/month + 50cents/GB.