1843753 Members
3158 Online
110223 Solutions
New Discussion

tape and special file

 
Mauro Gatti
Valued Contributor

tape and special file

Hi all,
I did some test connecting, disconnecting and changind target SCSI of my tape.
Every time operating system realized that it had a new tape it incremented the number of the special file /dev/rmt/0m creating 1m 2m 3m and so on.
How can I tell operating system to restart to number special file from 0?

Thank You

Mauro
Ubi maior, minor cessat!
10 REPLIES 10
RAC_1
Honored Contributor

Re: tape and special file

rmsf on old device files and doing insf -ev -Ctape should do what you want.

man insf, rmsf for details.
There is no substitute to HARDWORK
Mauro Gatti
Valued Contributor

Re: tape and special file

it create the latest special file
So if I have /dev/rmt/2m it recreate /dev/rmt/2m and not /dev/rmt/0m
Ubi maior, minor cessat!
Mauro Gatti
Valued Contributor

Re: tape and special file

Mmmm maybe the number before the "m" depends on card instance...
I remember you can change it using ionit isn't it?
Ubi maior, minor cessat!
Ludovic Derlyn
Esteemed Contributor

Re: tape and special file

hi,

I 'an not sure that it depend of card instance
I thinks that it's function of discover by ionitrc it's seems...

regards
L-DERLYN
Ludovic Derlyn
Esteemed Contributor

Re: tape and special file

hi,

A suggest, have you ry:

rmsf /dev/rmt/* and recreate it by insf -H "hardware path"

regards

L-DERLYN
Mauro Gatti
Valued Contributor

Re: tape and special file

I did it but o.s. cretes special file from latest number there was before...
Ubi maior, minor cessat!
Ludovic Derlyn
Esteemed Contributor

Re: tape and special file

hi ,

it's possible to reboot the server or it's a production server ?

if yes, retry rmsf /dev/rmt/* and reboot to see if it depend of io discover

regards

L-DERLYN
Mauro Gatti
Valued Contributor

Re: tape and special file

I think it depends on card instance.
I tried to modify it using ioinit -f myfile where myfile contents:
MYHPATH tape 0
and ionit told me:
ioinit: Instance number 0 already exists for class tape.
Now i'm trying to rmsf /dev/rmt/* and reboot.

How can i tell to kernel that there is no longer a 0 instance number valid?
Ubi maior, minor cessat!
Sandman!
Honored Contributor

Re: tape and special file

Mauro...add the "-r" switch to ioinit command in order to force a reboot i.e.

# ioinit -f myfile -r

where myfile contains...

path_to_tape 0
Mauro Gatti
Valued Contributor

Re: tape and special file

Ok Guys I found the solution.

Because the number of "m" special file depends on card instance and because an old card instance was alredy recorded in kernel io table I had to move away /stand/ioconfig e /etc/ioconfig then I created initfile to give to ioinit.
Then I rebooted and in ionitrc prompt I did
ioinit -c
ioinit -f initfile -r
the sistem rebooted and when it was up again all things were well
Ubi maior, minor cessat!