storcli

storcli工具根据盘符确认磁盘

1、确认target ID

ll /sys/block/
target4:2:11/4:2:11:0/block/sdl  此处11就是Target ID

2、通过target ID 确认硬盘槽位号

——–—————————–本步骤后信息获取都是从/home/wanghaha.txt中通过搜索关键字
storcli64 /call show alilog > /home/wanghaha.txt
去/home/wanghaha.txt中去搜Target ID为11的 Devices IDs
Device IDs: 24 ##此处是24

3、获取Slot Number(硬盘槽位号)

----信息比较靠前Slot Number          12  ##此处是12

4、获取Adapter(RAID卡号)和 Enclosure‘s ID

 Adapter #0Enclosure's ID:    65                       Enclosure index:     1

5、点亮硬盘灯

storcli64 /c0/e65/s12 start locatec0  ---> RAID 号
e65 ---> Enclosure's ID:
s12 ---> Slot Number

6、创建raid

storcli64 /c0 add  vd  r0 size=all drives=65:12

换盘做raid

7、查看raid情况

storcli64 /c0 show
65:8     26 UGood  -   3.637 TB SATA HDD N   N  512B MG04ACA400N      D  

8、查看缓存

./storcli64 /c0 show preservedcache

9、清除缓存

 ./storcli64 /c0/v18 delete preservedcachepreservedcache  清除缓存

10、做raid0

storcli64 /c0 add  vd  r0 size=all drives=65:8

11、做全局热备

./storcli64 /c0/e62/s7 add hotsparedrive

12、做raid5

./storcli64 /c0 add vd r5 drives=62:2-6

13、删除raid

./storcli64 /c0/v1 del

14、设置磁盘状态为good

./storcli64 /c0/e2/s13 set good  force

15、查看硬盘外来信息

./storcli64 /c0/fall show all

16、删除硬盘外来信息

./storcli64 /c0/fall delete

17、做 raid 5,为raid5做热备 并划分磁盘

./storcli64 /c0 add vd type=raid5 Size=837GB,837GB,837GB,837GB,837GB,837GB,837GB,837GB drives=65:2-8 wb ra direct Spares=65:9

18、删除热备

./storcli64 /c0/e66/s21 delete hotsparedrive

Published by

风君子

独自遨游何稽首 揭天掀地慰生平

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注