分类: 其他UNIX
2014-05-23 16:57:49
一台IBM小型机,带RAID卡,内置3块硬盘,做RAID5,无热备
第2块硬盘亮黄色故障灯
备份完数据后,为了安全,停止应用对硬盘的访问
执行lsdev –Cc pdisk/hdisk、errpt命令查看系统是否有硬盘报错
用diag->Task selection -> RAID Array Manager ->
IBM SASDisk Array Manager ->List IBM SASDisk Array configuration检查raid信息和pdisk 的状态
hdisk0 0B-08-ff-0,0 Degraded RAID 5 Array 484.2GB
pdisk0 0B-08-00-5,0 Failed Array Member 242.8GB
pdisk1 0B-08-01-5,0 Active Array Member 242.8GB
pdisk2 0B-08-00-3,0 Active Array Member 242.8GB
用以下操作再次确认硬盘槽位信息:
Diag->Task Selection->RAID Array Manager->IBM SASDisk Array Manager-> Diagnostics and Recovery Options->SCSI and SCSI RAID Hot Plug Manager-> Identify a Device Attached to a SCSI Hot Swap Enclosure Device
选择对应的硬盘,按F7确认硬盘所在的槽位(磁盘的黄灯在闪烁)
diag?
Task Selection?
RAID Array Manager?
IBM SASDisk Array Manager?
Diagnostics and Recovery Options?
SCSI and SCSI RAID Hot Plug Manager?
Replace/Remove a Device Attached to an SCSI Hot Swap Enclosure Device
把故障硬盘更换,回车
然后按F3回到上一层菜单
SCSI and SCSI RAID Hot Plug Manager
Configure Added/Replaced Devices
2) 更换硬盘后,回到
diag->
Task selection ->
RAID Array Manager ->
IBM SASDisk Array Manager ->
List IBM SAS Disk Array configuration
可以看到pdiskX的状态是failed,比如下图:
3) hdisk0 0B-08-ff-0,0 Degraded RAID 5 Array 484.2GB
pdisk0 0B-08-00-5,0 Failed Array Member 242.8GB
pdisk1 0B-08-01-5,0 Active Array Member 242.8GB
pdisk2 0B-08-00-3,0 Active Array Member 242.8GB
diag->
Task selection ->
RAID Array Manager ->
IBM SASDisk Array Manager ->
Reconstruct a IBM SASDisk Array
选择新产生的磁盘pdisk0进行重建(对146GB HDD大概需要4小时)
重建有进度显示,可以退出重建在后台执行
diag->
Task selection ->
RAID Array Manager ->
IBM SASDisk Array Manager ->
List IBM SASDisk Array configuration
七、 确认硬盘没问题,启动应用