Imported Upstream version 2.5.1
[debian/amanda] / docs / zftape.txt
1
2 Chapter 35. Usage of floppy tape drives on Linux
3 Prev  Part VI. Historical files             Next
4
5 -------------------------------------------------------------------------------
6
7 Chapter 35. Usage of floppy tape drives on Linux
8
9
10 Albrecht Gebhardt
11
12 Original text<albrecht.gebhardt@uni-klu.ac.at>
13
14 Stefan G. Weichinger
15
16 XML-conversion,Updates
17 AMANDA Core Team
18 <sgw@amanda.org>
19
20 Note
21
22 Refer to http://www.amanda.org/docs/zftape.html for the current version of this
23 document.
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
39 tree.
40 The volumetable of a tape "amlabeled" TEST-VOL2 with 4 backups on it would look
41 like (listed with vtblc utility from ftape):
42
43   prompt: vtblc
44
45    Nr  Id          Label                   Date           Start      End
46   Space
47
48     0 VTBL TEST-VOL2               23:08:06 03/15/98        3        4    0.00
49   %
50     1 VTBL gamma //beta/C 0        00:00:00 03/15/98        5      374    0.68
51   %
52     2 VTBL gamma sda2 0            00:00:00 03/15/98      375     1029    1.21
53   %
54     3 VTBL alpha sda2 0            00:00:00 03/15/98     1030     1906    1.62
55   %
56     4 VTBL alpha sda6 0            00:00:00 03/15/98     1907     8092   11.45
57   %
58     5 VTBL Amanda Tape End         01:45:15 03/16/98     8093     8094    0.00
59   %
60
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
63 vtblc):
64
65
66   prompt: lvtblc -l
67
68    Nr  Id          Label                                         Date
69
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
76
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
82
83 * Linux Kernel 2.0.33,
84 * ftape 3.04d,
85 * Amanda 2.4.0b6p4
86
87 with an internal Iomega Ditto 3200 (TR-3) drive attached to an Iomega Ditto
88 Dash controller (at 2000 Kbps). My tapetype follows:
89
90   define tapetype DITTO-TR3 {
91       comment "Iomega DITTO 3200 Travan 3 tape drives"
92       length 1500 mbytes          #
93       filemark 29 kbytes          # ???
94       speed 256 kbytes            # = 2000 Kbit/s ?
95   }
96         
97
98
99 Note
100
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
104 waste 29 kb.
105 -------------------------------------------------------------------------------
106
107 Prev                         Up                   Next
108 Chapter 34. Y2K Compliancy  Home  Part VII. Appendixes
109