umount /dev/sdX1
卸载对应的磁盘
sudo arcconf getconfig 1 ld
确认之前 Logical Drive 已经消失,如果没有执行 arcconf delete 1 logicaldrive xx
删除对应的 Logical Drive, 这里,xx为出问题的 Logical Drive。
sudo arcconf getconfig 1 pd
找到出故障的硬盘,并记录 Reported Channel, Device
编号。
通知机房看问题磁盘,直接更换。若机房无法定位磁盘,让亮灯操作,执行 sudo arcconf SETSTATE 1 DEVICE 0 31 DDD
。
更换好硬盘后,执行 sudo arcconf getconfig 1 pd
检查新换的硬盘是否已识别,新加的硬盘的 State
会是 Ready.
Device #23
Device is a Hard drive
State : Online #更换硬盘后,"State" 会变为 "Ready"
Supported : Yes
Transfer Speed : SATA 3.0 Gb/s
Reported Channel,Device(T:L) : 0,31(31:0) #这里获取编号
Reported Location : Enclosure 0, Slot 23 #获取 Slot 号
Reported ESD(T:L) : 2,0(0:0)
Vendor :
Model : ST32000542AS
Firmware : CC34
Serial number : 6XW1M1V1
Size : 1907729 MB #大小
Write Cache : Enabled (write-back)
FRU : None
S.M.A.R.T. : No
S.M.A.R.T. warnings : 0
Power State : Full rpm
Supported Power States : Full rpm,Powered off,Reduced rpm
SSD : No
MaxIQ Cache Capable : No
MaxIQ Cache Assigned : No
NCQ status : Enabled
Device #24
Device is an Enclosure services device
Reported Channel,Device(T:L) : 2,0(0:0)
Enclosure ID : 0
Type : SES2
Vendor : LSILOGIC
Model : SASX36 A.1
Firmware : 7015
Status of Enclosure services device
执行 arcconf create 1 logicaldrive max volume 0 31 noprompt
创建 Logical Drive, 这里 0 31
就是之前记录的 Channel, Device 编号。
执行 dmesg
检查是否有新的硬盘设备检测到, 分区并创建文件系统。
sudo cfdisk /dev/sdX
sudo mkfs.ext3 /dev/sdX1
修改刚才创建文件系统的分区的 UUID 或者修改 /etc/fstab 中对应的项目的 UUID。
sudo mount -a
挂载硬盘,并修改对应的目录的权限。
开启缓存 sudo arcconf setcache 1 device 0 31 wb
, 这里 0 31
是之前记录的 Channel, Device 编号。
关闭逻辑盘缓存 arcconf setcache 1 LOGICALDRIVE 0 wt
, 这里的 0
是 logicaldrive 的序列号
原文:http://www.cnblogs.com/clovn/p/4844921.html