分页: 1 / 1

HP-UX重新分配Instance Numbers

发表于 : 2012年 3月 12日 20:46 星期一
MUDBOY
重新分配/修改Instance Numbers(Reassign Instance Numbers)
如果你想配置Serviceguard cluster, 把磁盘disk或者LAN的instance number设置为一样的,那么这个步骤特别有用。
This process is especially useful if you're trying to get DISK and LAN instance numbers to match between nodes in a Serviceguard cluster.

1. Create source file

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

2. Edit source file (/stand/infile) and modify instance numbers. Example:

8/0 ext_bus 0
8/4 ext_bus 3

==> Modify as:

8/0 ext_bus 3
8/4 ext_bus 0

3. Save ioconfig files:

# mv /stand/ioconfig /stand/ioconfig.sav
# mv /etc/ioconfig /etc/ioconfig.sav

4. Reboot.

# shutdown -ry 0

5. From the console, stop boot process and boot in single-user mode:

hpux -is (under PA-RISC)
boot vmunix -is (under Itanium)

6. The system starts witn an "ioinitrc" prompt. Create ioconfig file:

# cd /stand
# /sbin/ioinit -c

7. Update it with infile. (This command will also reboot the system.):

# /sbin/ioinit -f infile -r

Re: HP-UX重新分配Instance Numbers

发表于 : 2012年 3月 12日 22:20 星期一
HEUNG
不错的分享,MUDBOY看来在研究HPUX啊, :-)