lintian doesn't like orphan packages with uploaders...
[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 NOTE:  If you want to backup your server too, you need to treat it as both a
51 client *and* a server, see /usr/share/doc/amanda-client/README.Debian for 
52 more information.
53
54 For more complex setups, consult the manpages and the extra documents and
55 example files in /usr/share/doc/amanda-common, or look at www.amanda.org on
56 the web.
57
58 Another Note: if you use floppy tapes you have to use the sftape interface 
59 for use with ftape(>=3.03).
60
61 Jean Pierre LeJacq <jplejacq@mail.quoininc.com> reports the following about
62 his experience using ftape:
63
64   I'm using ftape successfully with amanda but only after
65   struggling.  The crucial trick was to set the block size with with ftmt to 
66   be the same as used by amanda.  I've implemented this with this entry in
67   /etc/modules.conf:
68   
69     alias char-major-27 zftape
70     pre-install zftape /sbin/swapout 5
71     post-install zftape /bin/ftmt -f /dev/nzqft0 setblk 32768
72
73 To ease use with firewalls, Amanda has been built with options restricting the
74 use of TCP to the port range 50000-50100,  and UDP to the port range 840-860.
75
76 Sam Johnston <samj@samj.net> reported problems with an Amanda server on which
77 bastille was used with the "restrict system resources" option.  See bug
78 118616 in the Debian bug tracking system for more information.
79
80 If you choose to use the SSH authentication method and associated transport,
81 please be aware that there may be problems if /usr/lib/amanda/dumper is suid.
82 You can fix this on your server with chmod u-s /usr/lib/amanda/dumper, or
83 investigate dpkg-statoverride.
84
85 Concerns have been expressed about the reliability of 'dump' as a backup tool
86 on live Linux systems.  Nothing can guarantee a consistent and meaningful 
87 backup of a live filesystem under all circumstances, and the maintainer of
88 these packages uses dump with good results.  
89
90 The tar utility is 'essential' in Debian and so will always be around, is not 
91 tied to any specific filesystem type, and there are entries in the default 
92 amanda.conf file defining dump types using tar.  This may therefore be a good
93 option to consider.
94
95 Note that if you are using tar with amanda, and getting errors about missing
96 exclude files (particularly on upgrades from older versions), then you may
97 need to update your dumptypes definition to explicitly indicate that the 
98 exclude file is optional, as shown in this example:
99
100         define dumptype userdata-lowvalue {
101            program "GNUTAR"
102            comment "Low value user data dumped with tar"
103            options compress-fast, index
104            exclude list optional ".amandaexclude"
105            priority low
106         }
107
108 - - - - -
109
110 If you see backups failing with an error like:
111
112         driver: FATAL flush line 1: syntax error (skipping != FLUSH)
113
114 The problem may be that some versions of Amanda around 2.5.2 are not 
115 happy if there are unexpected contents in the holdingdisk you have
116 defined on the server.  This can occur, for example, if you are using
117 the mount point of a separate filesystem that contains a lost+found
118 directory.  The quick fix is to create a subdirectory in that partition
119 for Amanda to use that will have no such unexpected contents.  For more 
120 info on this issue see:
121
122         http://forums.zmanda.com/archive/index.php/t-591.html
123
124 - - - - -
125
126 If you see things like this in dmesg:
127
128     INFO: task ammt:9839 blocked for more than 120 seconds.
129     "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
130
131 This information from Marc Schaefer may relevant:
132
133 > AFAIK it's because mtio operations are done in D state (uninterruptible
134 > sleep).
135
136 > And except for mtio operations which may last more than two minutes,
137 > nothing in the usual kernel operation will last that long.
138
139 > Solutions:
140 >       - either fix mtio to be interruptible (which may well cause problems
141 >         because e.g. SCSI reselection might happen later)
142 >       - use the proposed work-around
143 >       - ignore those messages in your logcheck.
144