Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to eject or import a media through the command line 2

Status
Not open for further replies.

fr10735

IS-IT--Management
Aug 14, 2001
2
FR
Every day, I would like to eject from my library (StorageTek 9710) the medias used during the night. Do you know how to perform this in "batch" mode (i.e not from the Media Manager interface)???

The same for importing a media...

Thanks
 
Since xvmadm does not have a command option like xbpadm does, such as # xbpadm -commands &, try using the robtest utility. /usr/openv/volmgr/bin/robtest. Then, select your library. Type a "?" to get the list of options to use. I have to do this when a tape is stuck and xvmadm does not recognize the tape.

You should be at a blank prompt. Type "mode" to do a mode sense. Then do your eject or move, such as "m d1 s1". (Move media in Drive 1 to Slot 1. Not sure if this is what you are looking for. Just trying to help. You can probably experiment with this and get something to work.
 
Another way you can eject (from Library slot to CAP slot) a tape is as follows:

# echo "m s$LIB_SLOT i$CAP_SLOT" | /nbu34/openv/volmgr/bin/tldtest -r $ROBOTDEV

where
$LIB_SLOT is the variable containing the Library slot number
$CAP_SLOT is the variable containing the CAP slot number
and $ROBOTDEV is the variable containing the robotic arm device info, such as /dev/sg/c2t0l4.

To inject (from CAP slot to Library slot) a tape, do the following:

# echo "m i$CAP_SLOT s$LIB_SLOT" | /nbu34/openv/volmgr/bin/tldtest -r $ROBOTDEV


NOTE: The above examples is for a tld robotic device.

Regards,
Kevin Setia

 
Can use the following - it doesn't seem to be documented by Veritas, but I use it in a dos batch file to eject tapes

vmchange -h <master_server> -res -m <media_id> -rh <robot_host> -mt <media_type> -e

Jon
 
friendly word of warning for using robtest - only use it when no backups or restores are running as it completely owns the robot when in use - forget to log out and your backups will fail for the night!
 
Does anybody else here suffer with tldtest being left running if you exit robtest untidily (e.g ctrl c), and then be unable to kill it with anything ?
I occasionally get to a state with robtest on a STK700 that it hangs and I have to bail out. I then have to reboot to get rid of tldtest and to get library control back !
NB datacentre 3.4.1 on W2K SP2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top