3fc018736dfe4c038ea47351104efcfb0c3dee2d
[debian/amanda] / docs / rait.txt
1
2 Chapter 10. RAIT (Redundant Array of Inexpensive Tape) Support
3 Prev  Part II. About Tapes and Changers                   Next
4
5 -------------------------------------------------------------------------------
6
7 Chapter 10. RAIT (Redundant Array of Inexpensive Tape) Support
8
9
10 Marc Mengel
11
12 Original text<mengel@fnal.gov>
13
14 Stefan G. Weichinger
15
16 XML-conversion;Updates
17 AMANDA Core Team
18 <sgw@amanda.org>
19 Table of Contents
20
21
22   What_is_a_RAIT?
23
24   Using_a_RAIT
25
26   Disaster_Recovery
27
28
29 Note
30
31 Refer to http://www.amanda.org/docs/rait.html for the current version of this
32 document.
33 Currently it is only integrated with the chg-manual changer script;
34 collaboration on integrating it with the other tape changers is needed.
35
36  What is a RAIT?
37
38 RAIT is an acronym for "Redundant Array of Inexpensive Tapes", where data is
39 striped over several tape drives, with one drive writing an exclusive-or-sum of
40 the others which can be used for error recovery. Any one of the data streams
41 can be lost, and the data can still be recovered.
42 This means that a 3-drive RAIT set will write 2 "data" streams and one "parity"
43 stream, and give you twice the capacity, twice the throughput, and the square
44 of the failure rate (i.e. a 1/100 failure rate becomes 1/10,000, since a
45 double-tape failure is required to lose data).
46 Similarly, a 5-drive RAIT set will give you 4 times the capacity, 4 times the
47 throughput (with sufficient bus bandwidth), and the square of the failure rate.
48 This means you can back up partitions as large as four times your tape size
49 with Amanda, with higher reliability and speed.
50
51  Using a RAIT
52
53 If you have several tape devices on your system [currently either 3 or 5 drive
54 sets are supported] you tell Amanda to use them as a RAIT by listing them as a
55 single tape device using /bin/csh curly-brace-and-comma notation, as in:
56
57         tapedev = "rait:/dev/rmt/tps0d{4,5,6}n"
58                 
59
60 which means that /dev/rmt/tps0d4n, /dev/rmt/tps0d5n, and /dev/rmt/tps0d6n are
61 to be treated as a RAIT set. You can now mount three tapes, and label them with
62 amlabel, etc.
63 Also, you want to create a new tape-type entry, which lists an n-drive RAIT
64 set, for this RAIT-set. So if you were using an entry like:
65
66         define tapetype EXB-8500 {
67             comment "Exabyte EXB-8500 drive on decent machine"
68             length 4200 mbytes
69             filemark 48 kbytes
70             speed 474 kbytes
71         }
72                 
73
74 You would want to make a new one like:
75
76
77         define tapetype EXB-8500x3 {
78             comment "Exabyte EXB-8500 3 drive stripe on decent machine"
79             length 8400 mbytes
80             filemark 200 kbytes
81             speed 948 kbytes
82         }
83                 
84
85 and change your tapetype entry to:
86
87         tapetype EXB-8500x3
88                 
89
90 to tell Amanda about the multiple drive set.
91
92  Disaster Recovery
93
94 To assist in disaster recovery (as well as changer scripts) the Amanda package
95 now also includes amdd, which is a simple dd(1) replacement which supports
96 (only) the "if=xxx", "of=xxx", "bs=nnn[kMb]" "skip=nnn" and "count=nnn"
97 options, but which can read and write RAIT tapesets.
98 Using amdd and your usual Amanda unpack instructions will suffice for disaster
99 recovery from RAIT tape-sets.
100 -------------------------------------------------------------------------------
101
102 Prev                  Up                             Next
103 Chapter 9. chg-scsi  Home  Chapter 11. Printing of Labels
104