The only problem with robtest/tldtest is that it requires that you run it
on the actual media server. The command below, while rather long, will
work from the master.
$master = name of master
$media_id = Six-digit label of tape
$density = media type (e.g. dlt)
$volume_group = a logical name for where you're sending the tape
vmchange -vh $master -res -m $media_id -mt $density -rt none -rc1 0 -rc2 0
[ -v $volume_group ] -e -sec 5
What this command essentially says is "change the 'residency' (-res) of
$media_id, which is a $density tape to not be in a jukebox anymore (-rt
none -rc1 0 -rc2 0), put it in the $volume_group group, and move it to the
ejection slot (-e) and wait five seconds for the ejection to finish (-sec 5)."
At 08:22 AM 10/26/00 +0200, Laurent KIPPEURT wrote:
> Hi,
>
> If you can perform this task with robtest
> (/usr/openv/volmgr/bin/robtest), you can
> perform the task with a command line.
>
> In our case :
>
> in robtest, to move from slot 17 to mailbox
> m s17 i
>
> with command line (and tld library)
> echo "m s17 i" | /usr/openv/volmgr/bin/tldtest -r
>/dev/sg/xxxxx
>
> (Search good binary line (xxxtest -r yyy) from robtest.)
>
>
>
>
>Message: 2
>Date: Tue, 24 Oct 2000 12:07:48 -0700
>From: Nader Atoofi <nader_atoofi AT ismbc DOT com>
>Organization: ISM-BC Co.
>To: veritas-bu AT mailman.eng.auburn DOT edu
>CC: nader_atoofi AT ismbc DOT com
>Subject: [Veritas-bu] Moving volumes on the command line
>
>Hi you all,
>
>How can I move a set of tape from a robotics driver to a non-robotic
>drive (take it offsite) on the command line? I mean, is there any
>command line equivalent rather than GUI?
>
>Thanks,
>--Nader
>
>_______________________________________________
>Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
>http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
---
W. Curtis Preston, Principal Consultant at Collective Technologies
Email: curtis AT colltech DOT com (Best way to contact me)
Work : 408 452 5555 (Leave a message.)
Pager: 800 946 4646, pin#1436065 (If urgent.)
Tap into the Collective Intellect (TM): http://www.colltech.com
Backup & Restore resources: http://www.backupcentral.com
|