Tape Drives and Backup Software
Friday, February 18th, 2005Spent some time looking into backup solutions for Linux. Generally, this market seems to be skewed towards shareware/commercial products instead of the typical Linux GPL-licensed products. Here are a few of the products I found:
Bacula
Storix
Amanda
Arkeia
Free for sites using a maximum of 50GB: http://www.arkeia.com/asb/nocost/
06/05/2005, 11:42
Well, amanda is not only free, but also included in Fedora Core 3! So I installed it this afternoon:
#yum –y install amanda
#yum –y install amanda-server
#yum –y install amanda-client
All three need to be installed separately as the amanda system appears to be very modular and client-server. Even though Bacula seems to be a more user-friendly solution, I can’t currently invest in installing it. Not only is the RPM not included in Fedora, a SQL server like MySQL is recommended when using Bacula. I’ll get there some day…
Tape command options:
mt densities
Shows available tape densities (also sets compression for DLT drives)
mt status
Shows current tape status
mt tell
Shows current block
mt eject
Ejects the current tape
mt defcompression
Sets the default compression (used on each tape mount)
mt compression
Sets the compression mode. NB: Despite the mt documentation, this seems to work with the Exabyte Mammoth drive (8900). There is no feedback, but amanda sees the drive as compressed or not depending on this switch.
How about the stinit command? More research needed. Here is some great info on backup -to be further investigated:
http://umbc7.umbc.edu/~jack/course/backups.html
http://tariqnazir.tripod.com/backup.htm
http://surf.ap.seikei.ac.jp/~nakano/dump-restore/dump-restore-mini-HOWTO.en.html
Interesting note: sometime recently, perhaps after the upgrade to Fedora Core 4, it seems that the permissions on the tape device (/dev/nst0) changed to 600 -in other words, no write permissions for the device’s group (disk). Since this was the mechanism by which the amanda user got rights to write, it is not shocking that amanda has been whining for the past several days:
*** A TAPE ERROR OCCURRED: [writing label: tape is write protected].
I modified the permissions on the tape device and ran amflush to squirt the pending dumps to tape. But I still had errors. Based on the front-panel LEDs, the drive is constantly resetting itself. I’ve got problems!