Operating System - HP-UX
1833062 Members
2695 Online
110049 Solutions
New Discussion

Re: Auto load tape into tape drive??

 
j773303
Super Advisor

Auto load tape into tape drive??

Does anyone knows how to auto-load the tape
into tape drive? Which command can do it?
Hero
4 REPLIES 4
Stefan Farrelly
Honored Contributor

Re: Auto load tape into tape drive??

You can only auto-load on a tape library/autloader, heres a script to do it. Note its the mc command which does it;

#
# Check DLT7000 Autoloader
#
PICKER=`mc -p /dev/picker -r DS|grep DT|awk '{print $2}'`

if [ $PICKER = "FULL" ]
then echo "Tape loaded"
else echo "No tape, Attempting to load tape from slot 1 PLEASE CHECK"
mc -p /dev/picker -s S1 -d D1
fi
Im from Palmerston North, New Zealand, but somehow ended up in London...
Ravi_8
Honored Contributor

Re: Auto load tape into tape drive??

Hi,

Normal tape drive don't provide the option of auto load. We uses LTO(Linear tape open) with TSM(tivoli storage manager) which has the auto loading option
never give up
Systeemingenieurs Infoc
Valued Contributor

Re: Auto load tape into tape drive??

I once wrote some c-code with a lot of ioctl's in that could load a slot into a drive and vice versa.

If you're interested i can share it.

HeCou
A Life ? Cool ! Where can I download one of those from ?

Re: Auto load tape into tape drive??

Hi, first you have to install Omniback to get /opt/omni/lbin/uma executable.
Then create a text file (e.g text_file) to move the tape from slot to drive
eg. To move tape from Slot 1 To drive 1,
So the text file (text_file)should be as below :
move S1 D1

then issue the following command :
#/opt/omni/lbin/uma -ioctl /dev/rac/c#t#d0
Hopes will help.