On Fri, Sep 17, 2021 at 11:55:09AM -0400, Jon LaBadie wrote:
I'm seeing instances of wasted VTape with amanda switching
to a new tape for the last DLE even though there is room
left on the current tape.

Here is the relevant section from yesterday.

USAGE BY TAPE:
 Label                 Time         Size      %  DLEs Parts
 DS1-010               0:08       10884M   10.6    31    31
 DS1-011               0:51       74205M   72.5     1    15

If combined on one tape it would have only filled 83% of the
tape.  Earlier this month the numberw were worse, 9% and 66%.
Even if a second tape were needed, the last DLE should have
at least started on the first tape.


A new thought.  When the amanda taper has been writing to a
vtape and attempts to open the next part file, is there some
timeout that would look like the vtape is full/unavailable?

Four of my six vtape drives, including the one in use above,
are in an external USB enclosure.  These drives go to sleep
if inactive for a period.  When a drive is accessed, it takes
20 to 30 seconds for the 4 drives to spin up and be ready.

The DLE that was not taped on the first vtape took over an
hour to dump.  Certainly the USB box went to idle state
before it was ready to tape.

When I do things from the command line that awakens the idle
USB box, the command just blocks until the device is active
(as I say, 20-30sec) and then completes normally.

But perhaps the calls (perl or C) that amanda uses to open
the next part return with a code that says EOF or error
rather than "currently unavailable, try again".

Jon

--
Jon H. LaBadie                 j...@jgcomp.com
 11226 South Shore Rd.          (703) 787-0688 (H)
 Reston, VA  20190              (703) 935-6720 (C)

Reply via email to