免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: xzq12900
打印 上一主题 下一主题

求助!solaris系统掉电后启动异常 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2013-04-06 16:40 |只看该作者
本帖最后由 abbend 于 2013-04-06 16:40 编辑

回复 9# xzq12900

1、操作之前先备份/etc/vfstab和/etc/system文件。
2、结合metastat -p和df -k察看对应的c#t#d#s#


不过我建议你修改前,先在ok状态,试试boot disk0还有boot disk1看看能不能正常启动到系统,然后再选择如何操作


   

论坛徽章:
0
12 [报告]
发表于 2013-04-08 20:05 |只看该作者
回复 11# abbend


    首先感谢您的回复!我今天在ok模式下,先检查了机器一些信息如下:
{1} ok probe-scsi-all
/pci@1c,600000/scsi@2,1

/pci@1c,600000/scsi@2
Target 0
  Unit 0   Disk     FUJITSU MAW3073NCSUN72G 1703
Target 1
  Unit 0   Disk     FUJITSU MAW3073NCSUN72G 1703

{1} ok devalias
xnet2                    /pci@1d,700000/pci@1/SUNW,hme@0,1:dhcp,
xnet1                    /pci@1e,600000/pci@3/SUNW,hme@0,1:dhcp,
xnet                     /pci@1e,600000/pci@2/SUNW,hme@0,1:dhcp,
net3                     /pci@1d,700000/network@2,1
net2                     /pci@1d,700000/network@2
net1                     /pci@1f,700000/network@2,1
net                      /pci@1f,700000/network@2
cdrom                    /pci@1e,600000/ide@d/cdrom@0,0:f
ide                      /pci@1e,600000/ide@d
disk3                    /pci@1c,600000/scsi@2/disk@3,0
disk2                    /pci@1c,600000/scsi@2/disk@2,0
disk1                    /pci@1c,600000/scsi@2/disk@1,0
disk0                    /pci@1c,600000/scsi@2/disk@0,0
disk                     /pci@1c,600000/scsi@2/disk@0,0
scsi                     /pci@1c,600000/scsi@2
sc-control               /pci@1e,600000/isa@7/rmc-comm@0,3e8
ttyb                     /pci@1e,600000/isa@7/serial@0,2e8
ttya                     /pci@1e,600000/isa@7/serial@0,3f8
name                     aliases

然后我boot disk0失败了,跟重启时是一样的报错unexpected free inode 304295, run fsck(1M) -o f
然后我boot disk1就起来了,telnet也正常了

这是不是说镜像: d22是好的,d21有问题了?现在我该怎么修复?另外大侠您有QQ吗?真的很想跟你QQ沟通一下。。。。。万分感谢!
d20: Mirror  -----单向镜像
    Submirror 0: d21
      State: Okay
    Submirror 1: d22
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 125510784 blocks (59 GB)

d21: Submirror of d20 ----root单向镜像d20的主子镜像21
    State: Okay
    Size: 125510784 blocks (59 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t0d0s0          0     No            Okay   Yes


d22: Submirror of d20 ----root单向镜像d20的第二个子镜像22
    State: Okay
    Size: 125510784 blocks (59 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t1d0s0          0     No            Okay   Yes

论坛徽章:
0
13 [报告]
发表于 2013-04-08 21:20 |只看该作者
回复 11# abbend


    另外我还有一个概念性的问题不清楚啊,根卷镜像,目的是什么?就是以后启动从镜像启动而非原来的根卷路径启动吗,以此来备份和保护原有的根卷文件系统?

我/dev/dsk下面的输出如下:
lrwxrwxrwx   1 root     root          42 Aug 31  2007 c0t0d0s0 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:a
lrwxrwxrwx   1 root     root          42 Aug 31  2007 c0t0d0s1 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:b
lrwxrwxrwx   1 root     root          42 Aug 31  2007 c0t0d0s2 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:c
lrwxrwxrwx   1 root     root          42 Aug 31  2007 c0t0d0s3 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:d
lrwxrwxrwx   1 root     root          42 Aug 31  2007 c0t0d0s4 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:e
lrwxrwxrwx   1 root     root          42 Aug 31  2007 c0t0d0s5 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:f
lrwxrwxrwx   1 root     root          42 Aug 31  2007 c0t0d0s6 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:g
lrwxrwxrwx   1 root     root          42 Aug 31  2007 c0t0d0s7 -> ../../devices/pci@1e,600000/ide@d/sd@0,0:h
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t0d0s0 -> ../../devices/pci@1c,600000/scsi@2/sd@0,0:a
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t0d0s1 -> ../../devices/pci@1c,600000/scsi@2/sd@0,0:b
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t0d0s2 -> ../../devices/pci@1c,600000/scsi@2/sd@0,0:c
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t0d0s3 -> ../../devices/pci@1c,600000/scsi@2/sd@0,0:d
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t0d0s4 -> ../../devices/pci@1c,600000/scsi@2/sd@0,0:e
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t0d0s5 -> ../../devices/pci@1c,600000/scsi@2/sd@0,0:f
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t0d0s6 -> ../../devices/pci@1c,600000/scsi@2/sd@0,0:g
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t0d0s7 -> ../../devices/pci@1c,600000/scsi@2/sd@0,0:h
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t1d0s0 -> ../../devices/pci@1c,600000/scsi@2/sd@1,0:a
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t1d0s1 -> ../../devices/pci@1c,600000/scsi@2/sd@1,0:b
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t1d0s2 -> ../../devices/pci@1c,600000/scsi@2/sd@1,0:c
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t1d0s3 -> ../../devices/pci@1c,600000/scsi@2/sd@1,0:d
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t1d0s4 -> ../../devices/pci@1c,600000/scsi@2/sd@1,0:e
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t1d0s5 -> ../../devices/pci@1c,600000/scsi@2/sd@1,0:f
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t1d0s6 -> ../../devices/pci@1c,600000/scsi@2/sd@1,0:g
lrwxrwxrwx   1 root     root          43 Aug 31  2007 c1t1d0s7 -> ../../devices/pci@1c,600000/scsi@2/sd@1,0:h


那是不是说我有3块物理上分开的硬盘?
IDE盘c0t0d0
SCSI盘c1t0d0
SCSI盘c1t1d0

在没做镜像之前,启动系统是从c0t0d0s0开始的,做了主镜像之后是从c1t0d0s0开始的,我们还有一个次镜像是从c1t1d0s0开始的。那么说我做的boot disk1就是从c1t1d0s0开始启动的,这样理解对吗?

那么我现在需要修复的应该是fsck /dev/dsk/c1t0d0s0而非fsck /dev/dsk/c0t0d0s0?是这样的吗?

另外我在devalias中看到
ide                      /pci@1e,600000/ide@d
disk3                    /pci@1c,600000/scsi@2/disk@3,0
disk2                    /pci@1c,600000/scsi@2/disk@2,0
disk1                    /pci@1c,600000/scsi@2/disk@1,0
disk0                    /pci@1c,600000/scsi@2/disk@0,0
disk                     /pci@1c,600000/scsi@2/disk@0,0
按照我的理解,我应该只有disk0,disk1,ide  啊,怎么冒出来的disk2和disk3?不明白了。。。

新人上路,很多问题很幼稚,多多包涵啊。。。。。感谢授业解惑!!!



论坛徽章:
0
14 [报告]
发表于 2013-04-10 14:56 |只看该作者
回复 11# abbend


    昨天metareplace -e d20 c1t0d0s0之后,等待N长时间,Submirror d21状态变为OK了。然后metasync d20了一下,重启,root disk0居然好了。这是不是代表没问题了呢?

论坛徽章:
20
申猴
日期:2013-09-12 19:39:05狮子座
日期:2014-07-20 21:19:51寅虎
日期:2014-08-16 18:37:47水瓶座
日期:2014-10-15 18:58:25天蝎座
日期:2015-01-22 18:19:15NBA常规赛纪念章
日期:2015-05-04 22:32:032015亚冠之胡齐斯坦钢铁
日期:2015-06-03 11:28:502015亚冠之吉达阿赫利
日期:2015-09-19 12:41:47午马
日期:2013-09-18 14:36:40戌狗
日期:2013-09-18 14:44:39处女座
日期:2013-09-24 17:46:41CU十二周年纪念徽章
日期:2013-10-24 15:41:34
15 [报告]
发表于 2013-04-10 15:37 |只看该作者
boot  -s  


fsck  -y


reboot -- -r

论坛徽章:
0
16 [报告]
发表于 2013-04-10 16:21 |只看该作者
回复 14# xzq12900

看一下metastat和metadb的状态,如果Submirror 状态都是OK,metadb状态也正常,那么应该是问题不大了。
另外可以看看messages日志和iostat -En对应的硬盘各种errors的数值,如果数值过大或者不停增长,就需要考虑更换硬盘了。
看一下你的eeprom输出,应该是系统镜像的启动盘设置的不全,只设置了disk0盘启动
   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP