6526640ff29d4ea2cf397ace101e7891ef7a9e33
[debian/amanda] / debian / amanda-server.README.Debian
1 amanda for DEBIAN
2 -----------------
3
4 Since every Amanda installation is different, there is some work you need to
5 do to configure your server.  For a simple setup, as root you need to:
6
7 1. Create a directory under /etc/amanda for your backup config, we'll assume
8    a name 'DailySet1' as our example.
9
10         mkdir /etc/amanda/DailySet1
11
12    Make sure that /etc/amanda and all the files under it are owner and group
13    backup with directory permissions of 770 and file permissions of 660.
14
15 2. populate this directory with config files.  At a minimum, you need 
16    amanda.conf and disklist.
17
18         cp /usr/share/doc/amanda-server/examples/amanda.conf \
19                 /etc/amanda/DailySet1/amanda.conf*
20         cp /usr/share/doc/amanda-server/examples/disklist \
21                 /etc/amanda/DailySet1/disklist
22
23    Edit these files as needed, following the instructions in each file.
24
25 3. Make sure that /etc/amanda and all the files under it are owner and group
26    backup with directory permissions of 770 and file permissions of 660.
27
28         chown -R backup:backup /etc/amanda
29
30 3. Prepare the "holding disk" if you plan to use one (highly recommended!) by 
31    ensuring user backup can access it.  See the note below indicating that it
32    may be better to use a subdirectory and not a mount point to avoid having 
33    system artifacts like the lost+found directory confuse things.
34
35         chown -R backup:backup <holding disk location>
36
37 4. Install a suitable crontab for user backup.  If you used DailySet1 as your
38    configuration name, you can just install the provided example.  If you
39    picked some other name, you will obviously need to edit a copy of the
40    example before installing it.
41
42         crontab -u backup /usr/share/doc/amanda-server/examples/crontab.amanda
43
44 To use all of Amanda's features, you probably also want to put each client
45 machine's root user in the .rhosts or .amandahosts for ~backup on the server 
46 machine.  On Debian systems, this is usually linked to /etc/amandahosts, but
47 if you have clients running other operating systems you'll have to find the
48 right place yourself.
49
50
51 NOTE:  If you want to backup your server too, you need to treat it as both a
52 client *and* a server, see /usr/share/doc/amanda-client/README.Debian for 
53 more information.
54
55
56 For more complex setups, consult the manpages and the extra documents and
57 example files in /usr/share/doc/amanda-common, or look at www.amanda.org on
58 the web.
59
60 Another Note: if you use floppy tapes you have to use the sftape interface 
61 for use with ftape(>=3.03).
62
63 Jean Pierre LeJacq <jplejacq@mail.quoininc.com> reports the following about
64 his experience using ftape:
65
66   I'm using ftape successfully with amanda but only after
67   struggling.  The crucial trick was to set the block size with with ftmt to 
68   be the same as used by amanda.  I've implemented this with this entry in
69   /etc/modules.conf:
70   
71     alias char-major-27 zftape
72     pre-install zftape /sbin/swapout 5
73     post-install zftape /bin/ftmt -f /dev/nzqft0 setblk 32768
74
75
76 To ease use with firewalls, Amanda has been built with options restricting the
77 use of TCP to the port range 50000-50100,  and UDP to the port range 840-860.
78
79 Sam Johnston <samj@samj.net> reported problems with an Amanda server on which
80 bastille was used with the "restrict system resources" option.  See bug
81 118616 in the Debian bug tracking system for more information.
82
83 If you choose to use the SSH authentication method and associated transport,
84 please be aware that there may be problems if /usr/lib/amanda/dumper is suid.
85 You can fix this on your server with chmod u-s /usr/lib/amanda/dumper, or
86 investigate dpkg-statoverride.
87
88 Concerns have been expressed about the reliability of 'dump' as a backup tool
89 on live Linux systems.  Nothing can guarantee a consistent and meaningful 
90 backup of a live filesystem under all circumstances, and the maintainer of
91 these packages uses dump with good results.  
92
93 The tar utility is 'essential' in Debian and so will always be around, is not 
94 tied to any specific filesystem type, and there are entries in the default 
95 amanda.conf file defining dump types using tar.  This may therefore be a good
96 option to consider.
97
98 Note that if you are using tar with amanda, and getting errors about missing
99 exclude files (particularly on upgrades from older versions), then you may
100 need to update your dumptypes definition to explicitly indicate that the 
101 exclude file is optional, as shown in this example:
102
103         define dumptype userdata-lowvalue {
104            program "GNUTAR"
105            comment "Low value user data dumped with tar"
106            options compress-fast, index
107            exclude list optional ".amandaexclude"
108            priority low
109         }
110
111 - - - - -
112
113 If you see backups failing with an error like:
114
115         driver: FATAL flush line 1: syntax error (skipping != FLUSH)
116
117 The problem may be that some versions of Amanda around 2.5.2 are not 
118 happy if there are unexpected contents in the holdingdisk you have
119 defined on the server.  This can occur, for example, if you are using
120 the mount point of a separate filesystem that contains a lost+found
121 directory.  The quick fix is to create a subdirectory in that partition
122 for Amanda to use that will have no such unexpected contents.  For more 
123 info on this issue see:
124
125         http://forums.zmanda.com/archive/index.php/t-591.html
126
127 - - - - -
128
129 If you see things like this in dmesg:
130
131     INFO: task ammt:9839 blocked for more than 120 seconds.
132     "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
133
134 This information from Marc Schaefer may relevant:
135
136 > AFAIK it's because mtio operations are done in D state (uninterruptible
137 > sleep).
138
139 > And except for mtio operations which may last more than two minutes,
140 > nothing in the usual kernel operation will last that long.
141
142 > Solutions:
143 >       - either fix mtio to be interruptible (which may well cause problems
144 >         because e.g. SCSI reselection might happen later)
145 >       - use the proposed work-around
146 >       - ignore those messages in your logcheck.
147
148
149