LSI sg 点灯命令

该博客介绍了如何通过bash脚本和sg_ses命令来设置存储设备的故障指示灯,并使用sg_map检查设备信息。同时展示了如何利用ledctl命令控制NVMe设备的LED状态。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

#!/bin/bash
for ((index=0; index<1;index++))dosgses−−set=fault−−index=arr,1;index++)) do sg_ses --set=fault --index=arr,1;index++))dosgsesset=faultindex=arr,index /dev/sg$2
done

单独使用:sg_ses --set=fault --index=arr,0 /dev/sg12
sg_ses --set=locate --index=arr,1 /dev/sg12

sg_map -i 查看背板版本号
[root@localhost ~]# sg_map -i
/dev/sg0 /dev/sda SmartIO Logical Drive 1 V1.0
/dev/sg1 /dev/sdb SmartIO Logical Drive 2 V1.0
/dev/sg2 /dev/sdc SmartIO Logical Drive 3 V1.0
/dev/sg3 /dev/sdd SmartIO Logical Drive 4 V1.0
/dev/sg4 /dev/sde SmartIO Logical Drive 5 V1.0
/dev/sg5 /dev/sdf SmartIO Logical Drive 6 V1.0
/dev/sg6 /dev/sdg SmartIO Logical Drive 7 V1.0
/dev/sg7 /dev/sdh SmartIO Logical Drive 8 V1.0
/dev/sg8 /dev/sdi SmartIO Logical Drive 9 V1.0
/dev/sg9 /dev/sdj SmartIO Logical Drive 1 V1.0
/dev/sg10 /dev/sdk SmartIO Logical Drive 1 V1.0
/dev/sg11 GOOXIBM 2U12SXP 24Sx12G B014
/dev/sg12 ADAPTEC Smart Adapter 3.52
[root@localhost ~]#

ledctl locate=/dev/nvme1n1
ledctl normal=/dev/nvme1n1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值