ADSM-L

Re: lbtest help

1998-04-23 18:39:26
Subject: Re: lbtest help
From: Gary Bromley <Gary.Bromley AT ASPECT.COM DOT AU>
Date: Fri, 24 Apr 1998 08:39:26 +1000
Craig, this DEFINITELY does not happen with my config.
I enabled tracing to see if the server was issuing an umount, it was,
but the tape remained mounted afterwards.

This is the sequence of events :-
        Start ADSM ( no tapes in drives)
        Audit library -checkl=barcode (just incase)
        do a client backup of a small file to mount the tape(s)
        q mount (B0001 in drv_1)
        halt the server (tape still loaded)
        Start ADSM (with tracing)
        Reported 'Restoring state for library ....'
        halt the server and check the library with lbtest (still loaded)

No errors are logged in the activity log.
Here is the trace file output.
 <0>mmstxn.c(211): Acquiring MMS universe lock (sLock).
 <0>mmslib.c(345): Loading LIBRARY configuration.
 <0>mmslib.c(5845): Creating library descriptor; name=LIB_Q215_1,
type=1.
 <0>mmslib.c(6130): Creating auto descriptor; dev=/dev/lb0.
 <0>mmslib.c(7575): Inserting library LIB_Q215_1 into list.
 <0>mmsdrive.c(647): Loading DRIVE configuration.
 <0>mmsdrive.c(2878): Creating drive descriptor; name=DRV_DLT_1,
lib=LIB_Q215_1, dev=/dev/mt0, mod=31.
 <0>mmslib.c(2930): Finding descriptor for library LIB_Q215_1 (ALL).
 <0>mmsdrive.c(2878): Creating drive descriptor; name=DRV_DLT_2,
lib=LIB_Q215_1, dev=/dev/mt1, mod=31.
 <0>mmslib.c(2930): Finding descriptor for library LIB_Q215_1 (ALL).
 <0>mms.c(1107): Initializing library LIB_Q215_1.
 <15>mmsscsi.c(4755): Initializing library LIB_Q215_1.
 <15>mmsscsi.c(3280): Creating configuration for library LIB_Q215_1.
 <15>mmslib.c(3259): Acquiring autochanger; lib=LIB_Q215_1, wait=0.
 <15>mmsscsi.c(9214): Opening /dev/lb0.
 <15>mmsscsi.c(4007): Getting device info using autochanger /dev/lb0.
 <15>mmsscsi.c(4020): SCSI device /dev/lb0: product=<Q2              >,
level=<1.50>.
 <15>mmsscsi.c(4111): Adding definition for <Q2              >.
         support module = 2
         robot eject    = 0
         inv unreliable = 0
         skip audits    = 0
         pos to elem    = 0
         slot to slot   = 1
         magazine             = 0
         robot initiate = 0
         robot invert   = 0
 <15>mmsscsi.c(4183): Getting element count for library LIB_Q215_1 using
autochanger /dev/lb0.
 <15>mmsscsi.c(4198): Library LIB_Q215_1 element counts: drv=2, slot=15,
chgr=1, i/e=0.
 <15>mmsscsi.c(4273): Getting element info for library LIB_Q215_1 using
autochanger /dev/lb0.
 <15>mmsscsi.c(4415): CopySlotInfo called with count = 15
 <15>mmslib.c(3377): Releasing autochanger; lib=LIB_Q215_1,
dev=/dev/lb0.
 <15>mmsscsi.c(9247): Closing /dev/lb0.
 <15>mmstxn.c(211): Acquiring MMS universe lock (sLock).
 <15>mmsscsi.c(5993): Finding active slots; lib=LIB_Q215_1.
 <15>mmsscsi.c(5871): Building active volume list; lib=LIB_Q215_1.
 <15>mmsscsi.c(5449): Restoring state for library LIB_Q215_1; active
volumes:
 <15>mmsscsi.c(5453):    name=B0001, home=0, drive=116.
 <15>mmsscsi.c(3461): Validating slot information for library
LIB_Q215_1.
 <15>mmsscsi.c(3546): Refreshing slot information for library
LIB_Q215_1.
 <15>mmslib.c(3259): Acquiring autochanger; lib=LIB_Q215_1, wait=1.
 <15>mmsscsi.c(9214): Opening /dev/lb0.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 0 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 1, Barcode='B0007'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 1 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 2, Barcode='B0005'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 2 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 3, Barcode='B0004'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 3 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 4, Barcode='B0003'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 4 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 5, Barcode='B0006'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 5 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 6, Barcode='B0002'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 6 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 7, Barcode='B0008'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 7 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 8, Barcode='B0009'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 8 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 9, Barcode='B0010'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 9 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 10, Barcode='B0011'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 10 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 11, Barcode='B0012'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 11 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 12, Barcode='B0013'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 12 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 13, Barcode='B0014'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 13 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 14, Barcode='B0015'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 14 useCode is now 4.
 <15>mmslib.c(3377): Releasing autochanger; lib=LIB_Q215_1,
dev=/dev/lb0.
 <15>mmsscsi.c(9247): Closing /dev/lb0.
 <15>mmsscsi.c(3763): Testing for unknown slots in library LIB_Q215_1.
 <15>mmsscsi.c(6597): Testing for full slot 0 in library LIB_Q215_1.
 <15>mmsscsi.c(6642): Test library LIB_Q215_1 slot 0 by moving.
 <15>mmslib.c(3259): Acquiring autochanger; lib=LIB_Q215_1, wait=1.
 <15>mmsscsi.c(9214): Opening /dev/lb0.
 <15>mmslib.c(3377): Releasing autochanger; lib=LIB_Q215_1,
dev=/dev/lb0.
 <15>mmsscsi.c(9247): Closing /dev/lb0.
 <15>mmsdrive.c(2593): Borrowing drive; lib=LIB_Q215_1, devType=998,
wait=0, specific=0, elem=0.
 <15>mmsdrive.c(4057): Acquiring drive list for library LIB_Q215_1.
 <15>mmslib.c(2930): Finding descriptor for library LIB_Q215_1 (ACTIVE
ONLY).
 <15>mmsdrive.c(2661): Found available drive; borrowing drive DRV_DLT_1
(/dev/mt0).
 <15>mmsdrive.c(4111): Releasing drive list for lib=LIB_Q215_1.
 <15>mmsdrive.c(2593): Borrowing drive; lib=LIB_Q215_1, devType=998,
wait=0, specific=0, elem=0.
 <15>mmsdrive.c(4057): Acquiring drive list for library LIB_Q215_1.
 <15>mmslib.c(2930): Finding descriptor for library LIB_Q215_1 (ACTIVE
ONLY).
 <15>mmsdrive.c(2661): Found available drive; borrowing drive DRV_DLT_2
(/dev/mt1).
 <15>mmsdrive.c(4111): Releasing drive list for lib=LIB_Q215_1.
 <15>mmsdrive.c(2593): Borrowing drive; lib=LIB_Q215_1, devType=998,
wait=0, specific=0, elem=0.
 <15>mmsdrive.c(4057): Acquiring drive list for library LIB_Q215_1.
 <15>mmslib.c(2930): Finding descriptor for library LIB_Q215_1 (ACTIVE
ONLY).
 <15>mmsdrive.c(4111): Releasing drive list for lib=LIB_Q215_1.
 <15>mmsdrive.c(2706): Unable to borrow drive in library LIB_Q215_1.
  <15>mmsscsi.c(6091): Allocating slot in SCSI library LIB_Q215_1.
 <15>mmsscsi.c(3461): Validating slot information for library
LIB_Q215_1.
 <15>mmsscsi.c(3546): Refreshing slot information for library
LIB_Q215_1.
 <15>mmslib.c(3259): Acquiring autochanger; lib=LIB_Q215_1, wait=1.
 <15>mmsscsi.c(9214): Opening /dev/lb0.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 0 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 1, Barcode='B0007'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 1 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 2, Barcode='B0005'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 2 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 3, Barcode='B0004'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 3 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 4, Barcode='B0003'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 4 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 5, Barcode='B0006'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 5 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 6, Barcode='B0002'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 6 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 7, Barcode='B0008'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 7 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 8, Barcode='B0009'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 8 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 9, Barcode='B0010'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 9 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 10, Barcode='B0011'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 10 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 11, Barcode='B0012'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 11 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 12, Barcode='B0013'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 12 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 13, Barcode='B0014'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 13 useCode is now 4.
 <15>mmsscsi.c(3650):   Slot 14, Barcode='B0015'.
 <15>mmsscsi.c(3707): For library LIB_Q215_1, slot 14 useCode is now 4.
 <15>mmslib.c(3377): Releasing autochanger; lib=LIB_Q215_1,
dev=/dev/lb0.
 <15>mmsscsi.c(9247): Closing /dev/lb0.
 <15>mmsscsi.c(3763): Testing for unknown slots in library LIB_Q215_1.
 <15>mmsdrive.c(2743): Returning drive; lib=LIB_Q215_1, drive=DRV_DLT_2
(/dev/mt1).
 <15>mmsdrive.c(2743): Returning drive; lib=LIB_Q215_1, drive=DRV_DLT_1
(/dev/mt0).
 <15>mms.c(884): Updating device support requirements; module=2.
 <15>mms.c(793): Checking compliance; mod=2.
 <15>mms.c(837): Checked compliance; mod=2, rc=0.
 <15>mmsscsi.c(7344): Ending INIT activity for SCSI library LIB_Q215_1.
 <15>mmslib.c(2930): Finding descriptor for library LIB_Q215_1 (ACTIVE
ONL

Please note that this library does not allow the robot to eject the
tapes.
The manual procedure would be :-
        tctl -f /dev/mt0 offline
        tctl -f /dev/mt1 offline
        lbtest -d /dev/lb0
                open
                return element count
                return library inventory all
                move drive to slot
                move drive to slot
                close

I am waiting for the latest level of microcode for the drive, any other
suggestions ?
Regards
Gary

----------------------------------------------------------------
Gary Bromley
Gary Bromley
Aspect Computing Pty Ltd
Tel : +61 (0)3 9230 2242
Fax : +61 (0)3 9818 1320
Email : Gary.Bromley AT Aspect DOT com
> ----------
> From:         Craig Bell[SMTP:rcbell AT US.IBM DOT COM]
> Reply To:     ADSM: Dist Stor Manager
> Sent:         Tuesday, 21 April 1998 2:27
> To:   ADSM-L AT VM.MARIST DOT EDU
> Subject:      lbtest help
>
> ADSM already dismounts all drives when the library is initialized
> during
> startup.  If this is not happening, check the activity log for any
> error
> messages related to unload/dismount/move  failures.  There is help on
> the way
> for this in the form of a ptf, but the real issue is drive/hardware
> unload
> problems and correcting these will clear things up.  There have been
> several
> recent appends about a DLT drive microcode level that addresses this.
> Even
> with the next ptf, if ADSM cannot unload the drive,  it will post a
> manual-intervention message and mark the drive offline.
>
> Craig Bell
>
>
> Dear ADSMers
>
> The technical bit first :-
>         ADSM Server 3.1.1.1
>         ADSM Client 3.1.20.3
>         AIX 4.3 (S/70)
>         Breece Hill Q215 with 2 DLT 7000 (microcode level 55 - 1837)
>         Atape Driver 4.1.3.0
>
> Has anyone got, or can tell me how to get, some documentation on using
> the lbtest program in batch mode, i.e. using lbtest.in.
>
> I am trying to work around the problem that if you halt the server
> with
> tapes mounted, then when the server starts again, it does not know
> about
> the tapes in the drive(s) and consequently when it tries to mount a
> tape
> it fails with I/O destination slot full (or something like that).
>
> I have seen somewhere on the List about an APAR that could help, but
> it
> is not out yet and I need to fix this ASAP.
>
> I have limited success with the following content of lbtest.in with
> the
> command ./lbtest -d /dev/lb0 -f lbtest.in
>         command open $D RW
>         command return_elem_count
>         command return_lib_inventory_all
>         command move_drive_slot
>         command close
>
> Without the 'command move_drive_slot' it works ok, but the
> move_drive_slot returns -2 incorrect number of arguments.
> I have tried various parameters like 0, invert = 0, (0) invert=0, etc.
> If I run it in interactive mode, it works ok and unloads the tapes
> back
> to their original slots.
>
> Your help would be appreciated.
>
> Regards
> Gary
>
> ----------------------------------------------------------------
> Gary Bromley
> Aspect Computing Pty Ltd
> Tel : +61 (0)3 9230 2242
> Fax : +61 (0)3 9818 1320
> Email : Gary.Bromley AT Aspect.com DOT au
>
>
>
>
>
>
>
<Prev in Thread] Current Thread [Next in Thread>