Operating System - HP-UX
1833772 Members
2070 Online
110063 Solutions
New Discussion

mc command and C7147C8 Ultrium LTO Autoldr 9/1.

 
Nelson Dantas_1
New Member

mc command and C7147C8 Ultrium LTO Autoldr 9/1.

Hi all,
For example, i execute the following command to move a tape from slot 2 to drive 1
mc -p /dev/rac/c3t0d0 -s S2 -d D1 ...... function perfectly!
now, the following output shows the new arrangement of the tapes,
mc -p /dev/rac/c3t0d0 -r DS

DT_slot_1 empty
ST_slot_1 empty
ST_slot_2 full

It should be in the drive, but the inventory shows that the tape is still in the slot 2.
The inventory data is correct, the problem is that is that when i run the inventory
command the robot brings the tape back to the slot 2.
What could be causing the problem?
5 REPLIES 5
Wouter Jagers
Honored Contributor

Re: mc command and C7147C8 Ultrium LTO Autoldr 9/1.

I'm not sure (not near my boxes right now), but the first thing I would try is to leave some (unneeded) spaces away:

mc -p /dev/rac/c3t0d0 -sS2 -dD1
mc -p /dev/rac/c3t0d0 -rSD

Might as well change nothing, but worth the shot..

regards
Wouter
an engineer's aim in a discussion is not to persuade, but to clarify.
Michael Tully
Honored Contributor

Re: mc command and C7147C8 Ultrium LTO Autoldr 9/1.

Using the spaces or not are the same. Was there some message displayed after the command was executed?
Anyone for a Mutiny ?
Nelson Dantas_1
New Member

Re: mc command and C7147C8 Ultrium LTO Autoldr 9/1.

Michael Tully,
The command returns no error messages. It does the inventory correctly, the only problem is that when the command is issued, and there is a tape in the drive, instead of reporting that the drive is full, the library move the tape from the drive to the slot, and then gives the inventory with the drive as been free and slots full. Simplifying, the question is why the library do the move before giving the inventory and how to correct this?
Thanks a lot.
Helen French
Honored Contributor

Re: mc command and C7147C8 Ultrium LTO Autoldr 9/1.

Just a thought:

Are you using the right device file? Is /dev/rac/c3t0d0 is the device file for the media changer? Check with this:

# ioscan -fn

Is the device file has been created by you or the system itself? Which driver is being used by that device - spt? stape, tape2?
Life is a promise, fulfill it!
Angus Crome
Honored Contributor

Re: mc command and C7147C8 Ultrium LTO Autoldr 9/1.

I don't know anything about that Library Unit, but it sounds like it has an auto-unload feature, and it is turned on. Since you are performing the load command at the hardware level (not through software "OmniBack, Netbackup, etc"), it probably looks at the device and thinks it is ready for unload. If it has a front panel display, you should check through the setting for this. If it has a web interface, it would probably be in there.
There are 10 types of people in the world, those who understand binary and those who don't - Author Unknown