> >>> [EMAIL PROTECTED] 04/09/02 12:17PM >>>
> >
> >I got it. Thanks a lot. I'll install it first thing tomorrow morning.
>
> Let me know how it goes. In theory :-), it's perfect. But I don't
> run mtx here so debugging has been a bit of an adventure. It's ever so
> faintly possible there is a minuscule portion of a tiny chance you'll
> find a problem. But if so, send me the output of what you tried, the
> corresponding /tmp/amanda/*debug file, and why you think it's wrong
> (in case it's not obvious).
Thank you for your help, John. I'm trying to use the script I've downloaded
from your ftp site. I removed my old amanda installation (it was installed
from redhat 7.2 rpm) and everything related to it. Then I installed
amanda-2.4.2p2 from the source, placed chg-zd-mtx.sh.in-243 in changer-src
renaming it to chg-zd-mtx.sh.in, run ./configure --with-user=amanda
--with-group=disk and make from the top and then make install from
changer-src.
The current problem is that I'm getting the WARNING: tapedev is /dev/null,
dumps will be thrown away
but I have no tapedev "/dev/null" in my amanda.conf file.
Here goes the beginning part of amanda.conf:
#amanda.conf
org "DailySet"
mailto "amanda wardawyg"
dumpuser "amanda"
inparallel 4
netusage 600 Kbps
dumpcycle 4 weeks
runspercycle 4 weeks
tapecycle 25 tapes
bumpsize 20 Mb
bumpdays 1
bumpmult 4
etimeout 300
runtapes 2
changerfile "/usr/local/etc/amanda/chg-scsi-linux"
changerdev "/dev/sga"
tpchanger "chg-zd-mtx"
tapetype DAT-120m
labelstr "^DailySet1[0-9][0-9]*$"
holdingdisk hd1 {
comment "main holding disk"
directory "/var/tmp"
use 1000 Mb
}
infofile "/usr/adm/amanda/Daily/curinfo"
logdir "/usr/adm/amanda/Daily"
indexdir "/usr/adm/amanda/Daily/index"
define tapetype DAT-120m {
comment "DAT tape (120m tapes)"
length 4000 mbytes
filemark 250 kbytes
speed 512 kbytes
}
###############cut##########################
I'm not sure about my changer config file - I took an example file (I picked
chg-scsi-linux.conf up just because the tapedrive is connected to the scsi
card and my platform is Linux), replaced its dev entries (/dev/nst0,
/dev/sg1) with /dev/sga and changed the values of startuse, enduse and
cleancart.
OK, here goes amcheck output:
[
root@linver sbin]# su amanda -c"/usr/local/sbin/amcheck Daily"
Amanda Tape Server Host Check
-----------------------------
WARNING: tapedev is /dev/null, dumps will be thrown away
Holding disk /var/tmp: 15421824 KB disk space available, that's plenty
NOTE: skipping tape checks
NOTE: info dir /usr/adm/amanda/Daily/curinfo: does not exist
NOTE: it will be created on the next run
Server check took 0.004 seconds
Amanda Backup Client Hosts Check
--------------------------------
WARNING: linver: selfcheck request timed out. Host down? #I'll work on it
later - my comment
Client check: 1 host checked in 30.006 seconds, 1 problem found
(brought to you by Amanda 2.4.2p2)
and the contest of the corresponding debug file:
amcheck: debug 1 pid 21850 ruid 33 euid 0 start time Wed Apr 10 13:34:12 2002
amcheck: dgram_bind: socket bound to 0.0.0.0.766
amcheck: pid 21850 finish time Wed Apr 10 13:34:42 2002
I tried to put tapedev "/dev/sga" in amanda.conf but I've got:
amcheck-server: could not get changer info: cannot determine drive slot from
/dev/sga
and (with runtapes 1 and #tpchanger "chg-zd-mtx"):
ERROR: /dev/sga: rewinding tape: Permission denied
(expecting a new tape)
##############################################################
Thank you again
Greg