Operating System - HP-UX
1836621 Members
2058 Online
110102 Solutions
New Discussion

How To Make Special Device File Name?

 
Thao Huynh
Advisor

How To Make Special Device File Name?

Hello,

I am trying to make same special device names for the share disks on the two nodes MC service guard cluster. I used both the
insf command to create the device names. The name of devices on both nodes are not same on same disk. How do you make them
same device name? I tried to remove and recreate. Still not work. The SAN group kept saying they present LUN on XP12000
correctly. My HBA cards are on same slots on identical servers. Even different device name files, I was able to export from
one node and import from other node. Any thougth?

Thanks,
2 REPLIES 2
Geoff Wild
Honored Contributor

Re: How To Make Special Device File Name?

They don't need to be the same...

You can try....

Create them on one node - then check to see if that name exists on the other node:

ll /dev/*sk/cXtXdX

fill in the X's with the numbers from first name...

If they do exist - see if they are already in use:

strings /etc/lvmtab |grep cXtXdX

If not - them remove them:

rmsf -a /dev/rdsk/cXtXdX

and I think you have to do:

rmsf -a /dev/dsk/cXtXdX

Then try doing

ioscan -fnC disk
insf -e disk

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
A. Clay Stephenson
Acclaimed Contributor

Re: How To Make Special Device File Name?

This is really not a problem as there is no requirement that the devices have the same name on each node.


Generally this happens when hardware was added/removed/moved between the time the old OS was installed and the new OS was installed so that the devices are discovered in different order.

f you do want to "fix" this then follow this procedure:



ioscan -f | grep -e "INTERFACE" -e "DEVICE" | grep -v -i "target" | awk '{printf("%-20.20s %-12.12s %3d\n",$3,$1,($2 + 0))}' | sort > /myfile

Using vi, edit /myfile and change the lan and disk controller instances as you wish but make sure than no instance numbers are duplicated.

mv /stand/ioconfig /stand/ioconfig.safe
mv /etc/ioconfig /etc/ioconfig.safe
shutdown -r -y 0

The system will stop the reboot at the ioinitrc prompt because of the missing files:
Issue this command:
/sbin/ioinit -c
/sbin/ioinit -f /myfile -r

You may get warnings like "input identical to kernel" -- these are normal and expected and may be safely ignored. The "-r" triggers a reboot.

Your configurations should be correct now. Man ioinit for details. Be careful not to change the instance number of the boot VG disks or you just made your system unbootable.
If it ain't broke, I can fix that.