cancel
Showing results for 
Search instead for 
Did you mean: 

insf question?

 
SOLVED
Go to solution
Ronaldinho
Advisor

insf question?


I have a problem with my tape drive.
When I do an ioscan –fnC tape the device was showing up but there was no device files showing
ie.
/dev/rmt/0m
/dev/rmt/0mn
etc..


so I ran the command insf –evC tape which changed the output of ioscan but now the /dev/rmt/1m
/dev/rmt/1mn

etc..

how can I get the system to see /dev/rmt/0m as this is what I need for backup scripts that I use to write to tape?
10 REPLIES 10
Ronaldinho
Advisor

Re: insf question?

please note there was a formatting problem with my question avove.
the commands should be
ioscan -fnC tape
and

insf-evC tape
Steven E. Protter
Exalted Contributor
Solution

Re: insf question?

Shalom,

I recall tape drivers are built as follows:

insf -e

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ronaldinho
Advisor

Re: insf question?

thanks for the quick reply Steve.

when i rebuilt it with insf -evC tape it rebuilt the tape drivers but as /dev/rmt/1m files and not /dev/rmt/0m as i require.
do you know how to change this?


Ninad_1
Honored Contributor

Re: insf question?

Hi,

The device files created by insf are as the system sees the devices through the corresponding path, thus when you ran insf the device files for tape drive as seen by the system were created - depending on the path - even though I believe that the 1st tape device usually is named as /dev/rmt/0m etc.
But now the only solution I can see is to modify the scripts to point to this device.

Regards,
Ninad
Roberto Arias
Valued Contributor

Re: insf question?

Hi Ronal:

The number of de /dev/rmt... is the number of de Instance.

Try make the file yourself with:

mksf -I ...

view man mksf for help

best regards
Roberto

The man is your friend
Pete Randall
Outstanding Contributor

Re: insf question?

Just rename the file to be what you want:

mv /dev/rmt/1m /dev/rmt/0m


Pete

Pete
Torsten.
Acclaimed Contributor

Re: insf question?

Your systems "remembers" another tape drive.

Did you changed something? The drive or the port connected to or just the SCSI ID?

You may remove the tape dependend device files and run insf again.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Ronaldinho
Advisor

Re: insf question?

Thanks Guys.
i re-worte the script to accept /dev/rmt/1m
But torsten i will try your solution next time i see this problem.



Ronaldinho
Advisor

Re: insf question?

.