2022-12-17
1 分钟阅读
这Megacli是操作磁盘Raid的常用软件,日常用的大多是dell家的机器,都是这软件,记录一下。 1#!/bin/sh 2#/opt/MegaRAID/MegaCli/MegaCli64 -PDList -a0 3/opt/MegaRAID/MegaCli/MegaCli64 -PDList -a0 | grep -A1 "Enclosure Device" 4 5# clear foreign disk 6#/opt/MegaRAID/MegaCli/MegaCli64 -cfgforeign -scan