系统集成alt_disk_install

alt_disk_install 报错0516-082 0505-121

问题原因:在小型机P55A上安装了操作系统aix5.3,在进行alt_disk_install时,报了0516-082、0505-121的错误。使用alt_disk_install时,系统报错 0516-082:/usr/sbin/lchangelv: Unable to access a special device file. Execute redefinevg and synclvodm to build correct envir...显示全部
问题原因:

在小型机P55A上安装了操作系统aix5.3,在进行alt_disk_install时,报了0516-082、0505-121的错误。

使用alt_disk_install时,系统报错
0516-082:/usr/sbin/lchangelv: Unable to access a special device file.
Execute redefinevg and synclvodm to build correct environment.
0505-121:alt_disk_install error

解决办法:
1.检查已经安装文件集bos.alt_disk_install.rte版本是否为5.3.0.40,如若不是,先请安装此版本文件集

2.在debug模式下重新运行alt_disk_install命令:
smit alt_install->Clone the rootvg to An Alternate Disk->Debug output?:yes

3.查看smit.log中ALT_MAJOR_NUM项对应的值
ALT_MAJOR_NUM=50
+ + odmget -q value1=50 CuDvDr
+ odmget -q value1=altinst_rootvg CuDvDr
CUDVDROUT=
CuDvDr:
resource = "devno"
value1 = "50"
value2 = "0"
value3 = "altinst_rootvg"

CuDvDr:
resource = "devno"
value1 = "50"
value2 = "1"
value3 = "bootlv00"

CuDvDr:
resource = "devno"
value1 = "50"
value2 = "2"
value3 = "pagelv00"

CuDvDr:
resource = "devno"
value1 = "50"
value2 = "3"
value3 = "loglv00"

CuDvDr:
resource = "devno"
value1 = "50"
value2 = "4"
value3 = "fslv16"

CuDvDr:
resource = "devno"
value1 = "50"
value2 = "5"
value3 = "fslv17"

CuDvDr:
resource = "devno"
value1 = "50"
value2 = "6"
value3 = "fslv18"

CuDvDr:
resource = "devno"
value1 = "50"
value2 = "7"
value3 = "fslv19"

CuDvDr:
resource = "devno"
value1 = "50"
value2 = "8"
value3 = "fslv20"
......
......
......
由此看出ODM中有错误的项被记录了且未清除。

4.备份ODM
#odmget CuDvDr > /tmp/odm.out
#tar -cvf /tmp/odm.tar /etc/objrepos
#tar -cvf /tmp/odm-usr.tar /usr/lib/objrepos

5.找到Debug模式下,smit.log文件中的ALT_MAJOR_NUM对应的数字后,从CuDvDr中删除该条目
#odmget -q value1=50 CuDvDr ==> 22 instances
#odmdelete -q value1=50 -o CuDvDr ==>deleted 22 entries

6.查看CuAt,CuDv,CuDvDr,CuDep中对应条目是否仍然存在
#odmget CuAt | grep alt ==> 应该返回空
#odmget CuDv | grep alt ==> 列出 parent=altinst_rootvg项目
#odmget CuDvDr | grep alt ==> 应该返回空
#odmget CuDep | grep alt ==> 列出 name=altinst_rootvg项目

7.删除CuDv及CuDep中相关条目
#odmdelete -q parent=altinst_rootvg -o CuDv
#odmdelete -q name=altinst_rootvg -o CuDep

8.重新运行alt_disk_install,问题解决。收起
参与4

查看其它 3 个回答liangfuting的回答

liangfutingliangfuting系统工程师联通系统集成有限公司
太牛了,LZ,这样的问题都能找出原因并解决掉,实在太佩服你了
互联网服务 · 2011-11-25
浏览1898

回答者

liangfuting
系统工程师联通系统集成有限公司

liangfuting 最近回答过的问题

回答状态

  • 发布时间:2011-11-25
  • 关注会员:0 人
  • 回答浏览:1898
  • X社区推广