Veritas-bu

[Veritas-bu] Moving tapes within a tape library

2000-12-21 12:06:35
Subject: [Veritas-bu] Moving tapes within a tape library
From: David A. Chapa david AT datastaff DOT com
Date: Thu, 21 Dec 2000 09:06:35 -0800 (PST)
bob:

You can use tldtest to see what slots are available, 
given that there aren't any tapes mounted in the drives.

I'd probably do this:

vmoprcmd -d ds | grep -i yes #see if there are tapes
                             #mounted in drives

if [ $? = 1 ]; then          #1=no tapes mounted
echo "s s" | tldtest -r /dev/sg/c0t0l0 | grep "= no" \
 | awk '{print $2}' >>/tmp/workfile.o
fi

That gives you the empty slot numbers

The way you can move these around would be.

echo "m s1 s$X" | tldtest -r /dev/sg/c0t0l0

if you have used tldtest before, you know what these 
commands are, if not I encourage you to run it and see 
what the commands are all about.

hope this helps
david

Quoting Bob Bolt <bob.bolt AT ualberta DOT ca>:

> I have a small DLT tape library that has an 8-
slot "load pack" and a single
> slot loading door. To do my off-site duplications, I 
need to move some of
> the tapes out of the library to make room for the 
duplication tapes. Now
> what I am doing is using the hardware contol pad on 
the library to shuffle
> the tapes around so that the tapes I want to eject 
(incrementals or
> available) are in the load pack. The I remove the 
load pack, swap these
> tapes with the duplication pool tapes and then 
reload/update in the
> library.
>
> As you might expect this is a tedious process, and 
being the lazy guy that
> I
> am, I wanted to write a script to perform this. But I 
can't find the
> commands I need:
>
> 1. A command that queries the library to determine 
where the empty slots
> are
> (to be used as "shuffling locations")
>
> 2. A command that physically moves a tape from one 
slot to another and then
> logically updates the volume database.
>
> I looked at the vmchange -res command, which lets you 
specify a robot slot
> number, but can't see how I might coerce it into 
moving with the library.
>
> Any ideas?
>
> Bob
>
> _______________________________________________
> Veritas-bu maillist  -  Veritas-
bu AT mailman.eng.auburn DOT edu
> 
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-
bu
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David A. Chapa
Consulting Manager
DataStaff, Inc.
847 413 1144



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