Operating System - HP-UX
1843936 Members
2752 Online
110226 Solutions
New Discussion

How to remove invalid entries in ioconfig?

 
SOLVED
Go to solution
Jack Wu
Occasional Contributor

How to remove invalid entries in ioconfig?

Hello all,

We've recently connected our RP5450 server (running HP-UX 11.0) to an EMC FC4700 storage system. After several ioscans & reconfigurations of connection to switches, the system had logged different hardware paths in /etc/ioconfig. The instance number keeps increasing. By used the tool "ioc" (which was downloaded from this forum), I noticed that some of the old hardware paths are occupying the lower instance numbers. My question is how can we remove these invalid hardware paths from /etc/ioconfig and release/reset the instance number sequence for the real disks/luns?

Thank you for your help!
Regards,
Jack Wu
5 REPLIES 5
Clemens van Everdingen
Honored Contributor

Re: How to remove invalid entries in ioconfig?

Hi,

See this link.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcc01670142b2d5118ff10090279cd0f9,00.html

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
S.K. Chan
Honored Contributor
Solution

Re: How to remove invalid entries in ioconfig?

You can modify those instance number as such ..

A) # ioscan -f | grep -e INTERFACE -e DEVICE | grep -v target | awk '{print $3, $1, $2}' > /infile

B) # vi /infile
Edit infile and change the ext_bus accordingly.

C) # mv /stand/ioconfig /stand/ioconfig.org
# mv /etc/ioconfig /etc/ioconfig.org
Save ioconfig file (just in case..)

D) # shutdown -ry 0

E) At the ioinitrc prompt during bootup run this ..
(in ioinitrc)# /sbin/ioinit -c

F) Apply the changes ..
(in ioinitrc)# /sbin/ioinit -f /infile -r

The system will reboot again now if the change was successful. Warnings like 'Input is identical to kernel' can be ignored. Once the system reboots, verify that all the instance numbers were changed as expected.

Caution though ..it may be necessary to re-import volume groups to ensure /etc/lvmtab contains the correct entries. So try not to mess with existing instance number that were already assigned to valid device.
Michael Tully
Honored Contributor

Re: How to remove invalid entries in ioconfig?

Hi,

One other method I've found can
work, and has for me in the past
without rebooting is to remove
the path using the rmsf -H
removing any device files and
then running your ioscan(s).
Can't guarantee it, buit it is
worth a try if you can't have
an outage.

Cheers
Michael
Anyone for a Mutiny ?
Bill McNAMARA_1
Honored Contributor

Re: How to remove invalid entries in ioconfig?

here's an attached html page describing the process

Later.
Bill
It works for me (tm)
Jack Wu
Occasional Contributor

Re: How to remove invalid entries in ioconfig?

Thank you all of you on helping me promptly.

Best wishes!

Jack Wu