It took me almost a whole day to come up with this solution. This should get Veritas Netbackup Enterprise Server 6.5 up and running on a CentOS 5 / RHEL 5 box with SELinux enabled.
HOWTO: Server
- Install a couple of dependencies:
yum install compat-libstdc++-296 xinetd libXp
- Make sure that the hostname is set correctly. This is very important.
- Temporarily disable SELinux:
- Untar the installation files:
tar xvf NetBackup_6.5_LinuxRedhat2.6.tar.gz
tar xvf NetBackup_6.5_ICS_LinuxX86.tar.gz
- Start the installation:
./NB_65_LinuxR_x86_20070723/install
.....
#ICS Directory: ./NB_65_ICS_1.4.37.0_LinuxX86/
- Fix SELinux:
chcon -t textrel_shlib_t /usr/openv/lib/*
setenforce 1
- Start Netbackup:
/etc/init.d/netbackup start
HOWTO: Client
- Untar the installation file:
tar xvf NetBackup_6.5_CLIENTS2.tar.gz
- Start the installation:
NB_65_CLIENTS2_20070723/install
- Fix SELinux issues:
chcon -t textrel_shlib_t /usr/openv/lib/*
- Start the client:
/etc/init.d/nbclient start
Today I ran into a little problem with phpMyAdmin talking to a remote MySQL server on a CentOS 5 machine. When I would try to connect to the server it would say that the host could not be reached. However, if I used the mysql cli I was able to connect. It turns out that the SELinux policy was prohibiting me from accomplishing this.
To fix this problem you need to modify the policy with the following command.
setsebool -P httpd_can_network_connect=1
This change is instant and persistent, so it will survive a reboot.
So the time has come that you’d like to protect the current status of your drive and be able to revert back to this state in the future if something bad happens. Enter snapshots.
root@ufuk:~# zfs snapshot shet@13july2007
And now you have it. You have a snapshot of your data. You can see the size of the snapshot by running:
root@ufuk:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
shet 266G 649G 266G /shet
shet@13july2007 103K - 266G -
syspool 2.77G 32.9G 24K none
syspool/rootfs 2.77G 32.9G 2.60G legacy
syspool/rootfs@default 178M - 648M -
The size of the snapshot will grow as things change.
To recover files from a snapshot, mount it and copy it out of the snapshot.
root@ufuk:~# zfs mount shet@13july2007 /mnt/snapshet
To delete a snapshot, run:
root@ufuk:~# zfs destroy shet@13july2007