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
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
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.