2 Chapter 33. Usage of floppy tape drives on Linux
3 Prev Part VI. Historical files Next
5 -------------------------------------------------------------------------------
7 Chapter 33. Usage of floppy tape drives on Linux
12 Original text<albrecht.gebhardt@uni-klu.ac.at>
16 XML-conversion,Updates
22 Refer to http://www.amanda.org/docs/zftape.html for the current version of this
24 AMANDA now supports the ftape driver version 3.04d (see http://www-
25 math.math.rwth-aachen.de/~LBFM/claus/ftape ). It adjusts the blocksize
26 automatically to 32k and supports QIC volume tables.
27 It uses only one open() call for writing backups to one tape, so the "busy"-
28 lamp of the drive will be on all the time. (With normal AMANDA code it would be
29 off in pauses between two files written to tape.)
30 For volume table support you have to get libvtblc first (available at ftp://
31 pc02-stat.sci.uni-klu.ac.at/pub/Linux/libvtblc.) This library contains the
32 functions and subroutines from the vtblc utility, distributed with ftape.
33 (Maybe this library will be part of a future ftape package).
34 You have to set the raw tape device for volume table operations, usually /dev/
35 rawft0, either via configure --with-ftape-rawdevice= or with rawtapedev in
36 amanda.conf (configure checks for /dev/rawft[0-3], to get a guess for this
37 value). Dont forget to make this device read/writeable for your backup user.
38 For compilation you need the header files from ftape 3.04d in your include
40 The volumetable of a tape "amlabeled" TEST-VOL2 with 4 backups on it would look
41 like (listed with vtblc utility from ftape):
45 Nr Id Label Date Start End
48 0 VTBL TEST-VOL2 23:08:06 03/15/98 3 4 0.00
50 1 VTBL gamma //beta/C 0 00:00:00 03/15/98 5 374 0.68
52 2 VTBL gamma sda2 0 00:00:00 03/15/98 375 1029 1.21
54 3 VTBL alpha sda2 0 00:00:00 03/15/98 1030 1906 1.62
56 4 VTBL alpha sda6 0 00:00:00 03/15/98 1907 8092 11.45
58 5 VTBL AMANDA Tape End 01:45:15 03/16/98 8093 8094 0.00
61 With lvtblc, currently available with the libvtblc library, you can list the
62 complete label strings (44 characters, not only the first 22 characters as with
70 0 VTBL TEST-VOL2 23:08:06 03/15/98
71 1 VTBL gamma //beta/C 0 00:00:00 03/15/98
72 2 VTBL gamma sda2 0 00:00:00 03/15/98
73 3 VTBL alpha sda2 0 00:00:00 03/15/98
74 4 VTBL alpha sda6 0 00:00:00 03/15/98
75 5 VTBL AMANDA Tape End 01:45:15 03/16/98
77 Note on datestamps: volume 0 (AMANDA label): reflects the time of starting the
78 backup volume i (backup files): AMANDA datestamps of the backup files last
79 volume (end marker) : reflects the time of finishing the backup
80 I tested this on a Linux machine (P90 / 96Mb RAM / 256 Mb swap) with two other
81 clients (Linux / WfW) using
83 * Linux Kernel 2.0.33,
87 with an internal Iomega Ditto 3200 (TR-3) drive attached to an Iomega Ditto
88 Dash controller (at 2000 Kbps). My tapetype follows:
90 define tapetype DITTO-TR3 {
91 comment "Iomega DITTO 3200 Travan 3 tape drives"
93 filemark 29 kbytes # ???
94 speed 256 kbytes # = 2000 Kbit/s ?
101 Filemarks are not written to the tape (they are written to the header segment
102 and use there 128 byte), so their size could even be 0. But a tape segment
103 takes at least 29 kb (+3 kb ecc-code = 32 kb), so in the worst case an eof will
105 -------------------------------------------------------------------------------
108 Chapter 32. Y2K Compliancy Home Part VII. References