Operating System - HP-UX
1830900 Members
3224 Online
110017 Solutions
New Discussion

Re: create a device file for disk

 
SOLVED
Go to solution
Sanjiv Sharma_1
Honored Contributor

create a device file for disk

Hi,

I have a K-Class/HP-UX 10.20 connected to a disk array. One of the 2 GB disk has failed. I have replaced it with a good one.

The original device file name of the defective disk was c7t8d0.

After replacing the disk in the ioscan it shows claim but there is no device file attached to it.

I don't want to run "insf -e" as it will create the device file for the 2 GB disk but inturn it will change the permission/ownership of the other device files.

c7t8d0 exists in /dev/dsk and /dev/rdsk but they are not able to access the replaced disk.

I want to create the new device file c7t8d0 for the replaced disk w/o disturbing the other device files in the /dev.

I think it can be done with mksf but I am not getting the exact syntax.

ioscan o/p
disk 18 10/4/12.8.0 disc3 CLAIMED DEVICE SEAGATE ST32272WC

Can you help me to get the correct syntax?
Or any other method of creating the device file for the replaced 2 GB disk.

Thanks,
Raje.
Everything is possible
8 REPLIES 8
Denver Osborn
Honored Contributor

Re: create a device file for disk

you can use insf to create the device files for just that drive.

insf -e -H 10/4/12.8.0

With the -H it will only recreate the devices for that h/w path.

Hope this helps,
-denver
Ollie R
Respected Contributor

Re: create a device file for disk

Hi Raje,

You can use "insf -H 10/4/12.8.0" which will only create the device file for that disk, BUT......

Strange that the disk now has a different address. The SCSI addresses seems to be set correctly in the disk (8).

To be honest I would have expected that the device files would access the disk.

Could you provide a full output of:

ll /dev/dsk

ioscan -fnkC disk

Thanks,


Ollie.
To err is human but to not award points is unforgivable
Sanjiv Sharma_1
Honored Contributor

Re: create a device file for disk

Hi,

I am unable to create the device file with
# insf -e -H 10/4/12.8.0
insf: Installing special files for disc3 instance 18 address 10/4/12.8.0
insf: Couldn't get dev number from "disc3" with options "": Parameter error.
insf: Couldn't get dev number from "disc3" with options "": Parameter error.
insf: Couldn't get dev number from "disc3" with options "": Parameter error.
insf: Couldn't get dev number from "disc3" with options "": Parameter error.

Enclosed are the details asked.

Thanks,
Raje.

Everything is possible
T G Manikandan
Honored Contributor
Solution

Re: create a device file for disk

Sean OB_1
Honored Contributor

Re: create a device file for disk

Why not use insf to create the driver for just that disk?


insf -e -H 10/4/12.8.0

Man insf. The -H will hit just the hardware path listed in the command.
Ollie R
Respected Contributor

Re: create a device file for disk

Hi Raje,

Seems the system has got confused over paths and device files, maybe because of a SCSI address problem.

Can you try a reboot of the system (if you haven't already done so) and pass on the results?

Ollie.
To err is human but to not award points is unforgivable
Joseph A Benaiah_1
Regular Advisor

Re: create a device file for disk

Raje,

If you want to create the device file for that disk, you can run:

insf -e -C disk -I 18

OR

insf -H 10/4/12.8.0

Cheers,

Joseph.
Ollie R
Respected Contributor

Re: create a device file for disk

Hi All,

Just one question - does anybody bother to read what replies a message has already had before adding their comments?

I always check what has been said so that I'm not repeating information or so that I can enhance the help already given.

Seems to me there may be a few people out there who "jump on the bandwagon" to earn themselves a few extra points!

Ollie.
To err is human but to not award points is unforgivable