Operating System - HP-UX
1837922 Members
6429 Online
110124 Solutions
New Discussion

Creating correct device file names in HPUX 11.23

 
SOLVED
Go to solution
ITeam
Super Advisor

Creating correct device file names in HPUX 11.23

Hi.

I had the following device file names for DAT72 & Ultrium tape devices in a tape array: /dev/rmt/0m & /dev/rmt/1m. When the devices were removed & shipped to site (packaged separately to the array enclosure) & reassembled on site, the device file names had changed to 2m & 4m.

I realised firstly that I had put one of the devices in the wrong slot. I corrected this but still find I am getting these different file names when I run ioscan -fnCtape. I have tried removing the contents of /dev/rmt & running insf -e. Still no change though.

Thanks in advance.

David
8 REPLIES 8
Senthil Kumar .A_1
Honored Contributor

Re: Creating correct device file names in HPUX 11.23

Hi David,

Can you paste output of the follwoing command...

ioscan -fnC tape

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Pete Randall
Outstanding Contributor
Solution

Re: Creating correct device file names in HPUX 11.23

David,

I'm attaching the procedures for creating device file names. Good luck!


Pete

Pete
Robert-Jan Goossens_1
Honored Contributor

Re: Creating correct device file names in HPUX 11.23

Hi David,

You need to remove the special device files with rmsf.

# ioscan -fnCtape

mark the hardware path of the tape units.
in my case 0/0/1/0.3.0 and 0/3/0/0.3.0.
0/0/1/0.3.0 0m dds3
0/3/0/0.3.0 1m dlt8000

example of removing the DLT unit

# rmsf -H 0/3/0/0.3.0
# ll /dev/rmt/1m
check if its removed.
# insf -e

Regards,
Robert-Jan
James R. Ferguson
Acclaimed Contributor

Re: Creating correct device file names in HPUX 11.23

Hi David:

This is expected. Simply removing the device files and re-running 'insf' isn't going to accomplish what you want.

You can take an easy path and create a link for the device files to make the names 'om' and '1m' or you can follow the guidelines in the Technical Knowledge Base for changing instance numbers. There are quite a few documents. One good one is #KBAN00000795. Have a look therein for the gory details.

Regards!

...JRF...
Senthil Kumar .A_1
Honored Contributor

Re: Creating correct device file names in HPUX 11.23

Hi pete,

Just a clarification ,how does the procedure outlined by you differ from just renaming the device file.

regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Pete Randall
Outstanding Contributor

Re: Creating correct device file names in HPUX 11.23

Senthil,

If you look carefully at my procedure, the first line states:

"First, let me echo Bill Hassell in saying you can simply rename the existing device file. There is no significance other than historical to the device names as we know them."


Pete

Pete
ITeam
Super Advisor

Re: Creating correct device file names in HPUX 11.23

Thanks everyone for your very prompt responses!

I recreated the device files as per Pete's notes. I'll remember to use rmsf as well next time when removing them.

All fine now.

Cheers!
Senthil Kumar .A_1
Honored Contributor

Re: Creating correct device file names in HPUX 11.23

Hi pete,

Sorry I missed it.

Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)