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

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

HOWTO: Single ZFS Drive to Mirror

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

My original installation of NexentaCP just had a single drive being used for the system installation. This can be verified here:
root@ufuk:~# zpool status syspool

  pool: syspool
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        syspool     ONLINE       0     0     0
          c0d0s0    ONLINE       0     0     0

errors: No known data errors
I got my hands on another drive and I wanted to mirror this pool. To do this, issue the following command:
root@ufuk:~# zpool attach syspool mirror c0d0s0 c4d1s0
After a couple hours of resilvering, it’s all setup.
root@ufuk:~# zpool status syspool
  pool: syspool
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        syspool     ONLINE       0     0     0
          mirror    ONLINE       0     0     0
            c0d0s0  ONLINE       0     0     0
            c4d1s0  ONLINE       0     0     0

errors: No known data errors
Done. Loving ZFS.