免费注册 查看新帖 |

Chinaunix

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

How to boot HP-UX into LVM Maintenance Mode [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-28 10:14 |只看该作者 |倒序浏览

How to boot HP-UX into LVM Maintenance Mode

  
  
1. Boot to LVM Maintenance mode by following these steps:
a. shutdown -hy now
b. Interrupt the autoboot process
c. Boot from the primary boot path (boot pri isl)
d. The system will prompt you, asking if you want to interact with IPL/ISL, answer 'yes'.
e. At the ISL prompt, boot the system in LVM Maintenance mode:  ISL> hpux -lm
  
  
  
  
troubleshooting: Root VG activation failed when booting from alt root disk
After replacing the primary root mirror disk, cannot boot system from the alternate root mirror disk to perform the recovery. Attempts to bootup from the alternate boot disk are failing with cross-device link errors and errors indicating the root disk is not an disk. How can system be successfully booted from the alternate root disk to fix the problem?
  
1.  Interrupt the boot process and from the command menu, type the boot command specifying the hardware path of the alternate boot disk as in the following example where PATH is the physical path for the alternate boot disk:  bo PATH
Answer Y if prompted to interact with ISL
  
2.  At the ISL prompt, enter the hpux command to bootup into LVM maintenance mode using the no-quorum option:  ISL> hpux -lm -lq
  
3.        Restore the LVM configuration to the replaced primary root disk from the vgcfgbackup of the root volume group LVM configuration.   
For example, if c0t6d0 is the primary root disk replaced:
vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t6d0
  
4.  Execute the mkboot and lvlnboot commands to add the boot information to the primary root disk and synchronize the BDRA as in the following example:
mkboot /dev/rdsk/c0t6d0
mkboot -a "hpux" /dev/rdsk/c0t6d0
lvlnboot -R /dev/vg00
  
5.  Activate the root volume group:  vgchange -a y /dev/vg00
will display "successfully changed" if the volume group is successfully activated
  
NOTE:  If the vgchange command fails with "couldn't attach to volume group" or "cross-device link" errors for other physical volumes belonging to the root volume group, use the vgcfgrestore command to also restore the LVM configuration to each physical volume referenced in these error messages.  Before executing the vgcfgrestore command, the following command can be executed to just display the LVM configuration information from the /etc/lvmconf/vg00.conf file and verify that the physical volume in question is listed:
vgcfgrestore -n vg00 -l
NOTE:  The LVM kernel code detects if a failed Physical Volume (PV) has become available and will perform an automatic re-sync of the extents on this PV when the vgchange command is executed with either the -a y or -a e options.  If LVM doesn't see that the PV failed, no automatic synchronization of any mirrorred logical volumes is performed, and in those instances, a vgchange must be followed by a vgsync as in the following example:
vgsync /dev/vg00
  
6. After the mirrors are re-synchronized from the vgchange or the vgsync commands, reboot the system and verify that able to bootup from the original root disk.



如果在install patch后系统无法正常启动,在Main》菜单做如下操作:
Main》boot pri
选择进入ISL模式
ISL》hpux /stand/vmunix.prev

进入系统后做如下操作
cp /stand/vmunix.prev /stand/vmunix

手工创建kernel:
cd /stand/build
/usr/lbin/sysadm/system_prep –s system
vi system #编辑系统文件,做必要的修改
/usr/sbin/mk_kernel –s ./system
mv /stand/system /stand/system.old
mv /stand/vmunix /stand/vmunix.old
cp /stand/build/system /stand
cp /stand/build/vmunix_test /stand/vmunix


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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP