device file

 
kholikt
Super Advisor

device file

Hi,

After some re-zoning, all my device file has changed from C6txdx to C11txdx. Is there anyway I can force it back to C6txdx again.
abc
4 REPLIES 4
kholikt
Super Advisor

Re: device file

Hi,

Is the following going to work to change the control number

1. ioscan -kf | grep -e INTERFACE -e DEVICE | grep -v target | awk '{printf"%s %s %s\n",$3,$1,$2}' > /tmp/infile

2. vi the /tmp/infile and change the "ext_bus 4" (as an example, number 4 in this case to 7 if you now want c7t0d0 instead of c4t0d0) Continue to do this for other "ext_bus X" to arrange the controller numbers as you see fit.

3. mv /tmp/infile to /stand/infile

4. mv /stand/ioconfig to /stand/ioconfig.sav

5. mv /etc/ioconfig to /etc/ioconfig.sav

6. shutdown -ry 0

7. hpux -is (single user mode)

8. cd /stand

9. /sbin/ioinit -c

10. exit and continue booting by pressing Ctrl-D

11. init s

12. /sbin/ioinit -f /stand/infile -r
abc
Hein van den Heuvel
Honored Contributor

Re: device file

Hmmm, care to explain why you need to do this?
What software is dependend on the actual path?
Is this not a situation vgscan can correct?

>> Is there anyway I can force it back to C6txdx again.

Flip the cables? :-).


Hope this helps some,
Hein.
Srinivas Thokala_1
Frequent Advisor

Re: device file

Not a good idea to change the control numbers( it's a reverse engineering). But could be done. when FCs are swapped or zoning is done the control addresses get changed automatically. You can remove the unwated addresses selectively, showing as NO-HW.

If you work on MCSG then export and import mapfiles again.

-Srinivas

Srinivas Thokala
Mridul Shrivastava
Honored Contributor

Re: device file

Default procedure, requires one reboot and works without additional tools.
1) Extract a configuration template from the current ioscan output
# ioscan -f | grep -e INTERFACE -e DEVICE | \
grep -v target | \
awk '{print $3, $1, $2}' > /infile
2) Edit /infile and change the ext_bus and lan instances as desired
No class is allowed to get more than one line for the same instance!
3) Bring down the system gracefully to run level 1
# init 1
4) Apply the ioconfig change
# /sbin/ioinit -f /infile -r
The system will reboot immediately if the change is successful.
Warnings like â Input is identical to kernelâ can be ignored.
If unsuccessful, the most likely error to happen is:
â ioinit: Instance number X already exists for class XXXâ
The problem is that your desired instance assignment conflicts with an existing instance
number. If that instance is bound to hardware that is no longer visible in ioscan, then
you are in trouble and need to perform the Procedure II or III.
5) Verify the changes
Once the system is up, verify that all the instance numbers were changed as expected. It
may be necessary to re-import volume groups to ensure that /etc/lvmtab contains the
correct entries. The lan configuration may need to be changed also.
Time has a wonderful way of weeding out the trivial