Re: How to "amverify"
2006-05-03 22:32:19
On Thu, May 04, 2006 at 08:51:07AM +0700, Olivier Nicole enlightened us:
> How to tell amverify to stop if there is no tape in the tape drive?
>
> Every night I have a cron that does amdump then amverify.
>
> If I forgot to put a tape in the drive, the dumps go to the holding
> disk and amdump ends nicely.
>
> But amverify will continue running until I insert a tape next morning.
>
> And when I want to flush my holding disk, i find out that amverify is
> verifying the tape I just inserted and it messes up everything.
>
> So it would be nice that amverify could be told to abort if there is
> no tape in the drive.
>
> Is there a way to do so?
>
I would just script it:
mt -f /dev/tape status | grep ONLINE > /dev/null
if [ $? -eq 0 ]; then
amverify
fi
Flavor to taste.
Matt
--
Matt Hyclak
Department of Mathematics
Department of Social Work
Ohio University
(740) 593-1263
|
|
|