MegaCli64工具磁盘修复处理

#查看机器型号
dmidecode -t 1在这里插入图片描述
##查看磁盘分区情况
lsblk
##查看raid状态,可定位故障的Slot Number
/opt/MegaRAID/MegaCli/MegaCli64 -pdlist -a0|egrep ‘Slot Number|Firmware state’
在这里插入图片描述
##查看raid信息,判断是做raid x
##/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll | grep RAID
在这里插入图片描述
##确认Enclosure Device ID
/opt/MegaRAID/MegaCli/MegaCli64 -PDlist -a0|grep “Enclosure Device”|head -1
在这里插入图片描述
##处于JBOD状态的硬盘,变更为unconfigured good状态
/opt/MegaRAID/MegaCli/MegaCli64 -pdmakegood -physdrv [ E n c l o s u r e D e v i c e I D : Enclosure Device ID: EnclosureDeviceID:Slot Number] -force -a0
/opt/MegaRAID/MegaCli/MegaCli64 -pdmakegood -physdrv [32:4] -force -a0
/opt/MegaRAID/MegaCli/MegaCli64 -pdlist -a0|egrep ‘Slot Number|Firmware state’
在这里插入图片描述在这里插入图片描述##处于unconfigured good状态做raid 0
/opt/MegaRAID/MegaCli/MegaCli64 -Cfgldadd -r0[ E n c l o s u r e D e v i c e I D : Enclosure Device ID: EnclosureDeviceID:Slot Number] -wb -a0
/opt/MegaRAID/MegaCli/MegaCli64 -Cfgldadd -r0[32:4] -wb -a0
##查看raid状态是否为Online
/opt/MegaRAID/MegaCli/MegaCli64 -pdlist -a0|egrep ‘Slot Number|Firmware state’
在这里插入图片描述
#格式化磁盘
parted -s /dev/盘符 mklabel gpt
parted -s /dev/盘符 mkpart primary 1 100%
mkfs.ext4 -q -T largefile /dev/盘符 【mkfs.ext4 -F /dev/盘符 -N inode值】
blkid /dev/$sd
vim /etc/fstab
#systemctl daemon-reload
mount /data2

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值