免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2187 | 回复: 0
打印 上一主题 下一主题

更改Instance Number [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-15 15:43 |只看该作者 |倒序浏览
##############################################################################
#
# Instance Number
#
##############################################################################
定义: "Card instance number" 是在IO Cards的各自分类中唯一标识I/O Cards的序号。
Card类型:具有相似属性的逻辑类型。可分为ext_bus,lan,tty
ext_bus: cards which support multiple remote devices(e.g. SCSI)
lan: LAN interfaces(e.g. 100BT, FDDI, Ethernet)
tty: cards wihch support terminal devices(e.g. multiplexers)
属性: Card属于哪一类型,取决于interface driver要声明的类型。
card到driver的捆定按instance number的顺序进行。
序号可以跳跃。
在同一类型中是唯一的。
存放位置:
kernel
/etc/ioconfig
/stand/ioconfig
备注: 只有card instance number才能保证启动过程的顺序。
##############################################################################
#
# ioconfig
#
##############################################################################
功能: 定义启动过程,系统IO配置。
内容: The ioconfig file contains two types of information:
- mappings of dynamically allocation major numbers to drivers (dyn_major_t)
- mappings of instance numbers to hardware paths (io_config_t)
位置:
/etc/ioconfig (Primary)
/stand/ioconfig (Second)
重建方式:
备份恢复
ioinit -c (从Kernel重建ioconfig)
##############################################################################
#
# change instance number
#
##############################################################################
PROCESS I
------------------------------------------------------------------------------
1. # ioscan -f | grep -e INTERFACE -e DEVICE | \
grep -v target | \
awk '{print $3, $1, $2}' > /infile
2. 编辑/infile,每类的instance number不能重复。
3. # init 1
4. # /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.
------------------------------------------------------------------------------
PROCESS II
------------------------------------------------------------------------------
1. # ioscan -f | grep -e INTERFACE -e DEVICE | \
grep -v target | \
awk '{print $3, $1, $2}' > /infile
2. 编辑/infile,每类的instance number不能重复。
3. # 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. (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.
------------------------------------------------------------------------------
PROCESS III
------------------------------------------------------------------------------
1. Extract a configuration template using ioconfig2infile:
# ioconfig2infile /etc/ioconfig >/infile
2. 编辑/infile,每类的instance number不能重复。
3. # init 1
4. # /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.
------------------------------------------------------------------------------

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6683/showart_400973.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP