ADSM-L

Re: LTO Bulk Reader filled....

2002-08-19 09:20:49
Subject: Re: LTO Bulk Reader filled....
From: "Ford, Phillip" <phillip.ford AT SPCORP DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Mon, 19 Aug 2002 09:06:33 -0400
Thanks, I was thinking about doing something like that but had not gotten
around to it.  I will give it a try - thanks again.  P.S.  I still feel that
the command "move drm remove=untileefull" works wrong!!


--
Phillip




-----Original Message-----
From: PAC Brion Arnaud [mailto:Arnaud.Brion AT PANALPINA DOT COM]
Sent: Monday, August 19, 2002 1:50 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: LTO Bulk Reader filled....


Hi Phillip,

You're absolutely right in you assertion : you effectively have to give an
answer for each ejected tape, but a simple shell script could make your life
much easier, like this one, that queries TSM server to find out what reply
it has to issue, and then responds with correct value.

CMD="dsmadmc -id=xxxx -password=xxxxx"
$CMD "move drm * wherestate=mountable  tostate=vault remove=untileefull" if
[ $? -eq 0 ]; then
      RETRY=0
      sleep 30
      while true
      do
        $CMD q request > /tmp/checkout_ask
        grep ANR8322I /tmp/checkout_ask > /dev/null

        if [ $? -eq 0 ]; then
                RETRY=0
                grep ANR8322I /tmp/checkout_ask |awk '{print $2}' >
/tmp/checkou t_reply
                COMMAND=`sed s/://g  /tmp/checkout_reply`
                $CMD "reply $COMMAND"
                rm /tmp/checkout_*
                sleep 30
        else

                if (( $RETRY==0 )) ; then
                        RETRY=1
                        sleep 30
                else
                        rm /tmp/checkout_*
                        break
                fi
        fi
      done
Fi

Note the double loop with "sleep 30" statement : it gives TSM server (and
robotic device) some times to do it's checkout business, case it would be
busy doing other tapes mounts/dismounts. Voila, everything will be done
automatically now ! Hope it helped ....  Arnaud

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| Arnaud Brion, Panalpina Management Ltd., IT Group     |
| Viaduktstrasse 42, P.O. Box, 4002 Basel - Switzerland |
| Phone: +41 61 226 19 78 / Fax: +41 61 226 17 01       |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



-----Original Message-----
From: Ford, Phillip [mailto:phillip.ford AT SPCORP DOT COM]
Sent: Friday, 16 August, 2002 16:41
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: LTO Bulk Reader filled....


When I tried the "remove=untileefull" clause (vers 3.7.2), it then asked me
to respond to each tape with a reply.  If I have to respond to each tape, I
might as well do it the old way and remove them when I count to ten.  I want
it to take them out and not ask me and then stop when the bulk area is full.
Has this changed since v 3.7.2 to work correctly (or what I think is
correctly)?


--
Phillip Ford
Senior Software Specialist
Corporate Computer Center
Schering-Plough Corp.
(901) 320-4462
(901) 320-4856 FAX
phillip.ford AT spcorp DOT com




-----Original Message-----
From: PAC Brion Arnaud [mailto:Arnaud.Brion AT PANALPINA DOT COM]
Sent: Friday, August 16, 2002 8:55 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: LTO Bulk Reader filled....


Hi David,

You should get a rid of this problem by adding "remove=untileefull" in your
"move drm" statement ! Hope it helped ! Cheers.

Arnaud

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| Arnaud Brion, Panalpina Management Ltd., IT Group     |
| Viaduktstrasse 42, P.O. Box, 4002 Basel - Switzerland |
| Phone: +41 61 226 19 78 / Fax: +41 61 226 17 01       |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



-----Original Message-----
From: David Stabler [mailto:dstabler AT MORRISONHOMES DOT COM]
Sent: Friday, 16 August, 2002 14:59
To: ADSM-L AT VM.MARIST DOT EDU
Subject: LTO Bulk Reader filled....


I was using DRM to manage a copypool, and sent my "Vault" tapes to the bulk
reader.  I wasn't paying attention at the time, but I sent more than 10
tapes.  The extra tapes were dutifully marked at the Vault, and TSM lost
track of them, but they were still in the LTO!  A key, and a few minutes of
scanning, found them, but it wasn't what I expected....

Is there any way in TSM to monitor, easily, how many tapes are to be
ejected, compare that to what, if any, tapes are already in the bulk reader,
and send only what can fit?  Or, error out for trying to do too much?

I have written a rather nasty shell script that does a few selects, picks a
tape list, cuts off the top 10 tapes, and only sends those (one at a time,
rather than with any wildcards), but I'm wondering if I'm using a sledge
hammer on this finishing nail....

AIX 4.3.3, TSM 4.2.1.8

-drs-

***************************************************************
 This message and any attachments is solely for the intended recipient. If
you are not the intended recipient, disclosure, copying, use, or
distribution of the information included in this message is prohibited
-- please immediately and permanently delete this message.

***************************************************************
 This message and any attachments is solely for the intended recipient. If
you are not the intended recipient, disclosure, copying, use, or
distribution of the information included in this message is prohibited --
please immediately and permanently delete this message.

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