Installing Netbackup Enterprise Server 6.5 on CentOS 5 / RHEL 5 with SELinux

Posted on the February 21st, 2008 under HOWTOs, Sys Admin, Technology / Computing by Joshua Glemza

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
  1. Install a couple of dependencies:
    yum install compat-libstdc++-296 xinetd libXp
  2. Make sure that the hostname is set correctly. This is very important.
  3. Temporarily disable SELinux:
    setenforce 0
  4. Untar the installation files:
    tar xvf NetBackup_6.5_LinuxRedhat2.6.tar.gz
    tar xvf NetBackup_6.5_ICS_LinuxX86.tar.gz
  5. Start the installation:
    ./NB_65_LinuxR_x86_20070723/install
    .....
    #ICS Directory: ./NB_65_ICS_1.4.37.0_LinuxX86/
  6. Fix SELinux:
    chcon -t textrel_shlib_t /usr/openv/lib/*
    setenforce 1
  7. Start Netbackup:
    /etc/init.d/netbackup start
HOWTO: Client
  1. Untar the installation file:
    tar xvf NetBackup_6.5_CLIENTS2.tar.gz
  2. Start the installation:
    NB_65_CLIENTS2_20070723/install
  3. Fix SELinux issues:
    chcon -t textrel_shlib_t /usr/openv/lib/*
  4. Start the client:
    /etc/init.d/nbclient start

SELinux, Apache, phpMyAdmin, and a Remote MySQL Server

Posted on the October 11th, 2007 under Sys Admin by Joshua Glemza

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.

HOWTO: Using ZFS Snapshots

Posted on the July 13th, 2007 under HOWTOs, Sys Admin, Technology / Computing by Joshua Glemza

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