Veritas-bu

[Veritas-bu] Importing/Exporting tapes: vmchange and vmupdate

2001-02-16 13:04:01
Subject: [Veritas-bu] Importing/Exporting tapes: vmchange and vmupdate
From: anthony.guzzi AT storability DOT com anthony.guzzi AT storability DOT com
Date: Fri, 16 Feb 2001 13:04:01 -0500
Thanks to Ryan Anderson's 'tpeject' script and other posting here, I've
learned the following:

TO EJECT A TAPE:    vmchange -res -e -m [mediaID]  -mt [mediaType]

TO IMPORT TAPES FROM THE CAP:
                vmupdate -empty_ie -rn [rob#] -rt [robType] -rh [robHost]
-vh [volHost]

("-empty_ie"  ---> empty import/export)

For example, assume robot 3 hangs off host MHOST2, is a TLD-type robot, and
the media/volume database is on BHOST1.

To import all tapes in robot 3's CAP:
        vmupdate -empty_ie -rn 3 -rt tld -rh MHOST2 -vh BHOST1

To export/eject DLT tape BK0012:
        vmchange -res -e -m BK0012 -mt dlt


One note on 'vmchange' and the '-e' option, I've learned that it will only
eject one tape at a time and prompts for an acknowledgement (ie. a RETURN)
after ejecting a tape.  If you want to script things, you'll need to take
this into account.



-- Tony Guzzi




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