服務器槽位爲空,新上盤node
一、安裝製做raid的軟件服務器
目前使用的是storcli,把軟件傳至須要換盤作raid的服務器code
二、安裝ci
rpm -ivh storcli-007.0813.0000.0000-1.noarch.rpmget
三、默認目錄it
/opt/MegaRAID/storcliio
能夠建立軟鏈接cli
ln –s /opt/MegaRAID/storcli/storcli64 /bin/storcli軟件
四、raid製做top
查看控制id
cd /opt/MegaRAID/storcli
./storcli64 show
查看新插盤的狀態
./storcli64 /c0 show
若是盤的狀態不是good,得先設置成此狀態
./storcli64 /c0/e24/s7 set good
./storcli64 /c0/e24/s7 show
作raid
./storcli64 /c0 add vd r0 drives=24:7
#24表明eid,7表明slot號
若是製做不成功,能夠關閉jbod或者徹底初始化此磁盤(slot號必定不要搞錯)
./storcli64 /c0/e24/s7 set jbod=off
./storcli64 /c0/e24/s7 start initialization
./storcli64 /c0/e24/s7 show initialization
五、校驗
lsblk #查看有沒有新盤出現
槽位不爲空,更換新盤
一、先肯定須要更換的盤對應的target id lsscsi [root@node-6 storcli]# lsscsi
[0:0:24:0\] enclosu LSI Cobra 0a00 - [0:2:0:0\] disk AVAGO MR9361-8i 4.65 /dev/sda [0:2:1:0\] disk AVAGO MR9361-8i 4.65 /dev/sdb [0:2:2:0\] disk AVAGO MR9361-8i 4.65 /dev/sdc [0:2:3:0\] disk AVAGO MR9361-8i 4.65 /dev/sdd [0:2:4:0\] disk AVAGO MR9361-8i 4.65 /dev/sde [0:2:5:0\] disk AVAGO MR9361-8i 4.65 /dev/sdf [0:2:6:0\] disk AVAGO MR9361-8i 4.65 /dev/sdg [0:2:7:0\] disk AVAGO MR9361-8i 4.65 /dev/sdh [0:2:8:0\] disk AVAGO MR9361-8i 4.65 /dev/sdi 上面命令看全部,下面命令看指定磁盤 udevadm info -q path -n /dev/sdd1 /devices/pci0000:00/0000:00:01.0/0000:01:00.0/host0/target0:2:3/0:2:3:0/block/sdd/sdd1 二、肯定槽位 ./storcli64 show #肯定ctrl id ./storcli64 /c0 show #target id與VD一一映射,經過VD定DG,經過DG定slot號 三、點燈 ./storcli64 /c0/e24/s7 start locate #磁盤會多閃一個燈,顏色跟廠家有關係了 ./storcli64 /c0/e24/s7 stop locate 四、下線 ./storcli64 /c0/e24/s7 set offline 五、拔盤 換成新的硬盤,換盤以後的上線操做跟前面同樣