Amanda-Users

Re: mt rewind strangness

2002-08-27 12:43:14
Subject: Re: mt rewind strangness
From: Jon LaBadie <jon AT jgcomp DOT com>
To: Jon LaBadie <amanda-users AT amanda DOT org>
Date: Tue, 27 Aug 2002 12:28:28 -0400
On Tue, Aug 27, 2002 at 10:10:07AM -0500, Frank Smith wrote:
> --On Tuesday, August 27, 2002 10:28:02 -0400 Jon LaBadie <jon AT jgcomp DOT 
> com> 
> wrote:
> 
> >Has anyone else noted this behavior?
> >    "mt rewind" returns (completes) before tape is rewound
> 
> Yes, it seems to be fairly a common behavior of tape drives.
> Back in the days when I had to write shell scripts to do
> backups, I always threw in a sleep call after any tape command.
> Not all commands needed it, but wasting a few seconds on a
> several hour job was much better than the random error that
> would cause the entire job to fail.
> 

I was thinking along the same lines except I was not sure of an
appropriate nap time.  My thought was to do an "mt status > /dev/null"
after the mt rewind.  Since that blocks it would come back immediately
or wait an appropriate time.

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

<Prev in Thread] Current Thread [Next in Thread>