免费注册 查看新帖 |

Chinaunix

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

HP小型机磁盘启动镜像制作问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-05 00:28 |只看该作者 |倒序浏览
装的HP小型机型号 HP4440, 进行操作时, 发现第二磁盘的启动区一直未作成功,请高手帮忙解答, 谢谢!
本地硬盘共两块,分别是c2t1d0, c3t0d0 , 默认操作系统和启动区装在c3t0d0上, 所以将c2t1d0作为新盘加入vg00

     操作步骤如下:
pvcreate -f -B /dev/rdsk/c2t1d0                                        
#add to vg00
vgextend /dev/vg00 /dev/dsk/c2t1d0                       

#make second disk bootable
mkboot /dev/rdsk/c2t1d0                        
#make boot area
mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/c2t1d0

#extend lv image to second disk
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c2t1d0
lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c2t1d0


#set boot
lvlnboot -b /dev/vg00/lvol1  
#set swap
lvlnboot -s /dev/vg00/lvol2
#set dump
lvlnboot -d /dev/vg00/lvol2  
#set root
lvlnboot -r /dev/vg00/lvol3
最后一步操作命令有一提示信息:
lvlnboot: Physical Volume "/dev/dsk/c2t1d0" on which Logical
Volume "/dev/vg00/lvol3" resides is not a Boot Physical Volume.


操作完毕之后, 用lvlnboot -Rv 检查结果:
# lvlnboot -Rv
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
        /dev/dsk/c3t0d0 (0/1/1/1.0.0) -- Boot Disk
        /dev/dsk/c2t1d0 (0/1/1/0.1.0)
Boot: lvol1     on:     /dev/dsk/c3t0d0
                        /dev/dsk/c2t1d0
Root: lvol3     on:     /dev/dsk/c3t0d0
                        /dev/dsk/c2t1d0
Swap: lvol2     on:     /dev/dsk/c3t0d0
                        /dev/dsk/c2t1d0
Dump: lvol2     on:     /dev/dsk/c3t0d0, 0

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
     

而正确结果应该是 : /dev/dsk/c3t0d0 (0/1/1/1.0.0) -- Boot Disk
                             /dev/dsk/c2t1d0 (0/1/1/0.1.0) -- Boot Disk

论坛徽章:
0
2 [报告]
发表于 2006-03-05 20:11 |只看该作者
#make second disk bootable
mkboot /dev/rdsk/c2t1d0                        
这步应该是mkboot -l /dev/rdsk/c2t1d0

论坛徽章:
0
3 [报告]
发表于 2006-03-05 20:13 |只看该作者
做系统镜像要加-l参数的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP