Imported Upstream version 2.4.5
[debian/amanda] / docs / faq.txt
1
2              Chapter 16. AMANDA FAQ
3 Prev  Part IV. Various Information  Next
4
5 -------------------------------------------------------------------------------
6
7 Chapter 16. AMANDA FAQ
8
9
10 AMANDA Core Team
11
12 AMANDA Core Team
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   QUESTION:_Why_does_AMANDA_fail_to_build_on_my_system?
23
24   QUESTION:_Why_does_amdump_report_that_all_disks_failed?
25
26   QUESTION:_Why_does_amcheck_say_"port_NNN_is_not_secure"?
27
28   QUESTION:_Why_does_amcheck_claim_that_the_tape_is_"not_an_amanda_tape"?
29
30   QUESTION:_Why_does_amcheck_report_"selfcheck_request_timed_out"?
31
32   QUESTION:_Why_does_amandad.debug_contain_"error_receiving_message"?
33
34   QUESTION:_Why_does_amcheck_say_"access_as_<username>_not_allowed..."?
35
36   QUESTION:_Why_does_amcheck_report_"ip_address_#.#.#.#"_is_not_in_the_ip_list
37   list_for_<hostname>'?
38
39   QUESTION:_Why_does_amcheck_say_"cannot_overwrite_active_tape"?
40
41   QUESTION:_Why_does_amcheck_tell_me_"DUMP_program_not_available"?
42
43   QUESTION:_Which_tape_changer_configuration_should_I_use_in_amanda.conf?
44
45   QUESTION:_Should_I_use_software_or_hardware_compression?
46
47   QUESTION:_How_can_I_configure_AMANDA_so_that_it_performs_full_backups_on_the
48   week-end_and_incrementals_on_weekdays?
49
50   QUESTION:_What_if_my_tape_unit_uses_expensive_tapes,_and_I_don't_want_to_use
51   one_tape_per_day?_Can't_AMANDA_append_to_tapes?
52
53   QUESTION:_How_can_I_configure_AMANDA_for_long-term_archiving?
54
55   QUESTION:_Can_I_backup_separate_disks_of_the_same_host_in_different
56   configurations?
57
58   QUESTION:_Can_AMANDA_span_large_filesystems_across_multiple_tapes?
59
60   QUESTION:_What's_the_difference_between_option_"skip-full"_and_"strategy
61   nofull"?
62
63   QUESTION:_Why_does_amdump_report_"results_missing"?
64
65   QUESTION:_Why_does_amdump_report_"disk_offline"?
66
67   QUESTION:_What_if_amdump_reports_"dumps_way_too_big,_must_skip_incremental
68   dumps"?
69
70   QUESTION:_amdump_reported_"infofile_update_failed"._What_should_I_do?
71
72   QUESTION:_Why_does_AMANDA_sometimes_promote_full_dumps?
73
74   QUESTION:_Why_does_amrecover_report_"no_index_records"_or_"disk_not_found"?
75
76   QUESTION:_Ok,_I'm_done_with_testing_AMANDA,_now_I_want_to_put_it_in
77   production._How_can_I_reset_its_databases_so_as_to_start_from_scratch?
78
79   QUESTION:_The_man-page_of_dump_says_that_active_filesystems_may_be_backed_up
80   inconsistently._What_does_AMANDA_do_to_prevent_inconsistent_backups?
81
82   QUESTION:_Which_version_of_GNU-tar_should_I_use?
83
84
85 Note
86
87 Refer to http://www.amanda.org/docs/faq.html for the current version of this
88 document.
89 This file contains answers to some questions that are frequently asked in the
90 AMANDA mailing lists, specially by new users. Please take a look at this file
91 before posting, this can save us time that could be spent improving AMANDA and
92 its documentation.
93 New entries and modifications are welcome; send them to mailto://amanda-
94 users@amanda.org or mailto://amanda-hackers@amanda.org.
95 You may also want to take a look at the AMANDA FAQ-O-Matic http://
96 www.amanda.org/fom-serve/cache/1.html.
97
98  QUESTION: Why does AMANDA fail to build on my system?
99
100 ANSWER: One of the most common reasons for compile-time errors is stale
101 information in config.cache, after a build on a different platform using the
102 same build tree. In order to avoid this problem, make sure you don't ever reuse
103 build trees across platforms, or at least run make distclean before running
104 configure on another platform.
105 Another common reason for failure, that causes link-time errors, is a problem
106 in libtool that causes it to search for symbols in already-installed amanda
107 libraries, instead of in the just-built ones. This problem is known to affect
108 SunOS 4.1.3 and FreeBSD. You can usually work around it by specifying a
109 different prefix when you configure the new version of AMANDA. However, it may
110 not work if the previous version of AMANDA was installed in /usr/local and gcc
111 searches this directory by default; in this case, you must either remove the
112 old libraries (which you don't want to do, right? :-) or call configure with
113 the flag --disable-libtool. In this case, AMANDA won't create shared libraries,
114 so binaries will be larger, but you may worry about that later.
115 You may also want to take a look at AMANDA_2.4.x_-_System-Specific_Installation
116 Notes, as well as to the AMANDA Patches Page (http://www.amanda.org/patches/
117 ) for other known problems. If everything fails, you should read the manual,
118 but since we don't have one yet, just post a help request to the amanda-users
119 mailing list (mailto://amanda-users@amanda.org), showing the last few lines of
120 the failed build.
121
122  QUESTION: Why does amdump report that all disks failed?
123
124 ANSWER: Probably because the AMANDA clients are not properly configured. Before
125 you ever run amdump, make sure amcheck succeeds. When it does, so should
126 amdump.
127 Make sure you run amcheck as the same user that is supposed to start amdump,
128 otherwise you may get incorrect results.
129
130  QUESTION: Why does amcheck say "port NNN is not secure"?
131
132 ANSWER: Because amcheck, as some other AMANDA programs, must be installed as
133 setuid-root. Run make install as "root", or chown all AMANDA setuid programs to
134 "root", then chown u+s them again, if chown drops the setuid bit.
135
136  QUESTION: Why does amcheck claim that the tape is "not an amanda tape"?
137
138 ANSWER: Because AMANDA requires you to label tapes before it uses them. Run
139 amlabel in order to label a tape.
140 If, even after labeling a tape, amcheck still complains about it, make sure the
141 regular expression specified in amanda.conf matches the label you have
142 specified, and check whether you have configured non-rewinding tape devices for
143 AMANDA to use. For example, use /dev/nrst0 instead of /dev/rst0, /dev/rmt/0bn
144 instead of /dev/rmt/0b, or some other system-dependent device name that
145 contains an "n", instead of one that does not. The "n" stands for non-
146 rewinding.
147 If you have labeled any tapes using the rewiding device configuration, you'll
148 have to label them again.
149
150  QUESTION: Why does amcheck report "selfcheck request timed out"?
151
152 ANSWER: This can occur under several different situations. First, make sure
153 this problem is repeatable; if AMANDA programs are NFS-auto-mounted, some
154 clients may fail to mount the AMANDA binaries in time.
155 If the error is repeatable, log into the client, and check whether the
156 directory /tmp/amanda exists, and a file named amandad.debug exists in there:
157 amandad will create this file whenever it starts. If this file does not exist,
158 amandad is not starting properly, or it lacks permission to create /tmp/amanda/
159 amandad.debug.
160 In the latter case, wipe out /tmp/amanda, and amandad should create it next
161 time it runs. In the former case, check your inetd configuration. Make sure you
162 have added the AMANDA services to /etc/services (or the NIS services map), that
163 /etc/inetd.conf was properly configured, and that you have signalled inetd to
164 reread this file (some systems may need rebooting). Check section 2.2 from in
165 the Amanda_Installation_Notes for details. Check the inetd man-page for
166 possible differences between the standard format of /etc/inetd.conf and the one
167 in your system.
168 Pay special attention to typos in /etc/inetd.conf; error messages will probably
169 appear in /var/adm/messages or /var/log/messages if you have typed the amandad
170 program name incorrectly. Make sure the same user that you have specified at
171 configure-time (configure --with-user=<USERNAME>) is listed in /etc/inetd.conf.
172 Check whether this user has permission to run amandad, as well as any shared
173 libraries amandad depends upon, by running the specified amandad command by
174 hand, as the AMANDA user. It should just time-out after 30 seconds waiting for
175 a UDP packet. If you type anything, it will abort immediately, because it can't
176 read a UDP packet from the keyboard.
177 As soon as you have properly configured /etc/inetd.conf so as to run amandad,
178 you should no longer get the "selfcheck request timed out" message. A nice tool
179 to help make sure inetd is really listening on the amandad port is lsof,
180 available at ftp://vic.cc.purdue.edu/pub/tools/unix/lsof.
181
182  QUESTION: Why does amandad.debug contain "error receiving message"?
183
184 ANSWER: One possibility is that you have run amandad from the command line
185 prompt and typed anything instead of waiting for it to time-out: in this case,
186 it will try to read a UDP packet from the keyboard, and this was reported not
187 to work on most keyboards :-). However, if you have run amandad as any user
188 other than the one listed in /etc/inetd.conf, it may have created a /tmp/amanda
189 directory that the AMANDA user cannot write to, so you should wipe it out.
190 Another possibility is that the AMANDA service was not properly configured as a
191 UDP service; check /etc/services and /etc/inetd.conf.
192
193  QUESTION: Why does amcheck say "access as <username> not allowed..."?
194
195 ANSWER: There must be something wrong with .amandahosts configuration (or
196 .rhosts, if you have configured --without-amandahosts).
197 First, if the <username> is not what you expect (i.e., not what you have
198 specified in the --with-user flag, at configure time), check the inetd
199 configuration file: you must have specified the wrong username there.
200 Make sure you specify the names exactly as they appear in the error message
201 after the `@' sign in .amandahosts/.rhosts. You'll need a fully-qualified
202 domain name or not, depending on how your client resolves IP addresses to host
203 names.
204
205  QUESTION: Why does amcheck report "ip address #.#.#.#" is not in the ip list
206 list for <hostname>'?
207
208 ANSWER: Check your DNS configuration tables. In order to avoid DNS-spoofing,
209 AMANDA double-checks hostname<->IP address mapping. If the IP address the
210 request comes from maps to a hostname, but this hostname does not map back to
211 the incoming IP address, the request is denied.
212
213  QUESTION: Why does amcheck say "cannot overwrite active tape"?
214
215 ANSWER: Because, if you configure AMANDA to use N tapes, by setting tapecycle
216 to N in amanda.conf, before AMANDA overwrites a tape, it must write to at least
217 other N-1 tapes. Of course, AMANDA will always refuse to overwrite a tape
218 marked for `noreuse' with amadmin. Furthermore, such tapes are not counted when
219 AMANDA computes `N-1' tapes.
220 If, for some reason, you want to tell AMANDA to overwrite a particular tape,
221 regardless of its position in the cycle, use amrmtape. This command will remove
222 this tape from the tapelist file, that is used to manage the tape cycle, and
223 will delete information about backups stored in that tape from the AMANDA
224 database.
225
226  QUESTION: Why does amcheck tell me "DUMP program not available"?
227
228 ANSWER: Because configure could not find dump when it was first run. This is a
229 common problem on Linux hosts, because most Linux distributions do not install
230 dump by default.
231 If you don't have a DUMP program installed, install it, remove config.cache,
232 run configure again and rebuild AMANDA. While configure is running, make sure
233 it can find the installed DUMP program. If it cannot, you may have to set the
234 environment variables DUMP and RESTORE by hand, before running configure.
235 If you can't or don't want to install DUMP, you may use GNU tar, but make sure
236 it as release 1.12 or newer; release 1.11.8 may work, but estimates will be
237 slow as hell.
238
239  QUESTION: Which tape changer configuration should I use in amanda.conf?
240
241 ANSWER: If you only have one tape unit, you have two choices: (i) don't use a
242 tape changer at all, i.e., set runtapes to 1, set tapedev to the non-rewinding
243 device corresponding to the tape unit, and comment out tpchanger, changerfile
244 and changerdev; or (ii) set up chg-manual, so that you can change tapes
245 manually. If you select chg-manual, you will not be able to start amdump as a
246 cron job, and you should always run amflush -f, because chg-manual will ask you
247 to press return in the terminal where you started the controlling program.
248 If you have several tape units, which you want to use to emulate a tape
249 changer, you want chg-multi. Even if you do own a real tape changer, that
250 operates based on ejecting a tape or such, chg-multi may be useful.
251 Actual tape changers usually require specialized changer programs, such as mtx,
252 chio or specific system calls. The availability of these programs is much more
253 dependent on the operating system you're running than on the particular tape
254 changer hardware you have.
255 mtx, for example, is available for several platforms. However, even if you find
256 it for your platform, beware that there exist several different programs named
257 mtx, that require different command line arguments, and print different output,
258 and AMANDA's chg-mtx does not support them all. You may have to edit the
259 script, which shouldn't be hard to do.
260 In section BUILT-IN TAPE CHANGERS of AMANDA_Tape_Changer_Support you will find
261 details about the tape changer interfacing programs provided with AMANDA, that
262 can interact with common tape changer programs and with tape changer-related
263 system calls provided by some operating system. If none of them matches your
264 needs, you may have to develop your own tape changer interface script.
265 Before posting a question to the AMANDA mailing lists, *please* search the
266 archives, and try to obtain as much information about driving your tape changer
267 hardware from the vendor of the changer hardware and of the operating system,
268 rather than from the AMANDA mailing lists. We usually don't have much to say
269 about tape changer units, and several questions about them remain unanswered. :
270 -(
271 Anyway, if you decide to post a question, make sure you specify both the tape
272 changer hardware *and* the OS/platform that is going to interface with it. Good
273 luck! :-)
274
275  QUESTION: Should I use software or hardware compression?
276
277 ANSWER: When you enable software compression, you drastically reduce the
278 compression that might be achieved by hardware. In fact, tape drives will
279 usually use *more* tape if you tell them to try to further compress already
280 compressed data.
281 Thus, you must choose whether you're going to use software or hardware
282 compression; don't ever enable both unless you want to waste tape space.
283 Since AMANDA prefers to have complete information about tape sizes and
284 compression rates, it can do a better job if you use software compression.
285 However, if you can't afford the extra CPU usage, AMANDA can live with the
286 unpredictability of hardware compression, but you'll have to be very
287 conservative about the specified tape size, specially if there are filesystems
288 that contain mostly uncompressible data.
289
290  QUESTION: How can I configure AMANDA so that it performs full backups on the
291 week-end and incrementals on weekdays?
292
293 ANSWER: You can't. AMANDA doesn't work this way. You just have to tell AMANDA
294 how many tapes you have (tapecycle), and how often you want it to perform full
295 backups of each filesystem (dumpcycle). If you don't run it once a daily
296 (including Saturdays and Sundays :-), you'll also want to tell AMANDA how many
297 times you'll run it per dumpcycle (runspercycle). It will spread full backups
298 along the dumpcycle, so you won't have any full-only or incremental-only runs.
299 Please also refer to "the friday-tape-question" in Collection_of_the_top_ten
300 AMANDA_questions._And_answers..
301
302  QUESTION: What if my tape unit uses expensive tapes, and I don't want to use
303 one tape per day? Can't AMANDA append to tapes?
304
305 ANSWER: It can't, and this is good. Tape drives and OS drivers are (in)famous
306 for rewinding tapes at unexpected times, without telling the program that's
307 writing to them. If you have a month's worth of backups in that tape, you
308 really don't want them to be overwritten, so AMANDA has taken the safe approach
309 of requiring tapes to be written from the beginning on every run.
310 This can be wasteful, specially if you have a small amount of data to back up,
311 but expensive large-capacity tapes. One possible approach is to run amdump with
312 tapes only, say once a week, to perform full backups, and run it without tape
313 on the other days, so that it performs incremental backups and stores them in
314 the holding disk. Once or twice a week, you flush all backups in the holding
315 disk to a single tape.
316 If you don't trust your holding disk, and you'd rather have all your data on
317 tapes daily, you can create an alternate configuration, with two tapes, that
318 backs up the holding disk only, always as a full backup. You'd run this
319 configuration always after your regular backup, so you always have a complete
320 image of the holding disk on tape, just in case it fails.
321
322  QUESTION: How can I configure AMANDA for long-term archiving?
323
324 ANSWER: The best approach is to create a separate configuration for your
325 archive backups. It should use a separate set of tapes, and have all dumptypes
326 configured with `record no', so it doesn't interfere with regular backups.
327
328  QUESTION: Can I backup separate disks of the same host in different
329 configurations?
330
331 ANSWER: Yes, but you have to be careful. AMANDA uses UDP to issue estimate and
332 backup requests and, although replies to backup requests are immediate (so that
333 TCP connections for the actual backup can be established), replies to estimate
334 requests are not and, while one request is being processed, any other request
335 is ignored. The effect is two-fold:
336 (i) if another configuration requests for estimates, the request will be
337 ignored, and the requester will end up timing out;
338 (ii) if another configuration has already finished the estimates, and is now
339 requesting for backups, the backup requests will time-out.
340 So, there are two easy ways out:
341 (i) ensure that the configurations never run concurrently, or
342 (ii) set up two different installations of the AMANDA server, using different
343 services names to contact the clients, i.e., different port numbers. This can
344 be attained with the configure flag --with-testing=<service-suffix>i. Yes, the
345 flag name is not appropriate, but so what?
346 If you don't want to set up two installations of AMANDA (I agree, it's
347 overkill), but you still want to back up disks of the same host in separate
348 configurations, you can set up AMANDA so that one configuration only starts
349 after the first one has already finished its One possible way to work-around
350 this limitation is to start one configuration only after you know the estimates
351 for the first one have already finished (modifying the crontab entries,
352 according to history data). You'll also have to delay the starttime (a dumptype
353 option) of the disks in the first configuration, so that they don't start
354 backing up before the estimates of the second configuration finish.
355
356  QUESTION: Can AMANDA span large filesystems across multiple tapes?
357
358 ANSWER: Not yet :-(
359 This is an open project, looking for developers. If you'd like to help, please
360 take a look at the AMANDA Ongoing Projects Page (http://www.amanda.org/
361 ongoing.php), where more up-to-date information is likely to be found about
362 this project.
363 Update September 2004: Refer to the archive of the amanda-hackers mailinglist
364 (http://marc.theaimsgroup.com/?l=amanda-hackers). A patch by John Stange is
365 being discussed there, which allows splitting and spanning.
366 The current work-around is to use GNU tar to back up subdirectories of the huge
367 filesystem separately. But be aware of the problems listed in the question
368 about "results missing".
369
370  QUESTION: What's the difference between option "skip-full" and "strategy
371 nofull"?
372
373 ANSWER: "strategy nofull" is supposed to handle the following situation: you
374 run a full dump off-line once a millenium :-), because that disk isn't supposed
375 to change at all and, if it does, changes are minimal. AMANDA will run only
376 level 1 backups of that filesystem, to avoid the risk of overwriting a level 1
377 backup needed to do a restore. Remember, you run full dumps once a millenium,
378 and your tape cycle probably won't last that long :-)
379 "skip-full", OTOH, is supposed to let the user run full dumps off-line
380 regularly (i.e., as often as specified in the dumpcycle), while AMANDA takes
381 care of the incrementals. Currently, AMANDA will tell you when you're supposed
382 to run the level 0 backups but, if you fail to do so, AMANDA will not only skip
383 a full day's worth of valuable backups of the filesystem, on the day it told
384 you to the full backup manually, but it will also run a level 1 backup on the
385 next day, even if you have not performed the full backup yet. Worse yet: it
386 might perform a level 2 on the next day, just after you have run the level 0,
387 so, if the disk should crash, you'd have to restore a level 0 then a level 2,
388 but not the level 1! Not a real problem, but definitely strange, eh?
389
390  QUESTION: Why does amdump report "results missing"?
391
392 ANSWER: One of the possible reasons is that you have requested too many backups
393 of the host. In this case, the estimate request or the reply may not fit in a
394 UDP packet. This will cause AMANDA not to perform some of the backups. Fixing
395 this problem involves modifying the way estimate requests are issued, so that
396 no packet exceeds the maximum packet size, and issuing additional requests that
397 did not fit in a UDP packet after a reply for the previous set is obtained. The
398 probability of getting this problem has been considerably reduced since we
399 increased the maximum UDP packet size from 1Kb to 64Kb, but some operating
400 systems may not support such large packets.
401 One possible work-around is to try to shorten the pathnames of the directories
402 and the exclude file names, so that more requests fit in the UDP packet. You
403 may create short-named links in some directory closer to the root (/) so as to
404 reduce the length of names. I.e., instead of backing up /usr/home/foo and /usr/
405 home/bar, create the following links:
406
407   /.foo -> /usr/home/foo
408   /.bar -> /usr/home/bar
409
410 then list /.foo and /.bar in the disklist.
411 Another approach is to group sub-directories in backup sets, instead of backing
412 up them all separately. For example, create /usr/home/.bkp1 and move `foo' and
413 `bar' into it, then create links so that the original pathnames remain
414 functional. Then, list /usr/home/.bkp1 in the disklist. You may create as many
415 `.bkp<N>' directories as you need.
416 A simpler approach, that may work for you, is to backup only a subset of the
417 subdirectories of a filesystem separately. The others can be backed up together
418 with the root of the filesystem, using an exclude list that prevents duplicate
419 backups.
420
421  QUESTION: Why does amdump report "disk offline"?
422
423 ANSWER: Well, assuming the disk is not really off line :-), it may be a
424 permission problem, but then, amcheck would have reported it.
425 Another possible reason for this failure is a filesystem error, that causes
426 DUMP to crash before it estimates the backup size; a fsck may help.
427 Yet another possibility is that the filesystem is so large that the backup
428 program is incorrectly reporting the estimated size, for example, by printing a
429 negative value that AMANDA will not accept as a valid estimate. If you are
430 using dump, contact your vendor and request a patch for dump that fixes this
431 bug. If you are using GNU tar, make sure it is release 1.12 or newer; 1.11.8
432 won't do! Even release 1.12 may require a patch to correctly report estimates
433 and dump sizes, as well as to handle sparse files correctly and quickly instead
434 of printing error messages like `Read error at byte 0, reading 512 bytes, in
435 file ./var/log/lastlog: Bad file number' in sendsize.debug and being very slow.
436 Check the patches directory of the AMANDA distribution.
437
438  QUESTION: What if amdump reports "dumps way too big, must skip incremental
439 dumps"?
440
441 ANSWER: It means AMANDA couldn't back up some disk because it wouldn't fit in
442 the tape(s) you have configured AMANDA to use. It considered performing some
443 incrementals instead of full dumps, so that all disks would fit, but this
444 wouldn't be enough, so the disk really had to be dropped in this run.
445 In general, you can just ignore this message if it happens only once in a
446 while. Low-priority disks are discarded first, so you'll hardly miss really
447 important data.
448 One real work-around is to configure AMANDA to use more tapes: increase
449 `runtapes' in amanda.conf. Even if you don't have a real tape changer, you can
450 act yourself as a changer (`chg-manual'; more details in the question about
451 tape changer configuration), or use `chg-multi' with a single tape unit, and
452 lie to AMANDA that it will have two tapes to use. If you have a holding disk as
453 large as a tape, and configure AMANDA (2.4.1b1 or newer) not to reserve any
454 space for degraded dumps, dumps that would be stored in the second tape of a
455 run will be performed to the holding disk, so you can flush them to tape in the
456 morning.
457
458  QUESTION: amdump reported "infofile update failed". What should I do?
459
460 ANSWER: Make sure all directories and files are readable and writable by the
461 AMANDA user, within the directory you specified as `infofile' in amanda.conf.
462 From then on, only run amanda server commands ( amadmin, amdump, amflush,
463 amcleanup) as the AMANDA user, not as root.
464
465  QUESTION: Why does AMANDA sometimes promote full dumps?
466
467 ANSWER: To spread the full dumps along the dumpcycle, so that daily runs take
468 roughly the same amount of tape and time. As soon as you start using AMANDA, it
469 will run full dumps of all filesystems. Then, on the following runs, it will
470 promote some backups, so as to adjust the balance. After one or two dumpcycles,
471 it should stop promoting dumps. You can see how well it is doing with amadmin
472 <conf> balance. If you find the results surprising, you may want to adjust
473 dumpcycle or runspercycle.
474
475  QUESTION: Why does amrecover report "no index records" or "disk not found"?
476
477 ANSWER: The most common cause of this problem is not having enabled index
478 generation in amanda.conf. The `index yes' option must be present in every
479 dumptype for whose disks indexes should be generated.
480 Another possibility is that amrecover is not selecting the configuration name
481 that contains the backups for the selected disk. You may specify a
482 configuration name with the `-C' switch, when you invoke amrecover. The default
483 configuration name can only be specified at AMANDA configure time (configure --
484 with-config=<name>).
485 Indexes are currently generated at backup-time only, so, if a backup was
486 performed without creating an index, you won't be able to use amrecover to
487 restore it, you'll have to use amrestore.
488
489  QUESTION: Ok, I'm done with testing AMANDA, now I want to put it in
490 production. How can I reset its databases so as to start from scratch?
491
492 ANSWER: First, remove the `curinfo' database. By default, it is a directory,
493 but, if you have selected any other database format (don't, they're
494 deprecated), they may be files with extensions such as .dir and .pag.
495 Then, remove any log files from the log directory: log.<TIMESTAMP>.<count> and
496 amdump.<count>. Finally, remove the tapelist file, stored in the directory that
497 contains amanda.conf, unless amanda.conf specifies otherwise. Depending on the
498 tape changer you have selected, you may also want to reset its state file.
499
500  QUESTION: The man-page of dump says that active filesystems may be backed up
501 inconsistently. What does AMANDA do to prevent inconsistent backups?
502
503 ANSWER: Nothing. When you back up an active filesystem, there are two
504 possibilities:
505 dump may print strange error messages about invalid blocks, then fail; in this
506 case, AMANDA will retry the backup on the next run.
507 Files that are modified while dump runs may be backed up inconsistently. But
508 then, they will be included in the next incremental backup, which should
509 usually be enough.
510 Large, critical files such as databases should be locked somehow, to avoid
511 inconsistent backups, but there's no direct support for that in AMANDA. The
512 best bet is to configure AMANDA to use a wrapper to dump, that locks and
513 unlocks the database when appropriate.
514
515  QUESTION: Which version of GNU-tar should I use?
516
517 ANSWER: (slightly adapted from a posting by Paul Bijnens
518 <paul.bijnens@xplanation.com>, Mon, 11 Apr 2005):
519
520 * 1.13.19 is good.
521   However it still sets return code 2 for some infrequent conditions even with
522   --ignore-failed-read option. This results in AMANDA thinking the total
523   archive is bad, and drops the complete archive. Those conditions are very
524   rare on a quiet filesystem.
525 * 1.13.25 is good: no problems found (yet).
526 * 1.13.9x is not good.
527   It has changed the format of "tar -t", resulting in amrecover not able to use
528   the indexes.
529 * 1.14.x is not good.
530   It writes good archives, but when restoring, it has trouble with sparse
531   files; the sparse file itself, and *all* files after it cannot be read
532   anymore. But you can read the archive with a good tar version (i.e. the tar
533   images produced are fine).
534 * 1.15.1 is good: no problems found (yet).
535   Paul Bijnens: "I'm using this version on most of my clients since january
536   this year (2005), and have already done successful restore too."
537
538 -------------------------------------------------------------------------------
539
540 Prev                       Up                                           Next
541 Chapter 15. Using AMANDA  Home  Chapter 17. Collection of the top ten AMANDA
542                                                      questions. And answers.
543