1834576 Members
3674 Online
110069 Solutions
New Discussion

Tape Library

 
SOLVED
Go to solution
Joseph Bague
Frequent Advisor

Tape Library

Hi to all Master

How can I change the location of DLT tape on Tape library through command line? Is there any text user interface program that can I use?

Many tnxs in advance :)
Joseph
Expect nothing but ready for everything
13 REPLIES 13
Robert-Jan Goossens
Honored Contributor

Re: Tape Library

Hi Joseph,

Could you be a bit more specific ( backup product or just tar/cpio)

Robert-Jan.
Massimo Bianchi
Honored Contributor

Re: Tape Library

Hi,
if you want to use built in utlities, there is the command

mc


refer to man mc.

example:

/dev/rac/c1t1d0 is the device file of the robot

mc -p /dev/rac/c1t1d0 -r DS

read status

mc -p /dev/rac/c1t1d0 -s S1 -d D1
move from slot 1 to drive 1

if you have omniback installed there is the free utlity uma.

uma -ioctl /dev/rac/c1t1d0

and then you have a prompt.
command avaiable:

stat : gives you the situaion
move source dest : move the cartdridge.

HTH,
Massimo
Michael Steele_2
Honored Contributor

Re: Tape Library

This is application driven. Veritas Netbackup for instance, or home grown script. Here's what to look for:

ioscan -fnkC tape
(* ATT Format *)
/dev/rmt/0m (* no compression - with rewind *)
/dev/rmt/0mn (* no comp. - no rewind *)
/dev/rmt/BESTcXtYdZ (* firmware compression *)
/dev/rmt/BESTcXtYdZn (* firm. - no rewind - *)

(* Berkely format *)
/dev/rmt/0mb (* no compression - with rewind *)
/dev/rmt/0mbn (* no comp. - no rewind *)
/dev/rmt/BESTcXtYdZb (* firmware compression *)
/dev/rmt/BESTcXtYdZnb (* firm. - no rewind - *)
Support Fatherhood - Stop Family Law
Rainer von Bongartz
Honored Contributor

Re: Tape Library


See: man mc

mc - media changer manipulation utility


Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Enrico P.
Honored Contributor
Solution

Re: Tape Library

Hi,
if you have Omniback or Data Protector installed, you can run the uma program from your cella manager:

uma -ioctl

See man uma (if you have Omniback installed)

Enrico.
Joseph Bague
Frequent Advisor

Re: Tape Library

Hi robert:

I am using omniback

Massimo, Enrico, Rainer:

How can I know my special robotic file ?

Attached is the output of ioscan.
Expect nothing but ready for everything
Bill Douglass
Esteemed Contributor

Re: Tape Library

Joseph, it looks like you are missing the SCSI-changer driver from your kernel. Below is the output from my hp-ux 11i system with a similar tape library attached:

autoch 0 0/3/0/0.0.0 schgr CLAIMED DEVICE HP C7200
/dev/rac/c5t0d0


You will need to run sam and add the schgr driver into your kernel, and reboot. After that, the rac device should be available; do an ioscan -fnk to check.
Joseph Bague
Frequent Advisor

Re: Tape Library

Hi Bill

Is there an impact to my omniback configuration if I add this schgr driver to the kernel? or I need to reconfigure my omniback setting?

Regards
Joseph
Expect nothing but ready for everything
Massimo Bianchi
Honored Contributor

Re: Tape Library

Hi,
addind the driver will require a recompile of the kerenl and therefore a reboot.

YOu can use SAM to add the driver.


After that, you will have to change OB config, to reflect the new HW.

Upto now, how did you managed to sue OB/DP without the media changer device ?

It may be the library was previously attacheds to another server, that had the driver in it.

HTH,
Massimo
Michael Steele_2
Honored Contributor

Re: Tape Library

I believe you'll need 'autoch', 'stape' and 'spt' added to your kernel, as others have noted.

Its important that you power down everything and power up in this order:

shutdown -h now
power off tape drive
power off tape library

power on tape drive
power on tape library to full initialization
only after the library is all the way up and can see the driver(s) then,
power on the server

When up:

ioscan -fnkC autoch

It will be normal for the device to be 'UNCLAIMED'.

At this time first try excercise the tape device with a backup, then use 'mc' or 'uma' tape to slot excercises.

To test tape device:

mt -t /dev/rmt/0m stat
Support Fatherhood - Stop Family Law
Enrico P.
Honored Contributor

Re: Tape Library

Hi,
you need add the robotic special file in the Omniback configuration after installed the schgr driver.
Open Omniback interface, go to device and media
window, click in a device->view->properties->control and inset the special file.

But was Omniback alredy configured?

Enrico.
Joseph Bague
Frequent Advisor

Re: Tape Library

Massimo, Enrico:

I am using OB almost a year an half now. I remembered that our ASE created a character file called
/dev/scsi_library 203 0x030000 Nov 28 2001 then she configure our OB. No major error encountered since then.

BTW our system is HPUX 11.00 and we are using HP Sure Store E Tape Library.

Regards,
Joseph
Expect nothing but ready for everything
Massimo Bianchi
Honored Contributor

Re: Tape Library

O.K., that was the old style, perfectly functioning.

you should use:

mc -p /dev/scsi_library -r DS


or

uma -ioctl /dev/scsi_library


HTH,
Massimo