>I tried what you suggested and this is what I got:
>bash-2.02$ mt -f /dev/rst0 rewind
>bash-2.02$ dd if=/dev/rst0 bs=32k
>0+0 records in
>0+0 records out
OK, that says the tape is empty. It's as though someone did:
mt -f /dev/nrst0 rewind
mt -f /dev/nrst0 eof
BTW, you should use /dev/nrst0, not /dev/rst0, when testing. The latter
will throw in rewinds that you may not be expecting. According to your
first E-mail, you're using /dev/nrst0 in amanda.conf, so that's good.
>Any personal ideas ?
Not really. I guess I'd look at **everything** related to how you run
Amanda, i.e. cron jobs, operational procedures, etc, and make sure you
don't have some unexpected step in there. If it isn't obvious from that,
I'd stick something like this before and after every step (maybe put it
in a script):
if mt -f /dev/nrst0 rewind 2> /dev/null
then
if rm -f /tmp/amanda-label
then
dd if=/dev/nrst0 of=/tmp/amanda-label bs=32k count=1
if [ ! -s /tmp/amanda-label ]
then
echo empty tape | mailx -s "Tape is empty -- XXX" some-user
fi
fi
fi
Change "XXX" for each call (e.g. "before amcheck", "after amdump")
and, of course, set "some-user" to wherever you want the E-mail to go.
Or don't send E-mail but write the status to a log file. Etc.
>Pat.
John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
P.S. Please turn off "send as HTML" in your mailer. It's just a waste
of bandwidth.