免费注册 查看新帖 |

Chinaunix

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

[安装配置] 通过alt_disk_install安装aix5.3后导致552 iplvaryon error解决过程 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-14 11:48 |只看该作者 |倒序浏览
场景说明:
在一台安装了aix5.3-07(5300-07-02-0806, 另外安装过IZ04082)的51A机型的机器通过mksysb创建了一个系统备份的镜像文件,放在一台nfs的服务器上,姑且叫51a.img 然后想恢复在另外一台安装了5.3-04的270的机器上,方法是通过alt_disk_install将51a.img恢复在270的hdisk1上
创建mksysb过程,alt_disk_install过程都运行正常,没有报错, 可是当系统重新启动后,想从alt_disk_install安装的hdisk1启动时,系统启动不了,液晶屏上显示
0552 IPLvaryon error
troubleshooting过程
通过aix安装光盘启动系统,进入维护模式,选择access vg before mounting filesystem, 这时候可以看到hdisk1上有hd1,hd2,hd3,hd4,hd5...等LV,也就是说所有该备份的LV都已经备份过来了.
按照IBM关于552报错的解决方法,进行fsck -y /dev/hd1...发现所有的文件系统都没有任何问题,logform /dev/hd8 发现这些都没有问题. 这些方法都无法解决问题,google,网上有人说过有的版本alt_disk_install有bug,有一个链接错误会导致系统无法启动,不过那个报错的信息是0517, 由于我这里的文件系统都没有问题,猜想是不是我这里也是同样的原因导致的?
  于是参照0517的解决方法, 步骤如下
1.mount /usr文件系统,原因:ram filesystem中的/usr目录中命令很少,包括ls命令都没有, mount /usr文件系统后,就能运行所有的aix命令了
mount /dev/hd2 /usr
2.检查一下/dev/ipldevice是不是字符设备(裸设备)
ls -l /dev/ipldevice
返回的结果发现这个设备是块设备, 看来问题就在这里了
3.修复这个问题
rm /dev/ipldevice
ln rhdisk1 ipldevice
或者 ln -f rhdisk1 ipldevice (等同上面两条命令的效果)
4.重新写入启动块
bosboot -ad /dev/hdisk1
我在执行这条命令的时候,报错: missing proto file: /sbin/rc.boot
于是想从hdisk1上的/sbin/下拷贝rc.boot文件
mount /dev/hd4 /mnt
cp /mnt/sbin/rc.boot /sbin/rc.boot
然后再次运行bosboot -ad /dev/hdisk1
虽然后面报错can not open class SWservAt, 不管它,重启系统,系统终于起来了.

注意在access rootvg的时候不能选择 access rootvg and start shell, 否则在执行 bosboot -ad /dev/hdisk1时会报错:
0516-304 unable to find device id XXXX in the devcie configuration database
0301-168 bosboot: The current boot logical volume, dev/hd5, does not exist on /dev/hdisk1

这个问题可以证实在aix5.3-07的sp2(5300-07-02-0806), sp4(5300-07-04-081上是bug, 对于sp1(5300-07-01-074以下的似乎不受影响,其他的SP我还没有测试,那个版本能够解决这个问题,目前还没有测试

附:http://comp.mailarchive.ca/unix.aix/2005-11/0130.html
Re: alt_disk_install reboot hangs at 0517
From: <vlad.zam_at_gmail.com>
Date: 8 Nov 2005 05:45:24 -0800



Well, 517 indicates you HAVE a problem with IPL device... here is what you can do:
Boot into service mode from the installation cds.

#fsck -y /dev/hd2
#fsck -y /dev/hd3
#fsck -y /dev/hd4
#fsck -y /dev/hd9var
#fsck -y /dev/hd10opt


#logform /dev/hd8


#exit -> filesystems will be mounted for service work.


#cd /dev

Is IPL_rootvg is missing?
Is ipldevice is a block file not a character file?

If so, follow these steps.

#rm ipldevice
#mknod IPL_rootvg c 10 0
#chmod 660 IPL_rootvg
#lslv -m hd5 -> this will tell you which hdisk your bootlv is located
on.
#ln rhdisk# ipldevice (rhdisk# will be the corresponding hdisk that
hd5 is located on)

#bosboot -ad /dev/hdisk# (hdisk# being the hdisk that hd5 is located
on)

#shutdown -Fr (to boot into normal mode. Remove the cd)


I know, that isn't what you would expect but seems like a bug in one of the version of alt_disk_install...

论坛徽章:
0
2 [报告]
发表于 2008-08-14 14:22 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
3 [报告]
发表于 2008-08-14 14:31 |只看该作者
这里没给你加精

论坛徽章:
0
4 [报告]
发表于 2008-08-14 15:44 |只看该作者
没有什么非法操作,之前在5.2的系统我做了很多次都没有问题的。
经过测试,安装TL8可以解决这个bug

论坛徽章:
0
5 [报告]
发表于 2008-08-14 15:46 |只看该作者
太忙了,很少在泡论坛,很多东西没心思写,加不加精无所谓了,只是看到网上遇到这个问题的人似乎不少,可是解决的不多,所以写下自己的解决过程,供其他人参考

论坛徽章:
0
6 [报告]
发表于 2008-08-14 17:25 |只看该作者
谢谢分享经验

论坛徽章:
0
7 [报告]
发表于 2010-09-30 01:15 |只看该作者
这帖应该申请加个精,经典之谈,收藏不小,谢谢!

论坛徽章:
1
19周年集字徽章-19
日期:2020-01-08 15:08:20
8 [报告]
发表于 2010-09-30 18:37 |只看该作者
加精!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP