Imported Upstream version 2.4.5
[debian/amanda] / docs / topten.txt
1
2 Chapter 17. Collection of the top ten AMANDA questions. And answers.
3 Prev  Part IV. Various Information                              Next
4
5 -------------------------------------------------------------------------------
6
7 Chapter 17. Collection of the top ten AMANDA questions. And answers.
8
9
10 Stefan G. Weichinger
11
12 Original text; Conversion to Docbook/XML
13 AMANDA Core Team
14 <sgw@amanda.org>
15 Table of Contents
16
17
18   Reason_for_starting_this_list.
19
20   the_DLE-question
21
22   the_localhost-question
23
24   the_friday-tape-question
25
26   the_multiple-dumps-question
27
28   the_mailing-list-question
29
30   the_distro-question
31
32   the_index-question
33
34   the_tapetype-questions
35
36   the_size-question
37
38   the_GUI-question
39
40   the_holding-disk_question
41
42   ...
43
44
45 Note
46
47 Refer to http://www.amanda.org/docs/topten.html for the current version of this
48 document.
49
50  Reason for starting this list.
51
52 Jon LaBadie once wrote to me:
53 " I think a good "what is AMANDA", "how is it different", "can I use it in my
54 setup", "why is it so different" kinda document is needed to stop the constant
55 "how do I put 10 dumps on one tape", or "how do I make AMANDA do full backups
56 on saturday and incrementals ..." queries off the list :)) "
57 Stefan G. Weichinger
58
59  the DLE-question
60
61 A posting from the amanda-users mailing-list (mailto://amanda-users@amanda.org)
62 asked:
63 "What, please, is a "DLE"? May it mean: Down Loadable Entity ??? Stupid. Do
64 Less Errors ??? Stupid again. Hmmmm ..."
65 People consulting the amanda-users-mailinglist for the first time often get
66 confused by the use of the abbreviation DLE.
67 It has become very common for regular mailinglist-participants to use the
68 abbreviation DLE, which means in its long form
69 DiskList Entry
70 A DLE refers to one entry in the disklist of an AMANDA-configuration. General
71 usage was to describe them as partitions, or file systems. But in fact they do
72 not have to be either. They can be directory trees, or multiple trees, or trees
73 with some branches cut off. So the more generic term DLE was coined.
74
75  the localhost-question
76
77 People get something like:
78
79   >Amanda Backup Client Hosts Check
80   >--------------------------------
81   >ERROR: localhost: [access as amanda not allowed from
82   >amanda@localhost.localdomain] amandahostsauth failed
83
84 and ask "Why?"
85 SHORT ANSWER:
86 DO NOT USE "localhost" as host entry in your disklist entries (aka DLEs). Use
87 the FQDN (Fully Qualified Domain Name) instead.
88 In AMANDA-releases newer than 2004-03-22 there is a WARNING issued when you use
89 something like "localhost" or localhost.localdomain.net in your disklist.
90 Example (applies to Linux, syntax may be different on other systems):
91
92   $ hostname --fqdn
93   oops1.oops.co.at
94
95   $ cat disklist
96   oops1.oops.co.at /root root-tar # do it like this
97   localhost        /root root-tar # DON'T DO IT LIKE THIS
98
99 GOOD ANSWER (provided by John R. Jackson):
100 There are (at least) two things going on here and they should have their own
101 question/answer.
102 Completely independent of the "localhost" vs. FQDN issue are the people who get
103 this message because of any number of problems. Let me reword the error and
104 then give some typical goofs:
105
106   ERROR: some.amanda.client: access as amanda not allowed from
107   amanda@some.amanda.server
108   amandahostsauth failed
109
110 (error message reformatted here ...)
111 The first thing to understand is how to read this message. When it says "access
112 as amanda ..." it is telling you the client side ( amandad) is running as user
113 "amanda". The "... from amanda@some.amanda.server" part tells you the server
114 trying to connect is "some.amanda.server" and the AMANDA command (e.g. amcheck
115 or amdump) is running as user "amanda".
116 The user names are typically the same on both client and server, but some
117 situations use different names and it is important to understand which is
118 which. For instance, amrecover connects as root ("... from
119 root@some.amanda.server") regardless of what the usual AMANDA user is.
120 Potential problems:
121
122 * "some.server" is not spelled exactly that way in ~amanda/.amandahosts. A
123   typical error is to not use a fully qualified name (although simple typos
124   happen as well). For instance, this line:
125
126
127   some  amanda
128
129 does not match "some.amanda.server" even though both names may be equivalent.
130 When AMANDA looks up the host name in .amandahosts, it uses the exact name it
131 lists in the message. It does not try to look up abbreviations.
132 The only exception to this is that the lookup is case insensitive.
133
134 * The user name listed in ~amanda/.amandahosts is not the one trying to connect
135   from the server. In particular, watch out for the "root" case listed above
136   for amrecover. The AMANDA server typically needs lines like this in its
137   .amandahosts file:
138
139
140   some.amanda.client    root
141
142
143 * There are permission problems on the client preventing user "amanda" from
144   reading its own .amandahosts file. Make sure the file itself is readable to
145   the user "amanda" and all the parent directories down to it can be traversed.
146   A simple test is:
147
148
149   su - amanda -c "cat ~amanda/.amandahosts"
150
151 Now, back to the localhost issue. This:
152 Do NOT USE "localhost" as host entry in your disklist entries (aka DLEs). Use
153 the FQDN (Fully Qualified Domain Name) instead.
154 is not really an answer, more of a command :-).
155 There are a couple of reasons to NOT use "localhost". First is amrecover will
156 not work as expected. When it connects to the server (even though they are the
157 same machine), the server will look for the matching DLE's using the real host
158 name, not "localhost". The sethost command inside amrecover can "fix" this, but
159 why not just set it up right in the first place?
160 Another reason to not use "localhost" is because it helps with future changes.
161 As the AMANDA configuration grows, it's not at all unusual to take a server and
162 make it a client of a new, larger, server. But now "localhost" does not point
163 to the same machine it used to. If the FQDN of the machine had been used all
164 along, this upgrade would have been much easier.
165 There is also no performance reason (any more) to use "localhost" instead of
166 the FQDN. Modern OS network stacks know to shortstop packets destined for the
167 local machine and never let them hit the wire. Yes, I'm old enough to remember
168 when they didn't :-).
169
170  the friday-tape-question
171
172 "How do I make AMANDA do full backups on Saturday and incrementals ... ?"
173 "My backup screwed up on tuesday and now it keeps asking for the tuesday tape
174 even though it is wednesday!"
175 ANSWER:
176 The short answer is: You can't.
177 The longer answer is: You can. But you should not.
178 The reason: AMANDA is designed to schedule your backups. Let "her" do it.
179 When you want to make the best use of AMANDA, you have to let go the classic
180 schedule where one used to have one tape dedicated to each day of the week, and
181 one for the friday.
182 The main difference in concept is this:
183 In the classic backup scheme you said:
184 "I want to have incremental backups from Mo-Th and a full backup on Fr."
185 Using AMANDA you say:
186 "I want to have at least one full backup in 5 days."
187 So you don't have to specify exactly WHEN the full backup should happen. You
188 just tell AMANDA some goals it should reach and let it work out the details.
189 There are several advantages in this:
190 Imagine that you have your classic backup-schedule running fine. Everything is
191 calculated and designed well, so your tape gets filled well each night.
192 Now one user generates an unforeseen huge amount of data. For example, he
193 duplicates one big data-directory by mistake.
194 So the size of the directory raises within one day, maybe for multiple GBs.
195 Would your classic backup-scheme catch that? Or would it run out of tape,
196 simply because it was not calculated to have that filesystem with that size?
197 AMANDA would try to catch it (and most of the time succeed ...).
198 As there is the estimate-phase before actually dumping something, AMANDA can
199 look at the DLEs and determine the actual size at the time. It also determines
200 the size of an incremental backup so it can test for the Plan B to just run a
201 level-1 if it does not work out to do a level-0 for that DLE.
202 If the size of the DLE is much bigger than it has been the run before, AMANDA
203 still tries to meet your goals. It just reschedules stuff, combining full and
204 incremental backups to meet the goals as good as possible.
205 So you can think of it as some algorithm which lets AMANDA adapt to your data.
206 If you set the goals in a reasonable way, AMANDA will just do the rest.
207
208  the multiple-dumps-question
209
210 "How do I put 10 dumps on one tape?"
211 ANSWER (provided by Jon LaBadie):
212 Use another backup scheduler.
213 This question is most often asked by individual computer users as a cost
214 consideration.
215 AMANDA was developed at the University of Maryland Computing Center for use in
216 moderately sized computer centers. That it can be used by users of small
217 computers is a testament to its designers and maintainers.
218 While it may seem cost effective to put as many dumps as possible on a single
219 tape, in a computing center that would be considered a very risky decision. The
220 loss of, or damage to, a single tape would be the loss of many days worth of
221 dumps. That is too much to chance.
222 Thus, AMANDA was designed to never overwrite a non-AMANDA tape, nor an AMANDA
223 tape from a different configuration, nor an AMANDA tape from the current
224 configuration that is still "active", i.e. has backups on the tape more recent
225 than the dumpcycle length.
226 If you still feel you want AMANDA to put multiple dumps on a single tape, there
227 is a crude way to accomplish your goal.
228 But first ask yourself, "If my data is worth so little that I can not afford a
229 few more tapes, why am I backing it up?"
230
231 Note
232
233 Most of the time it won't be YOU paying for the tapes as you may be working for
234 some company. If your boss tries to force you into doing this multiple-dumps-
235 on-one-tape thing, be sure to point him at this risk. Business people tend to
236 understand the price-difference between some tapes and a major data-loss.
237 Stefan G. Weichinger
238 A common way to put multiple dumps on a single tape is to let them accumulate
239 on the holding disk and use the amflush command when you want to put them on
240 tape. I.e. if you want a weeks' worth of backups on a single tape, leave the
241 tape out for a week. Then stick it in and run amflush.
242 (Better make sure you have sufficient disk space on your holding disk.)
243 Note, a slight variant of this is to have the parameter autoflush in
244 amanda.conf set to "yes". (Users of older AMANDA-releases should check out if
245 their version already supports that parameter.)
246 Then after several dumps have collected in the holding disk, put the tape in
247 before that day's amdump is scheduled. amdump will both flush the holding disk
248 to tape and add the regularly scheduled dump.
249
250  the mailing-list-question
251
252 "How do i get off this damn mailing list?"
253 ANSWER:
254 Frequent users of the AMANDA-users-mailing-list get mails like containing
255 "unsubscribe"
256 as people are trying desperately to get off the list.
257 Everyone that subscribes to AMANDA-users gets a mail in which the following is
258 contained:
259 >Welcome to the amanda-users mailing list!
260 >Please save this message for future reference. Thank you.
261 >If you ever want to remove yourself from this mailing list, >you can send mail
262 to <Majordomo@amanda.org> with the following >command in the body of your email
263 message:
264 > unsubscribe amanda-users
265 Did you see that? You have to send your mail to <Majordomo@amanda.org>, and NOT
266 to <amanda-users@amanda.org> !
267
268  the distro-question
269
270 "Where can i get binary distributions of AMANDA?"
271 ANSWER:
272 It is well known that various distributions of Linux contain precompiled
273 packages of AMANDA-servers and -clients.
274 Due to the design of the AMANDA source code, in which MANY features can be
275 configured at compile-time, it is heavily and heartily recommended to take the
276 effort and roll your own special flavour.
277 Thinking about these things before actually doing backups with AMANDA will help
278 you in many ways. And you get the benefits of compiling your own paths/devices/
279 configurations right into your AMANDA-binaries. You also get the benefit of a
280 much more improved understanding of the way AMANDA does backups.
281
282  the index-question
283
284 "Why does amrecover say there are no index files?"
285 ANSWER:
286 It is very likely that AMANDA is right about that. Check your dumptypes and
287 make sure they include the line:
288
289   index yes
290
291 If this is the case and you still get that message, recheck the installation of
292 your amindexd-binary.
293 Is the line in your (x)inetd-configuration pointing to the proper binary? Is
294 this line active (= uncommented)? Did (x)inetd reread that configuration since
295 that line was edited?
296
297  the tapetype-questions
298
299 " amtapetype has been running for 9 days, is this normal?"
300 "Will AMANDA work with my frozboz tape drive/library?"
301 "Which device is my changer?"
302 " amtapetype is broken, it says my 200GB tape only holds 65GB."
303 "My file marks are HUGE, 1.3MB (on a 200GB tape, i.e. about 0.05% of the total
304 capacity, or expressed another way, maybe 2 mm of a 125000 mm tape ...)"
305 ANSWER:
306 It is crucial to tell AMANDA the truth about the tape-device(s) you want to
307 use. Given the wrong values, AMANDA can't calculate proper dumpsizes, free
308 tape-space or make valuable use of compression.
309 Before you consider running amtapetype, think twice. Twice.
310 As tapedrives tend to be produced by not-so-small companies and as those not-
311 so-small companies tend to produce more than one unit to maximize profits, it
312 is very likely that someone else has the same device you have or at least one
313 that uses the same technology.
314 Many people have already run amtapetype to determine the proper values to fill
315 in their amanda.conf-files. Browse the example amanda.conf in your AMANDA-
316 tarball for various tapetypes. Browse the AMANDA-FAQ on http://www.amanda.org.
317 Chances are high that you find just your device described.
318 As in every other topic discussed in internet mailing lists, please try finding
319 an answer there before asking on the AMANDA-users list.
320 If your device is so exotic that even the AMANDA-users can't help you, you
321 still have your copy of amtapetype.
322 Before you start running it, note this:
323
324 * DISABLE hardware compression on your drive.
325
326 A common mistake is to have hw-compression enabled. amtapetype uses random data
327 to test for the size and speed of your drive. Random data is pretty bad at
328 getting compressed. In fact it gets even bigger so the results given back are
329 useless. Disable it even if you are planning to use your drive with enabled hw-
330 compression.
331
332 * Expect it running long.
333
334 As you can read in the man page, amtapetype writes the full tape twice, which
335 can be a lot of data for modern drives (approaching a TByte). It also writes
336 tape marks every 10 MBytes (by default) which forces the drive to flush its
337 internal buffers and slows the process down. You can shorten this by giving
338 amtapetype a better estimate of the expected capacity:
339 $ amtapetype -e 100g -f /dev/nst0
340 This "prepares" amtapetype to expect a tape with 100 GB capacity.
341 If amtapetype really runs for 9 days, you can be pretty sure there is something
342 wrong with your approach.
343 And for the filemark-size: Just read the question again.
344
345  the size-question
346
347 "How do I back up a partition that won't fit on a tape?"
348 aka
349 "Can AMANDA span one file over multiple tapes?"
350 ANSWER:
351 There are two basic rules when it comes to these things:
352
353 * AMANDA supports using more than one tape in a single run of amdump
354 * AMANDA does not support splitting a dump image across tapes
355
356 The first rule lets you make use of two or more tapes for a single amdump when
357 using a tapechanger-robot or a tape-library. You could even use multiple tapes
358 with the chg-manual-script, waiting patiently for one tape to be filled, then
359 change tapes manually.
360 No matter how many tapes you can put in your robot or how long you can stay
361 awake to change tapes you can NOT split the backup image of one of your
362 disklist entries (aka DLEs) across multiple tapes. No way.
363 So you may ask the first question listed above. As the size of harddisk- drives
364 grows steadily it is not uncommon to have multiple hundreds of gigabytes of
365 harddrive capacity in one system. Compared to the size of your maybe not-so-
366 shiny-anymore tapedrive this seems (and maybe is) huge.
367 What to do?
368 Don't split your dump image (it can't be done), split your DLEs.
369 You have to use GNU-tar in your dumptypes for this.
370 Try to redefine your disklist as in the following example:
371
372   fatboy  /bigmama_BIGDIR  /bigmama {     # a big subdirectory
373   comp-user-tar
374   include "./bigdir"
375   }
376   fatboy  /bigmama_FILES01 /bigmama {     # all files beginning with...
377   nocomp-user-tar
378   include "./file[01]*"
379   }
380   fatboy  /bigmama_FILES23 /bigmama {
381   nocomp-user-tar
382   include "./file[23]*"
383   }
384   ...
385   fatboy  /bigmama_REST /bigmama {        # Catch-all
386   nocomp-user-tar
387   exclude "./file[0-9]*"
388   exclude append "./bigdir"
389   }
390
391 (example taken from a mail by Paul Bijnens on the AMANDA-users-list)
392 The trick is to form several chunks of data of which each fits on tape. In the
393 example above the chunks are formed by regular expressions matching files named
394 like file00, file123 and file9999. You have to look at your DLEs to find the
395 patterns describing your chunks.
396 As this technique forms data-chunks that fit on your tape it also helps AMANDA
397 to schedule your backups more flexible. Having more and smaller DLEs, the
398 planner has more variations to possibly schedule your backups, so this will
399 help getting nice output from amadmin <conf> balance, too.
400
401 Note
402
403 DLE-spanning might be supported by AMANDA in a future release.
404
405  the GUI-question
406
407 "Is anyone working on a GUI for AMANDA?"
408 ANSWER:
409 Actually there are people working on GUIs for AMANDA. Aside from that the
410 question really is: "Does anyone need a GUI for AMANDA?"
411 Given the fact that backups tend to be run at night while people tend to sleep,
412 who would need a fancy GUI showing 3D-backup-diagrams via X11? The only part of
413 backups where GUIs maybe could add some comfort is recovery for unexperienced
414 users.
415
416  the holding-disk question
417
418 "Why does it say "Some dumps may have been left in the holding disk." and there
419 is nothing in the holding disk?"
420 ANSWER:
421 The third word in the message. Some dumps MAY have been left.
422
423  ...
424
425 Please feel free to suggest additions and corrections. Write to the amanda-
426 users-mailinglist at mailto://amanda-users@amanda.org.
427 -------------------------------------------------------------------------------
428
429 Prev                     Up                          Next
430 Chapter 16. AMANDA FAQ  Home  Chapter 18. AMANDA WISHLIST
431