免费注册 查看新帖 |

Chinaunix

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

在系统盘做过镜像的情况下,如何确定系统从哪个盘启动。 [复制链接]

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

如果系统盘做了mirror,如何查看系统是从哪个盘启动的
如果用lvlnboot –v来查看
#lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
        /dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
        /dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
Boot: lvol1     on:     /dev/dsk/c1t2d0
                        /dev/dsk/c2t2d0
Root: lvol3     on:     /dev/dsk/c1t2d0
                        /dev/dsk/c2t2d0
Swap: lvol2     on:     /dev/dsk/c1t2d0
在正常情况下系统从/dev/dsk/c1t2d0引导,但如果在系统启动时被打断,然后
手动更改从c2t2d0启动的话,用这种方法判断就不准确了。
我们可以用下边的命令来准确的判断系统到底哪个盘启动的:
# echo boot_string/s | adb /stand/vmunix /dev/kmem
Error from elf64_getehdr(application core file)
Not an Elf file: No Elf header
boot_string:
boot_string:    disk(0/0/1/1.2.0.0.0.0.0;0)/stand/vmunix

# echo boot_string/s | adb /stand/vmunix /dev/mem
Error from elf64_getehdr(application core file)
Not an Elf file: No Elf header
boot_string:
boot_string:    disk(0/0/1/1.2.0.0.0.0.0;0)/stand/vmunix                        
这是最准确的一种方法。


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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP