Operating System - HP-UX
1753797 Members
7692 Online
108805 Solutions
New Discussion юеВ

Device files not created at reboot..

 
Leif Halvarsson_2
Honored Contributor

Device files not created at reboot..

Hi,
If I am not wrong, default devicefiles for a new tape drive should be created automatic at reboot. This seems not to work on one of our systems . There are several tape drives connected to the system and visible with ioscan but no device files is created when rebooting.

Is there any config parameter, controlling device file creation or is there something wrong with my system.

The hardware is A400, OS is HP-UX 11.11, drives is DLT and Ultrium.
15 REPLIES 15
Massimo Bianchi
Honored Contributor

Re: Device files not created at reboot..

Sometimes i saw the same behaviour, with some non-HP hw.
In those cases, the manual installation worked.

Does the manual thing work weel in your server ?

insf -C tape -H ...........

Are the stape/tape2 drivers loaded in the kernel ?

Massimo
RolandH
Honored Contributor

Re: Device files not created at reboot..

Hi Leif,

was there Tape devices attached to that system before?
If not you have first add the driver to the kernel. Do it with sam (peripheral devices). Sam will automatical test if the driver is in the kernel. If not it ask you to add the driver and rebots the system with the new driver.

Chech if these two drivers are in your kernel
tape2, stape

# cat /stand/system |grep tape

If not add it and at next reboot the devidce files will be created.
( if you have still attached the tape )


HTH
Roland
Sometimes you lose and sometimes the others win
Leif Halvarsson_2
Honored Contributor

Re: Device files not created at reboot..

Hi,
All drives has been used on this system before and all drivers is in the kernel. Manual device file creation works and also device file creation from SAM. "insf -C tape" don't work but I am not sure about this command, I have not used it before.

There has been a number of problems with drives and my idea was to begin with recreating all device files (and also remove some unnessesary files). So I removed all files in the /dev/rmt directory (except for stape_config) and rebooted the system.

I am sure about device files has been created automatic before. For about tree month ago I installed a number of HP-UX patches on the system, this may bee the reason.
Helen French
Honored Contributor

Re: Device files not created at reboot..

Did you try:

# insf -e

Are the devices show in ioscan -fn command? If yes, is it UNCLAIMED?
Life is a promise, fulfill it!
Massimo Bianchi
Honored Contributor

Re: Device files not created at reboot..

Hi,
i think to understand better now.

How did you remove the files, using the rm or ther rmfs ?

I suspect that you used rm, and not rmfs.

Then the system, in ioconfig, still thinks that the drives are there, and device files are not re-created automatically, because in its opinion are still there. THe fact that the device file are missing is a "human error" in this case.

Try re-creating the files, remove the special files using rmfs and then reboot again.

Or use, as suggested, "insf -e -C tape".
With this command the system will re-create eveng existing device files (like in your case!)

Massimo


RolandH
Honored Contributor

Re: Device files not created at reboot..

Have you used the rm command or the rmsf command for removing of files in /dev/rmt/ ?


Roland
Sometimes you lose and sometimes the others win
Leif Halvarsson_2
Honored Contributor

Re: Device files not created at reboot..

Hi,

Shiju,
"insf -e" works, the default devicefiles is created again. What is strange to me is that this is not done at reboot.

Massimo and Roland,
You was correct, I used the rm command, not rmsf. I recreated the devicfiles with insf -e, deleted the files again (for one drive) with rmsf -H and rebooted. But do device files was created for the device.

When I first noticed this problem (for some weeks ago) it was with a new drive. I created the files manually at that time and hoped it was a temporary problem. And I am (nearly) sure I have removed devicefiles with rm before and get them recreated automatic.

The problem is not so much the missing devicefiles, it is possible to create manual. But I suspect there was some mismatch when I patched the system.
Helen French
Honored Contributor

Re: Device files not created at reboot..

You will get answers to your questions from these man pages:

# man ioconfig
# man ioinit

Also, if your tape drives are not directly connected (if attached through hubs or bridges) to the server, it is possible that the system won't create device files for it during boot time.
Life is a promise, fulfill it!
Leif Halvarsson_2
Honored Contributor

Re: Device files not created at reboot..

Hi,

There is no difference if the drives is local or SAN-attached, no device files is created for any of them. I have created the files manually and will see if my original problems remains.