HP-UX Reorder Lan PPAs from default OS installation

HP-UX、Linux、Tru64 UNIX、NonStop、OpenVMS、Windows Server等,数据中心、虚拟化方案等

版主: xyevolve

版面规则
1. 本版是定位于惠普软件系统及解决方案的技术讨论区。
2. 本版鼓励发帖共同讨论技术问题,不鼓励站内信件私下交流,独知知不如众知知。
3. 本版允许转贴或引用他人的作品,但必须声明原作者信息。
4. 本版禁止发表出售、求购、或其他非技术讨论等帖子。
5. 本版禁止灌水,包括但不限于任何与所讨论主题无关的回复,无意义字符,直接复制其他回复等。
6. 本站附件禁止用于商业目的,请在下载后24小时内删除,本站不对其造成的结果负任何责任。
回复
头像
MUDBOY
创始人
帖子: 3882
注册时间: 2010年 12月 28日 21:17 星期二

HP-UX Reorder Lan PPAs from default OS installation

帖子 MUDBOY » 2013年 5月 30日 17:43 星期四

OpenCall configurations make certain assumptions about the PPA associated with the core I/O lans.(i.e.: that lan0 is the management lan).

Some machines do not present the core I/O lans as lan0 as required.

Follow this procedure to reorder lan PPAs if necessary:

Check the current status of the lan PPAS
(the following example is taken from an rx3600):

# ioscan –kfClan

Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 0 0/2/1/0/4/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 1 0/2/1/0/4/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 2 0/2/1/0/6/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 3 0/2/1/0/6/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 4 0/4/2/0 iether CLAIMED INTERFACE HP AB352-60003 PCI/PCI-X 1000Base-T Dual-port Core
lan 5 0/4/2/1 iether CLAIMED INTERFACE HP AB352-60003 PCI/PCI-X 1000Base-T Dual-port Core
lan 6 0/6/1/0/4/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 7 0/6/1/0/4/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 8 0/6/1/0/6/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 9 0/6/1/0/6/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter

Note the the core I/O IDs indicated in the second column are 4 and 5. They must be changed to 0 and 1.

# ioscan -kfClan | grep "^lan" | awk '{print $3" "$1" "$2}' | sed -e "s/\//./g" > /tmp/newio

This will produce the file /tmp/newio with the following contents (from the given example):

0.2.1.0.4.0 lan 0
0.2.1.0.4.1 lan 1
0.2.1.0.6.0 lan 2
0.2.1.0.6.1 lan 3
0.4.2.0 lan 4
0.4.2.1 lan 5
0.6.1.0.4.0 lan 6
0.6.1.0.4.1 lan 7
0.6.1.0.6.0 lan 8
0.6.1.0.6.1 lan 9

Edit this file and change the third argument to be the new PPA and remove any interfaces that won’t need changing. In this example, lan6 to lan9 will not change, giving the following contents:

0.2.1.0.4.0 lan 2
0.2.1.0.4.1 lan 3
0.2.1.0.6.0 lan 4
0.2.1.0.6.1 lan 5
0.4.2.0 lan 0
0.4.2.1 lan 1

Now, execute the following command to reorder the interfaces and reboot the machine:

# ioinit -f /tmp/newio –r

Afterwards, check that the lan IDs are as expected:

# ioscan –kfClan

Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 2 0/2/1/0/4/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 3 0/2/1/0/4/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 4 0/2/1/0/6/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 5 0/2/1/0/6/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 0 0/4/2/0 iether CLAIMED INTERFACE HP AB352-60003 PCI/PCI-X 1000Base-T Dual-port Core
lan 1 0/4/2/1 iether CLAIMED INTERFACE HP AB352-60003 PCI/PCI-X 1000Base-T Dual-port Core
lan 6 0/6/1/0/4/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 7 0/6/1/0/4/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 8 0/6/1/0/6/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 9 0/6/1/0/6/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter

提倡分享之精神, 技术问题请在相关版面直接发帖, 站内短信恕不答复.
I don't answer private messages on topics of public interest, because it defeats the whole purpose of a message board.

爱老虎油
注册用户
帖子: 278
注册时间: 2011年 6月 17日 21:31 星期五

Re: HP-UX Reorder Lan PPAs from default OS installation

帖子 爱老虎油 » 2013年 6月 3日 00:04 星期一

好经验,对一些创建cluster的环境特别有用,谢谢分享哦。

回复