Chinaunix首页 | 论坛 | 博客
  • 博客访问: 126512
  • 博文数量: 30
  • 博客积分: 2090
  • 博客等级: 大尉
  • 技术积分: 301
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-27 09:11
文章分类

全部博文(30)

文章存档

2011年(2)

2010年(2)

2009年(5)

2008年(21)

我的朋友

分类:

2008-08-04 22:04:49

如果系统盘做了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                       

这是最准确的一种方法。

阅读(1716) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~