Operating System - HP-UX
1835141 Members
3540 Online
110077 Solutions
New Discussion

Re: instance number and device files

 
Nivesh Patnaik
Frequent Advisor

instance number and device files

I had two different types of tape devices
daisy chained.
The DLT was assigned instance 0 and the DAT was
assigned instance 1.
The DAT had a SCSI terminator.

I have finished working on the system, disconnected the DAT drive, terminated the DLT
and rebooted the system.
The DLT now shows up as instance 1, along with
/dev/rmt/1m, etc, but all my scripts use /dev/rmt/0m. Thats a huge problem.

What could be causing the instance number assignment to change?

I disconnected both the drives, powered down the
system and powered it back up. No tape drives were detected. I then connected the DLT (terminated) and did an ioscan. It still gets assigned instance 1.

Is this assignment being stored somewhere persistently?

Your help is needed most urgently.
I gave him his drink as usual. Some men can't hold their arsenic.
2 REPLIES 2
JohnWRuffo
Honored Contributor

Re: instance number and device files

Connect the drive and terminate properly then you should go into /dev/rmt and rm * the devices
Then do a devlinks and tapes to get them back. Alternatively, you could rm * the directory and then do a b -r after a re-boot.

Hope this helps?
-John
Enjoy!
__________________________________________
Was the post useful? Click on the white KUDOS! Star.

Do you need help with your HP product?
Try this: http://www.hp.com/support/hpgt
Helen French
Honored Contributor

Re: instance number and device files

Check the minor numbers of the 0m and 1m device file and see if it's proper. If you want you can remove the special files with 'rmsf' command and then recreate it with:

# insf -e
Life is a promise, fulfill it!