Itanium服务器
1753428 成员
4958 在线
108793 解答
新建帖子

主机内置raid盘MISSING状态更换步骤

 
yanghuanheng
见习投稿人

主机内置raid盘MISSING状态更换步骤

IVR1:/#sasmgr get_info -D /dev/sasd1 -q raid Thu Jul 29 16:44:59 2010 ---------- LOGICAL DRIVE 7 ---------- Raid Level : RAID 1 Volume sas address : 0xa04e21c191b7232 Device Special File : /dev/rdsk/c2t0d0 Raid State : DEGRADED Raid Status Flag : ENABLED Raid Size : 139898 Rebuild Rate : 0.00 % Rebuild Progress : 100.00 % Participating Physical Drive(s) : SAS Address Enc Bay Size(MB) Type State 0x5000cca000917b3d 1 8 140014 PRIMARY ONLINE 0x0 0 0 140014 SECONDARY MISSING #一般情况为Failed,此处是MISSING,当盘坏了的时候重启一下可能会发生这一情况。和鬼盘产生原理类似。 看到这种状态把新盘插进去之后,绿灯闪了几下就灭了。丝毫没有做rebuild的迹象。 IVR1:/#sasmgr get_info -D /dev/sasd1 -q phy=all Thu Jul 29 16:45:09 2010 Info for PHY ID : 0 PHY Health : UP Port SAS Address : 0x500600000001c270 Attached SAS Address : 0x5000cca000917b3d Current Link Rate : 3 Gbps Max Link Rate : 3 Gbps Info for PHY ID : 1 PHY Health : UP Port SAS Address : 0x500600000001c271 Attached SAS Address : 0x5000cca000917d75 Current Link Rate : 3 Gbps Max Link Rate : 3 Gbps Info for PHY ID : 2 PHY Health : DOWN Port SAS Address : 0x0 Attached SAS Address : 0x0 Current Link Rate : 1.5 Gbps Max Link Rate : 1.5 Gbps Info for PHY ID : 3 PHY Health : DOWN Port SAS Address : 0x0 Attached SAS Address : 0x0 Current Link Rate : 1.5 Gbps Max Link Rate : 1.5 Gbps ...... # 进一步确认状态盘是好的并非DOA,也可以把新盘插到别的槽位做dd测试。 解决方法: 1. sasmgr add -D /dev/sasd1 -q raid -q spare -q enc_bay=1:7 WARNING: Make sure that the spare disks size is greater than or equal to atleast the size of one of the physical disks. This operation will overwrite the data on the disks. Do you want to continue ?(y/n) [n]... yes WARNING: This operation may take a few seconds. Spare drive is added successfully. # 此处小心,槽位不要弄错。Enc_bay= 1:7 就是指第7个槽位的盘,也就是新盘。 2. sasmgr get_info -D /dev/sasd1 -q raid Tue Aug 3 14:57:54 2010 ---------- LOGICAL DRIVE 7 ---------- Raid Level : RAID 1 Volume sas address : 0xa04e21c191b7232 Device Special File : /dev/rdsk/c2t0d0 Raid State : DEGRADED Raid Status Flag : ENABLED RESYNC IN PROGRESS Raid Size : 139898 Rebuild Rate : 0.00 % Rebuild Progress : 0.22 % Participating Physical Drive(s) : SAS Address Enc Bay Size(MB) Type State 0x5000cca000917b3d 1 7 140014 PRIMARY ONLINE 0x5000cca00a925c1d 1 8 140014 SECONDARY ONLINE #做完上面步骤之后应该开始做rebuilding了 3. IVR1:/#sasmgr delete -D /dev/sasd1 -q raid -q spare WARNING: This is a DESTRUCTIVE operation. This might result in failure of current I/O requests. Do you want to continue ?(y/n) [n]... yes Spare drive is deleted successfully. IVR1:/# IVR1:/#sasmgr get_info -D /dev/sasd1 -q raid Tue Aug 3 16:33:50 2010 ---------- LOGICAL DRIVE 7 ---------- Raid Level : RAID 1 Volume sas address : 0xa04e21c191b7232 Device Special File : /dev/rdsk/c2t0d0 Raid State : OPTIMAL Raid Status Flag : ENABLED Raid Size : 139898 Rebuild Rate : 0.00 % Rebuild Progress : 100.00 % Participating Physical Drive(s) : SAS Address Enc Bay Size(MB) Type State 0x5000cca000917b3d 1 7 140014 PRIMARY ONLINE 0x5000cca00a925c1d 1 8 140014 SECONDARY ONLINE