1845825 Members
2948 Online
110250 Solutions
New Discussion

mknod

 
SOLVED
Go to solution
Michael Campbell
Trusted Contributor

mknod

Hi

We are having a problem with our Optical storage unit. We had a hardware change last night and some of the SCSI addresses were changed. I need to create some files to reflect the new addresses. Here is an example of one of the old files:

crw-rw---- 1 fnsw fnusr 203 0x034000 Nov 9 2000 fnsod.3,0,4,0

Could someone please tell me the command for creating these files for the following addresses:

disk 66 0/12/0/0.5.0 sdisk CLAIMED DEVICE HP C1113J /dev/dsk/c3t5d0 /dev/rdsk/c3t5d0
disk 67 0/12/0/0.5.1 sdisk CLAIMED DEVICE HP C1113J /dev/dsk/c3t5d1 /dev/rdsk/c3t5d1
disk 68 0/12/0/0.5.2 sdisk CLAIMED DEVICE HP C1113J /dev/dsk/c3t5d2 /dev/rdsk/c3t5d2
disk 69 0/12/0/0.5.3 sdisk CLAIMED DEVICE HP C1113J /dev/dsk/c3t5d3 /dev/rdsk/c3t5d3
disk 70 0/12/0/0.5.4 sdisk CLAIMED DEVICE HP C1113J /dev/dsk/c3t5d4 /dev/rdsk/c3t5d4
disk 71 0/12/0/0.5.5 sdisk CLAIMED DEVICE HP C1113J /dev/dsk/c3t5d5 /dev/rdsk/c3t5d5
target 25 0/12/0/0.6 tgt CLAIMED DEVICE
autoch 0 0/12/0/0.6.0 schgr CLAIMED DEVICE HP /dev/rac/c3t6d0
disk 72 0/12/0/0.6.1 sdisk CLAIMED DEVICE HP C1113J /dev/dsk/c3t6d1 /dev/rdsk/c3t6d1
disk 73 0/12/0/0.6.2 sdisk CLAIMED DEVICE HP C1113J /dev/dsk/c3t6d2 /dev/rdsk/c3t6d2
disk 74 0/12/0/0.6.3 sdisk CLAIMED DEVICE HP C1113J /dev/dsk/c3t6d3 /dev/rdsk/c3t6d3
disk 75 0/12/0/0.6.4 sdisk CLAIMED DEVICE HP C1113J /dev/dsk/c3t6d4 /dev/rdsk/c3t6d4

Any Help Appreciated

Michael
3 REPLIES 3
Franky_1
Respected Contributor

Re: mknod

Hi Michael,

you can (re-)install the device files with the "insf -e" command. This should do the trick

Regards

Franky
Don't worry be happy
Steve Steel
Honored Contributor

Re: mknod

Hi


Franky puts it short and sweet

look at
rmsf - remove a special (device) file
insf - install special (device) files
lssf - list a special file


man pages are a source of information


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Cheryl Griffin
Honored Contributor
Solution

Re: mknod

Are you asking to make a device name look like crw-rw---- 1 fnsw fnusr 203 0x034000 Nov 9 2000 fnsod.3,0,4,0

from this?
disk 66 0/12/0/0.5.0 sdisk CLAIMED DEVICE HP C1113J /dev/dsk/c3t5d0 /dev/rdsk/c3t5d0

If so, use mknod:
# ll /dev/dsk/c3t5d0
(to confirm the current minor number to be used in the next command)
# mknod /dev/fnsod.0,3,5,0 c 203 0x035000

# ll /dev/fn*
crw-rw-rw- 1 root sys 203 0x035000 Aug 19 08:08 /dev/fnsod.0,3,5,0
# chown fnsw:fnusr /dev/fnsod.0,3,5,0

Tweak this command as needed.
"Downtime is a Crime."