Veritas-bu

[Veritas-bu] move media from tape library to tape drive vice versa

2004-07-15 12:47:41
Subject: [Veritas-bu] move media from tape library to tape drive vice versa
From: jason.helfman AT ticketmaster DOT com (Jason Helfman)
Date: Thu, 15 Jul 2004 09:47:41 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

i was using robtest for somewhile, but was told it isn't the best method
as it hangs up any operation that your library would be doing during
backups.

it was suggested to use "echo" for the commands to the library

for example:

#!/bin/bash
case "$1" in

~  mode)
echo mode |/usr/openv/volmgr/bin/tl8test -r /dev/sg/c1t6l0 -d1
lax1bkp2:nrst0a -
d2 lax1bkp2:nrst1a -d3 lax1bkp1:nrst9a -d4 lax1bkp1:nrst10a -d5
lax1bkp1:nrst0a
- -d6 lax1bkp1:nrst1a -d7 lax1bkp2:nrst2a -d8 /dev/rmt/1cbn
~   ;;
~  drive)
echo s d |/usr/openv/volmgr/bin/tl8test -r /dev/sg/c1t6l0 -d1
lax1bkp2:nrst0a -d
2 lax1bkp2:nrst1a -d3 lax1bkp1:nrst9a -d4 lax1bkp1:nrst10a -d5
lax1bkp1:nrst0a -
d6 lax1bkp1:nrst1a -d7 lax1bkp2:nrst2a -d8 /dev/rmt/1cbn
~   ;;
~  ie)
echo s p |/usr/openv/volmgr/bin/tl8test -r /dev/sg/c1t6l0 -d1
lax1bkp2:nrst0a -d
2 lax1bkp2:nrst1a -d3 lax1bkp1:nrst9a -d4 lax1bkp1:nrst10a -d5
lax1bkp1:nrst0a -
d6 lax1bkp1:nrst1a -d7 lax1bkp2:nrst2a -d8 /dev/rmt/1cbn
~   ;;
~  slot)
echo s s |/usr/openv/volmgr/bin/tl8test -r /dev/sg/c1t6l0 -d1
lax1bkp2:nrst0a -d
2 lax1bkp2:nrst1a -d3 lax1bkp1:nrst9a -d4 lax1bkp1:nrst10a -d5
lax1bkp1:nrst0a -
d6 lax1bkp1:nrst1a -d7 lax1bkp2:nrst2a -d8 /dev/rmt/1cbn
~   ;;
*)

echo $"Usage: $0 {mode|drive|ie|slot}"
esac


using robtest will tell you the command to use though for your echo
replacement.

Feroz F. Basir wrote:
| Hi,
|
| Thank you all for replying. This is what I need.
|
| regards,
| Feroz
|
| --- Dan Otto <Dan.Otto AT veritas DOT com> wrote: > Use
| robtest. You can use that command to move tapes
|
|>between slots and
|>drives within the robot.
|>
|>-----Original Message-----
|>From: veritas-bu-admin AT mailman.eng.auburn DOT edu
|>[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On
|>Behalf Of Feroz F.
|>Basir
|>Sent: Thursday, July 15, 2004 10:26 AM
|>To: veritas-bu AT mailman.eng.auburn DOT edu
|>Subject: [Veritas-bu] move media from tape library
|>to tape drive vice
|>versa
|>
|>Hi,
|>
|>Is there a way to move media from tape library to
|>tape
|>drive from command line (and vice versa)? Usually I
|>have to go to tape unit and use the front panel to
|>move in and out the media. My problem happen when
|>the
|>media stucked, somebody has to go to tape unit and
|>use
|>front panel.
|>
|>L25
|>1 LTO drive
|>solaris 8 sparc.
|>
|>Thank you in advance.
|>
|>regards,
|>feroz
|>
|>
|>
|>      
|>      
|>              
|>
|
| ___________________________________________________________ALL-NEW
|
|>Yahoo! Messenger - sooooo many all-new ways to
|>express yourself
|>http://uk.messenger.yahoo.com
|>_______________________________________________
|>Veritas-bu maillist  -
|>Veritas-bu AT mailman.eng.auburn DOT edu
|>
|
| http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|>
|
|
|
|       
|       
|               
| ___________________________________________________________ALL-NEW
Yahoo! Messenger - sooooo many all-new ways to express yourself
http://uk.messenger.yahoo.com
| _______________________________________________
| Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
| http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA9rUtE8NXcvhlySYRAkgsAJ94veek9sNJOIvgtRu09FbxrQMthwCgqmnL
2JK6FHIrGUFs+lIzk63KPI8=
=FiFb
-----END PGP SIGNATURE-----