Can anyone tell me: 

How to read the tape to see if any data ever made it on - besides the label.

If I can find what should be in the mail messages or the printout that I thought shoul 
be generated automatically on completion. I get no printou and no mail message.

I am not sure if this is a problem with my tape or a problem with
something else. The first attempts didn't work and I did try after I
started writing most of the stuff below with a much longer etimeout, in
case I was timing out. As far as I can tell it now finishes but it
does not print the results and it sends an empty email message when it
finishes. I couldn't read the tape when it finished, but that may be
something to do with the blocking factor.

I configured my set up to use an Exabyte 8500 tape drive and gnutar. I
think have a size estimating or timing problem. The lights flash on
and off so it seems to be writing to the tape. Amanda is not dying
gracefully enough. All the processes stop but I get an empty mail
message. All I have to go on is the contents of /tmp/amanda.
 
I suspect that by conventional server standards a 25MHz Mac Quadra
660av running NetBSD is slower than most server machines. I included
some of the output from /tmp/amanda the amandad debug and the sendsize
debug. I may be having some trouble with etimeout. I set the etime up
considerably because I had set it down too much initially while trying
to fix networking problems and because of the slow machine. My last
setting was at 800 seconds wich should be way longer than needed.

I verified the tape drive worked by using amlabel to label a
tape. And, after a run of amanda was not successful, creating a tape
archive directly to the the tape with "tar --create --file /dev/nst0"

I would look through the runtar.DATESTAMP.debug file and see something like:

running: /usr/bin/tar: /usr/bin/tar --create --file /dev/null
--directory / --one-file-system --listed-incremental
/usr/local/var/amanda/gnutar-lists/roberta__0.new --sparse
--ignore-failed-read --totals --exclude-from
/usr/local/etc/amanda/csd/exclude.gtar .


Going through I tried the block device. (I have no idea why one or the other - 
changing didn't help, so I changed back.

bash-2.04# ls -l /dev/n*st0
crw-rw----  1 root  operator  14, 1 Jun 24 12:18 /dev/nrst0
brw-rw----  1 root  operator   5, 1 Jun 23 23:58 /dev/nst0

I tried to see if the tape was actually writing to /dev/null instead
of the tape device, but that seems to be irrelevant. Amanda does use
the TAPEDEVICE specified the "--file /dev/null" is for some other
reason. 

I made the amount of data I was dumping much smaller. For some reason
this time I could see that the data was being written to the tape. (It
has a yellow light that blinks when data is being written.) 

For some reaons the mail message that was sent at the end of the dump
was empty. 

To see if it had actually written anything to the tape this time I
tried to manually reposition it with the mt command and to manually
run the tar command to see if there was anything ont it. I was not
able to. Though I suspect it might have to do with my not knowing the
blocking factors.

various from /tmp/amanda

bash-2.04# more sendsize.20010624121142.debug 
sendsize: debug 1 pid 15431 ruid 2 euid 2 start time Sun Jun 24 12:11:42 2001
/usr/local/libexec/sendsize: version 2.4.2p2
calculating for amname '/', dirname '/'
sendsize: getting size via gnutar for / level 0
sendsize: spawning /usr/local/libexec/runtar in pipeline
sendsize: argument list: /usr/bin/tar --create --file /dev/null --directory / --
one-file-system --listed-incremental /usr/local/var/amanda/gnutar-lists/roberta_
_0.new --sparse --ignore-failed-read --totals --exclude-from /usr/local/etc/aman
da/csd/exclude.gtar .
Total bytes written: 204554240
.....
sendsize: pid 15431 finish time Sun Jun 24 12:20:41 2001


bash-2.04# more amandad.20010624121140.debug 
amandad: debug 1 pid 15428 ruid 2 euid 2 start time Sun Jun 24 12:11:40 2001
amandad: version 2.4.2p2
amandad: build: VERSION="Amanda-2.4.2p2"
amandad:        BUILT_DATE="Thu Jun 21 08:32:38 EDT 2001"
amandad:        BUILT_MACH="NetBSD roberta 1.5 NetBSD 1.5 (GENERICSBC) #0: Sun N
ov 19 14:25:41 PST 2000 root2@c610:/usr/cvs/src/sys/arch/mac68k/compile/GENERICS
BC mac68k"
amandad:        CC="gcc"
amandad: paths: bindir="/usr/local/bin" sbindir="/usr/local/sbin"
amandad:        libexecdir="/usr/local/libexec" mandir="/usr/local/man"
amandad:        AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
amandad:        CONFIG_DIR="/usr/local/etc/amanda" DEV_PREFIX="/dev/"
amandad:        RDEV_PREFIX="/dev/r" DUMP="/sbin/dump"
amandad:        RESTORE="/sbin/restore" GNUTAR="/usr/bin/tar"
amandad:        COMPRESS_PATH="/usr/bin/gzip"
amandad:        UNCOMPRESS_PATH="/usr/bin/gzip" MAILER="/usr/bin/Mail"
amandad:        listed_incr_dir="/usr/local/var/amanda/gnutar-lists"
amandad: defs:  DEFAULT_SERVER="roberta" DEFAULT_CONFIG="DailySet1"
amandad:        DEFAULT_TAPE_SERVER="roberta"
amandad:        DEFAULT_TAPE_DEVICE="/dev/nrst0" HAVE_MMAP HAVE_SYSVSHM
amandad:        LOCKING=POSIX_FCNTL DEBUG_CODE AMANDA_DEBUG_DAYS=4
amandad:        BSD_SECURITY USE_AMANDAHOSTS CLIENT_LOGIN="operator"
amandad:        FORCE_USERID HAVE_GZIP COMPRESS_SUFFIX=".gz"
amandad:        COMPRESS_FAST_OPT="--fast" COMPRESS_BEST_OPT="--best"
amandad:        UNCOMPRESS_OPT="-dc"
got packet:
--------
Amanda 2.4 REQ HANDLE 000-00025280 SEQ 993399099
SECURITY USER operator
SERVICE sendsize
OPTIONS maxdumps=1;hostname=roberta;
GNUTAR / 0 1970:1:1:0:0:0 0 exclude-list=/usr/local/etc/amanda/csd/exclude.gtar
--------

sending ack:
----
Amanda 2.4 ACK HANDLE 000-00025280 SEQ 993399099
----

bsd security: remote host roberta.ssimr.com user operator local user operator
amandahosts security check passed
amandad: running service "/usr/local/libexec/sendsize"
amandad: got packet:
----
Amanda 2.4 REQ HANDLE 000-00025280 SEQ 993399099
SECURITY USER operator
SERVICE sendsize
OPTIONS maxdumps=1;hostname=roberta;
GNUTAR / 0 1970:1:1:0:0:0 0 exclude-list=/usr/local/etc/amanda/csd/exclude.gtar
----

amandad: received dup P_REQ packet, ACKing it
sending ack:
----
Amanda 2.4 ACK HANDLE 000-00025280 SEQ 993399099
----

amandad: got packet:
----
Amanda 2.4 REQ HANDLE 000-00025280 SEQ 993399099
SECURITY USER operator
SERVICE sendsize
OPTIONS maxdumps=1;hostname=roberta;
GNUTAR / 0 1970:1:1:0:0:0 0 exclude-list=/usr/local/etc/amanda/csd/exclude.gtar
----

amandad: received dup P_REQ packet, ACKing it
sending ack:
----
Amanda 2.4 ACK HANDLE 000-00025280 SEQ 993399099
----

amandad: sending REP packet:
----
Amanda 2.4 REP HANDLE 000-00025280 SEQ 993399099
OPTIONS maxdumps=1;
/ 0 SIZE 199760
----

amandad: dgram_recv: timeout after 10 seconds
amandad: waiting for ack: timeout, retrying
amandad: dgram_recv: timeout after 10 seconds
amandad: waiting for ack: timeout, retrying
amandad: dgram_recv: timeout after 10 seconds
amandad: waiting for ack: timeout, retrying
amandad: dgram_recv: timeout after 10 seconds
amandad: waiting for ack: timeout, retrying
amandad: dgram_recv: timeout after 10 seconds
amandad: waiting for ack: timeout, giving up!
amandad: pid 15428 finish time Sun Jun 24 12:21:31 2001

=========================================================== 
Though to see that the problem still exists, or another problem still
exists with the etime parameter upped to 800 seconds. Her is amandad
debug and sendsize debug after upping them.
===========================================================

bsd security: remote host roberta.ssimr.com user operator local user operator
amandahosts security check passed
amandad: running service "/usr/local/libexec/sendbackup"
amandad: sending REP packet:
----
Amanda 2.4 REP HANDLE 000-00028080 SEQ 993402806
CONNECT DATA 65005 MESG 65004 INDEX 65003
OPTIONS ;bsd-auth;index;
----

amandad: got packet:
----
Amanda 2.4 ACK HANDLE 000-00028080 SEQ 993402806
----

amandad: pid 15658 finish time Sun Jun 24 13:22:31 2001

=====
and just in case its meaningful sendback seems to finish as well.

bash-2.04# cat sendbackup.20010624132231.debug 
sendbackup: debug 1 pid 15659 ruid 2 euid 2 start time Sun Jun 24 13:22:31 2001
/usr/local/libexec/sendbackup: version 2.4.2p2
sendbackup: got input request: GNUTAR / 0 1970:1:1:0:0:0 OPTIONS 
|;bsd-auth;index;exclude-list=/usr/local/etc/amanda/csd/exclude.gtar;
  parsed request as: program `GNUTAR'
                     disk `/'
                     lev 0
                     since 1970:1:1:0:0:0
                     opt 
`|;bsd-auth;index;exclude-list=/usr/local/etc/amanda/csd/exclude.gtar;'
sendbackup: try_socksize: send buffer size is 65536
sendbackup: stream_server: waiting for connection: 0.0.0.0.65005
sendbackup: stream_server: waiting for connection: 0.0.0.0.65004
sendbackup: stream_server: waiting for connection: 0.0.0.0.65003
  waiting for connect on 65005, then 65004, then 65003
sendbackup: stream_accept: connection from 192.168.1.3.65002
sendbackup: stream_accept: connection from 192.168.1.3.65001
sendbackup: stream_accept: connection from 192.168.1.3.65000
  got all connections
sendbackup-gnutar: doing level 0 dump as listed-incremental to 
/usr/local/var/amanda/gnutar-lists/roberta__0.new
sendbackup-gnutar: doing level 0 dump from date: 1970-01-01  0:00:00 GMT
sendbackup: spawning /usr/local/libexec/runtar in pipeline
sendbackup: argument list: gtar --create --file - --directory / --one-file-system 
--listed-incremental /usr/local/var/amanda/gnutar-lists/roberta__0.new --sparse 
--ignore-failed-read --totals --exclude-from /usr/local/etc/amanda/csd/exclude.gtar .
sendbackup-gnutar: /usr/local/libexec/runtar: pid 15663
sendbackup: started index creator: "/usr/bin/tar -tf - 2>/dev/null | sed -e 's/^\.//'"
sendbackup: index created successfully
sendbackup: pid 15659 finish time Sun Jun 24 13:52:09 2001

-- 
Josh Kuperman                       
[EMAIL PROTECTED]

Reply via email to