Introduction

I found myself with more data than I could reliably and cost effectively back up on Blu-Rays. What would cost me $700 in BR disks alone, I can backup on 1 tape archive.

Instead of putting more money into HDD, I decided to invest in a tape drive.

Here are some of my impressions and possibly some useful information for you.

Hardware

I purchased an HP Ultrium 30750, which is the LTO 8 variant of HP's Ultrium line.

s00003164.png ultrium-back.png

I also needed a PCIe card to connect the SAS3 connection. For this you need an HBA (Host Bus Adapter) card. You basically need to make sure the hardware connections are correct and that it is based on the Broadcom/LSI architecture. Both the Ultrium and the HBA are "Mini SAS 26pin (SFF-8088)"

sas3.jpg

This one has worked well Amazon Link to HBA

This cord has worked well also Amazon Link to SAS3 Cable

I purchase tapes from multiple vendors, haven't had any issues so far.

Software

There are two main camps of people using tapes to archive data. Those that use LTFS and those that do not.

LTFS allows the tape to appear as a filesystem like any other removable media. With the filesystem, you lose storage capacity. I get 11TB with my LTFS formatted cartridges.

Raw tape storage stores files in a tar (tape archive) for each file you archive.

At how cheap these tapes are, I'm not worried about losing a TB of storage for what LTFS gains me. Namely ease of storing files *my* way and streaming multiple streams onto the cartridge at one time, instead of waiting to save multiple files, the operating system takes care of all the I/O.

LTFS Software

I found out the hard way to use the HP LTFS software.

I don't run RHEL, I run linux distributions based on Debian if I can help it. So from here YMMV.

An older version of the software can be found here https://github.com/nix-community/hpe-ltfs

This is several versions behind, it is recommend working with HP's website to obtain and install the latest version of the software.

I have attached the latest version as of this writing HPE_StoreOpen_Software_3.6.0_RHELx64.tar.gz

Using LTFS

I have written a script to keep my policy consistent. This includes ltfsck (LT-fsck) that will automatically read the cartridge and verify the data is in good order before I start messing with it.

Second, and more importantly, I am streaming TB's of data over the network from multiple physical machines. -o sync_type=unmount will stop the tape drive from writing the index approximately every 5 minutes and only write the index upon unmount execution. Use this if you are streaming data like me, it will save you many many hours of debugging.

echo "Finding Tape Drive"

drive_test_location=$(lsscsi -g | grep "HPE" | awk '{print $7}')
drive_location=$(lsscsi -g | grep "HPE" | awk '{print $8}')

if [[ "$drive_location" != ""  ]]; then
        echo "Tape Drive Found: '$drive_location'"
else
        echo "Tape Drive Not Found"
        exit
fi

echo "ltfsck on '$drive_test_location'"
sudo ltfsck "$drive_test_location"

echo "Mounting Tape Drive"
sudo ltfs -o devname="$drive_location" /media/tape -o sync_type=unmount

if [ $? -eq 0 ]; then
        echo "Drive Mounted successfully"
else
        echo "Unable to mount drive"
fi