手工修改HP主机Instance Number三招

news/2024/11/8 16:45:22/
有时我们需要更改设备的instance number,(例如配置MC的时候),本文给出WTEC的最权威步骤。[@more@]

其中procedure I比较简单,但并不总是好用,最彻底的还是procedureII。 另外,建议大家先做一个系统备份,这些方法还是有一点危险性的。

Procedure I
-----------
Default procedure, requires one reboot and works without additional tools.

1. Extract a configuration template from the current ioscan output.
Execute the following command:

# 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. Once the system reboots, 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.


Procedure II
------------
Reliable, requires two reboots and works without additional tools.

1. Extract a configuration template from the current ioscan output.
Execute the following command:

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

Make sure to store infile to the root file system!

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. Move away the current ioconfig files and Shutdown/Reboot:

# mv /stand/ioconfig /stand/ioconfig.sav
# mv /etc/ioconfig /etc/ioconfig.sav
# shutdown -ry 0

4. Due to the missing ioconfig files the system will come to an
ioinitrc prompt. Now recreate new ioconfig files from scratch.
This prevents you from running into possible assignment conflicts.

(in ioinitrc)# /sbin/ioinit -c

5. Apply the ioconfig change with your prepared infile:

(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.

6. Once the system reboots, 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.


Procedure III
-------------
Reliable, requires one reboot and needs the unsupported ioconfig2infile tool.
Since the infile is directly extracted from the current ioconfig you get all
mappings, even for hardware that is not longer visible in ioscan.

1. Extract a configuration template using ioconfig2infile:

# ioconfig2infile /etc/ioconfig >/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.

5. Once the system reboots, 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.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/717880/viewspace-821992/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/717880/viewspace-821992/


http://www.ppmy.cn/news/241091.html

相关文章

LoadRunner测试经典案例

LoadRunner测试经典案例使用虚拟用户(Virtualusers)来模拟实际用户对业务系统施加压力。虚拟用户在一个中央控制器(controllerstation)的监视下工作。 在做一个测试方案时,要做的第一件事就是创建虚拟用户执行脚本。LoadRunner提供了Virtual User Generator来录制或…

高可用性oracle配置步骤(HP-Unix环境)

硬件环境: 两台HP Server rp5470小型机,7110磁盘阵列 软件环境: HP-UX B.11.11、MirrorDisk/UX B.11.11、MC / Service Guard A.11.14、Oracle 9i for HP-UX。 3.1准备系统3.1.1编辑安全文件:[/machine01]vi .rhosts文件machin…

如设置oracle在Hp-unix上的自动启动

经常有人会需要Oracle数据库随着操作系统一起启动和关闭,而修改/etc/oratab,设置了oracle SID行启动为Y时实际上是不好用的。本文以一个例子来示范如何去做。[more] 如下给的是一个example,注意部分内容可能要改,比如oracle的用户名。 1、在/…

Hp unix rm文件空间不释放问题解决

1 引言 很多人会遇到在操作系统上rm掉一个大的文件,以解决文件系统超标的问题,可是有的时侯文件删除掉了,而空间却未释放出来。论坛上也常常见这样贴子,为什么会这样,如何解决呢?本文只局限于Hp unix的操作…

Hp-unix下为Oracle配置异步IO

本文给出了hp-unix下为Oracle配置异步IO(AIO)的具体的流程。[more] 源自Metalink Note:139272.1PURPOSE ------- The purpose of this document is to discuss the implementation of asynchronous i/o (aio) on HP-UX, specifically to enable aio for the Oracle RDBMS Serve…

计算机无法发现网络共享打印机,网络打印机,无法被其它电脑识别

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 网络打印机,无法被其它电脑识别:(本文由“浪子海风”经验组编) 我电脑重装过后,其它电脑就识别不了我的网络打印机了。未重装之前都是可以的,每台电脑都能保证正常上网。(大侠们&…

HP FC60 RAID级别更改方案

1 背景 xx用户智能网SDP业务为数据核心部分,现在以一套RP4440双机加一台VA7110和DS2405存储,为了确保SDP业务的在双机同时出现故障时,能向200用户提供业务,特此做一台个SDP业务应急处理机。 2 可行性分析 2.1 现有应急环境硬件配置…

hp-ux UDP 优化

官方文档未有这方面设置,本设置取自于最佳实践[more] 1、永久生效 请将如下几行添加到/etc/rc.config.d/nddconf文件中TRANSPORT_NAME[0]socketsNDD_NAME[0]socket_udp_rcvbuf_defaultNDD_VALUE[0]1048576TRANSPORT_NAME[1]socketsNDD_NAME[1]socket_udp_sndbuf_def…