我们有一对 Sunfire v20z (带有 LSI MPT 突袭),每个镜像中都有一个驱动器损坏。
bash-2.05# cat /etc/release
Solaris 9 4/04 s9x_u6wos_08a x86
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 22 March 2004
这样就确定了机器类型。让我们看看阵列的健康状况:
# raidctl
RAID Volume RAID RAID Disk
Volume Type Status Disk Status
------------------------------------------------------
c1t0d0 IM DEGRADED c1t0d0 OK
c1t1d0 FAILED
好吧,很简单。由于这些机器不是热插拔的,我关闭了其中一台并更换了驱动器。启动机器时,它会发出一些警告,提示阵列已降级,内核消息在系统启动后显示此信息:
May 13 15:21:54 ns-2.vancouver.ipapp.com scsi: [ID 365881 kern.info] /pci@0,0/pci1022,7450@a/pci17c2,10@4 (mpt0):
May 13 15:21:54 ns-2.vancouver.ipapp.com Rev. 8 LSI, Inc. 1030 found.
May 13 15:21:54 ns-2.vancouver.ipapp.com scsi: [ID 365881 kern.info] /pci@0,0/pci1022,7450@a/pci17c2,10@4 (mpt0):
May 13 15:21:54 ns-2.vancouver.ipapp.com mpt0 supports power management.
May 13 15:21:54 ns-2.vancouver.ipapp.com pcplusmp: [ID 637496 kern.info] pcplusmp: pci1000,30 (mpt) instance 0 vector 0x1b ioapic 0x3 intin 0x3 is bound to cpu 0
May 13 15:22:02 ns-2.vancouver.ipapp.com scsi: [ID 365881 kern.info] /pci@0,0/pci1022,7450@a/pci17c2,10@4 (mpt0):
May 13 15:22:02 ns-2.vancouver.ipapp.com mpt0 Firmware version v1.3.27.0 (IM/IME)
May 13 15:22:02 ns-2.vancouver.ipapp.com scsi: [ID 365881 kern.info] /pci@0,0/pci1022,7450@a/pci17c2,10@4 (mpt0):
May 13 15:22:02 ns-2.vancouver.ipapp.com mpt0: IOC Operational.
May 13 15:22:13 ns-2.vancouver.ipapp.com scsi: [ID 107833 kern.warning] WARNING: /pci@0,0/pci1022,7450@a/pci17c2,10@4 (mpt0):
May 13 15:22:13 ns-2.vancouver.ipapp.com Volume 0 is degraded
到目前为止,看起来一切都很正常。但现在当我运行 raidctl 时,阵列不见了!
# raidctl
No RAID volumes found
哦,两个磁盘对系统都是可见的
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <DEFAULT cyl 34999 alt 2 hd 16 sec 128>
/pci@0,0/pci1022,7450@a/pci17c2,10@4/sd@0,0
1. c1t1d0 <DEFAULT cyl 34999 alt 2 hd 16 sec 128>
/pci@0,0/pci1022,7450@a/pci17c2,10@4/sd@1,0
系统知道卷存在并且知道其状态,但我无法将第二个驱动器添加到镜像并修复降级的阵列。Unix 迷们,请帮忙!