- 论坛徽章:
- 0
|
场景说明:
在一台安装了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... |
|