1AMANDA-TAPERSCAN(7) Miscellanea AMANDA-TAPERSCAN(7)
2
3
4
6 amanda-taperscan - Amanda Taperscan Algorithms
7
9 Amanda uses a taperscan algorithm to select volumes on which to store
10 dumps. Historically Amanda has provided only one, fairly complex
11 taperscan algorithm, but this algorithm did not suit the needs of all
12 users. Now Amanda offers a wide array of algorithms to suit varied
13 needs. Adding new algorithms is not difficult.
14
15 The taperscan algorithm is specified with the taperscan parameter,
16 which has a default value of traditional.
17
18 Taperscan algorithms are implemented as perl packages with the prefix
19 Amanda::Taper::Scan::. See the perl documentation for
20 Amanda::Taper::Scan for more information.
21
23 In general, these volumes will only select reusable volumes. These are
24 volumes which are listed in the tapelist(5) with the reuse flag, and
25 which are not among the tapecycle-1 most recent volumes in the list.
26 Put another way, reusable volumes do not contain data that must be
27 retained. Note that if fewer than tapecycle-1 volumes have been written
28 then there are no reusable volumes. Newly labeled volumes (volumes that
29 have been labeled with amlabel but never used) are considered reusable.
30
31 Many of these algorithms look for the oldest reusable volume. In most
32 cases, this is the best volume to overwrite, as the data it contains is
33 older than that on any other volume. If there are no reusable volumes,
34 then there is no oldest reusable volume.
35
36 traditional
37 This algorithm duplicates Amanda´s historical behavior, and it operates
38 in two stages.
39
40 First, if there is an oldest reusable volume and if the changer
41 supports "fast" searches, then the algorithm uses the changer to search
42 for that volume. Newly labeled volumes are not considered when
43 calculating the oldest reusable volume. Consequently, this taperscan
44 algorithm prefers volumes which have been used before to newly-labeled
45 volumes when a fast-searchable changer is in use.
46
47 Second, if there is no oldest reusable volume, or if that volume is not
48 available in the changer, then the algorithm begins a sequential scan
49 of the changer, starting at the current slot. It selects the first
50 suitable volume it finds: a reusable volume (perhaps newly-labeled) or,
51 if label_new_tapes is true, a blank volume. Even across multiple
52 invocations (when runtapes > 1), it will not return the same slot
53 twice.
54
55 Note
56 This algorithm shows an undue preference for volumes already
57 containing data, by omitting newly-labeled volumes from its first
58 stage. Historically, many Amanda changer scripts were not
59 fast-searchable (including chg-multi, chg-disk and, if
60 havereader=0, chg-zd-mtx), and thus skipped the first stage,
61 allowing new volumes to find their way into the tape cycle. New
62 changers are almost all fast-searchable, so both stages of the
63 algorithm are used and new tapes may be unexpectedly excluded. If
64 this causes an undesirable change in behavior, consider one of the
65 other taperscan algorithms..sp .5v
66
68 amanda(8), amanda.conf(5), tapelist(5), amanda-changers(7)
69
70 The Amanda Wiki: : http://wiki.zmanda.com/
71
73 Dustin J. Mitchell <dustin@zmanda.com>
74 Zmanda, Inc. (http://www.zmanda.com)
75
76
77
78Amanda 3.1.3 10/04/2010 AMANDA-TAPERSCAN(7)