Paul Bijnens wrote:
Andreas Moser wrote:
./configure --with-user=amanda\
--with-group=users\
--with-group=disk is better and needed in case you want to backup
with dump instead of gnutar.
Okay i deleted the user amanda.users and added a new user amanda.disk.
--with-configdir=/etc/amanda\
--with-config=daily\
--with-gnutar=/bin/tar\
--without-client
(Why bother to save to few bytes on disk by specifying --without-client
Besides you probably want to backup the server too? do you? The
server is a client to itself too. Just nitpicking here. You could
have valid reasons to omit the client.)
I have no idea why I want to compile amanda without the client one. I
did not know that the amanda server needs a client
to backup directories on my server. Actually I want only to backup some
Windows Clients. There are no Unix/Linux Clients.
I thought it would the best thing I compile it without the client one.
But I should not think :)
make make check make install
Just verifying: you did "su" before "make install". It needs
to be done as root!
I did it as root the last time and now again ...
...
Then I create a holding disk for AMANDA: /home/dumps/
Fine. But why not calling it "/home/holdingdisk"?
See below: you're mixing up "virtual tapes" with "holdingdisk".
They are both on disk, but they are a complete different beast.
Moreover, amanda likes to be only to write in the directory specified
by holdingdisk. She will complain about everyting found there that
is not a "holdingdisk file", even "virtual tapes".
Thx for your help. You are right. I mixed it up. That was my fault. I
create an new directory for the holdingdisk: /home/holdingdisk/
Now it was time to configure the amanda.conf (I write an arrow before
every line, which I changed):
...
dumpcycle 4 weeks # the number of days in the normal dump cycle
->runspercycle 1 # the number of amdump runs in dumpcycle days
# (4 weeks * 5 amdump runs per week -- just weekdays)
you plan to do a backup once each four weeks?
Hmm i think i have not a plan ... I want to backup my files at first
once in a week. For e.g. on Fridays. When the backup programm will work
I want to backup my files every day. On Monday a full backup and on
tuesday, wensday, thursday and friday an incremental backup.
->tapecycle 6 # the number of tapes in rotation
...
runtapes 1 # number of tapes to be used in a single run of amdump
->tpchanger "chg-disk" # the tape-changer glue script
->tapedev "file:/home/dumps/" # the no-rewind tape device to be used
See here you mixup the holdingdisk with the "virtual tapes".
Put them in a different directory.
Now I am using for the virtualtapes a new directory: /home/amandatapes/
...
holdingdisk hd1 {
comment "main holding disk"
-> directory "/home/dumps/" # where the holding disk is
Choose a different directory e.g. /home/amanda-hold
I changed it on /home/holdingdisk/ see above
use 290 Mb # how much space can we use on it
That's not much!! Was that the default value?
Yes it is. I left it unchanged.
[...]
Finally I tried the command su amanda -c "amcheck daily" to check my
current config. But I got two ERRORS.
How can I correct this ERRORS?
Amanda Tape Server Host Check
-----------------------------
ERROR: program /usr/local/libexec/planner: not executable
Did you run "make install" as root?
Yes I did!
Holding disk /home/dumps/: 19508000 KB disk space available, that's
plenty
amcheck-server: slot 6: not an amanda tape
amcheck-server: slot 1: not an amanda tape
amcheck-server: slot 2: not an amanda tape
amcheck-server: slot 3: not an amanda tape
amcheck-server: slot 4: not an amanda tape
amcheck-server: slot 5: not an amanda tape
ERROR: new tape not found in rack
(expecting a new tape)
That's strange!! Can't see the error now.
We probably need more info. Or maybe it's a result of the
previous problem too.
Okay can you tell me which information do you need?
Amanda Backup Client Hosts Check
--------------------------------
ERROR: salty: could not resolve hostname
You clearly have a DNS-problem too, or maybe it's also the
a consequence of the first problem, that resulted in
planner not being executable.
I'm sorry. I describe a big part of my installation, but I think it
is easier to you to understand what I made.
I would first dig into the question what went wrong with installing
planner (and probably other programs too).
Planner has to be suid-root (other programs too). This can only be
correct if "make install" was done as root.
I compiled it new and now I get this output:
amanda@linbox:/home> /usr/local/sbin/amcheck daily
Amanda Tape Server Host Check
-----------------------------
WARNING: program /usr/local/sbin/amcheck: not setuid-root
Holding disk /home/holdingdisk/: 17990128 KB disk space available,
that's plenty
amcheck-server: slot 5: not an amanda tape
amcheck-server: slot 6: not an amanda tape
amcheck-server: slot 1: not an amanda tape
amcheck-server: slot 2: not an amanda tape
amcheck-server: slot 3: not an amanda tape
amcheck-server: slot 4: not an amanda tape
ERROR: new tape not found in rack
(expecting a new tape)
NOTE: skipping tape-writable test
NOTE: info dir /home/amanda/DailySet1/curinfo: does not exist
NOTE: it will be created on the next run
Server check took 0.454 seconds
Amanda Backup Client Hosts Check
--------------------------------
Client check: 0 hosts checked in 0.026 seconds, 0 problems found
(brought to you by Amanda 2.4.4p2)
amanda@linbox:/home>
The WARNING message is produced because I changed the owner of amcheck.
Only root could use the command amcheck.
But I want to run it with the user amanda. So I changed the owner to
amanda.
I hope you can further help me.
thx
Andreas
|