云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > MegaCli 命令使用指南

MegaCli 命令使用指南

  • 62 次阅读
  • 3 次下载
  • 2025/5/1 8:51:00

97.查看电池状态信息(Display BBU Status Information)

MegaCli -AdpBbuCmd -GetBbuStatus -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -GetBbuStatus -aALL

98.查看电池容量(Display BBU Capacity Information)

MegaCli -AdpBbuCmd -GetBbuCapacityInfo -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -GetBbuCapacityInfo –aALL

99.查看电池设计参数(Display BBU Design Parameters)

MegaCli -AdpBbuCmd -GetBbuDesignInfo -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -GetBbuDesignInfo –aALL

100.

查看电池属性(Display Current BBU Properties)

MegaCli -AdpBbuCmd -GetBbuProperties -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -GetBbuProperties –aALL

101.

设置电池为学习模式为循环模式(Start BBU Learning Cycle)

Description Starts the learning cycle on the BBU. No parameter is needed for this option.

MegaCli -AdpBbuCmd -BbuLearn -aN|-a0,1,2|-aALL

102.

设置磁盘的缓存模式和访问方

式 (Change Virtual Disk Cache and Access Parameters)

Description Allows you to change the following virtual disk parameters: -WT (Write through), WB (Write back): Selects write policy.

-NORA (No read ahead), RA (Read ahead), ADRA (Adaptive read ahead): Selects read policy.

-Cached, -Direct: Selects cache policy. -RW, -RO, Blocked: Selects access policy. -EnDskCache: Enables disk cache. -DisDskCache: Disables disk cache.

MegaCli -LDSetProp { WT | WB|NORA |RA | ADRA|-Cached|Direct} | {-RW|RO|Blocked} | {-Name[string]} |

{-EnDskCache|DisDskCache} –Lx | -L0,1,2|-Lall -aN|-a0,1,2|-aALL MegaCli -LDSetProp WT -L0 -a0

103.

显示磁盘缓存和访问方式(Display Virtual Disk Cache and Access Parameters)

MegaCli -LDGetProp -Cache | -Access | -Name | -DskCache -Lx|-L0,1,2| -Lall -aN|-a0,1,2|-aALL

Displays the cache and access policies of the virtual disk(s): -WT (Write through), WB (Write back): Selects write policy.

-NORA (No read ahead), RA (Read ahead), ADRA (Adaptive read ahead): Selects read policy.

-Cache, -Cached, Direct: Displays cache policy. -Access, -RW, -RO, Blocked: Displays access policy. -DskCache: Displays physical disk cache policy.

104.

105. Megaraid 必知必会 使用LSI的megaraid可以对raid进行有效监控。别的厂商比如HP,IBM也有自己的raid API MegaCli -ldinfo -lall -aall

查询raid级别,磁盘数量,容量,条带大小。 MegaCli -cfgdsply -aALL |grep Policy 查询控制器cache策略

MegaCli -LDSetProp WB -L0 -a0 设置write back功能

MegaCli -LDSetProp CachedBadBBU -L0 -a0 设置即使电池坏了还是保持WB功能 MegaCli -AdpBbuCmd -BbuLearn a0 手动充电

MegaCli -FwTermLog -Dsply -aALL 查询日志

显示适配器个数: MegaCli -adpCount

显示所有适配器信息: MegaCli -AdpAllInfo -aAll Critical Disks : 0 Failed Disks : 0

显示所有逻辑磁盘组信息: MegaCli -LDInfo -LALL -aAll 显示所有的物理信息: MegaCli -PDList -aAll

Media Error Count: 0 Other Error Count: 0

查看充电状态: MegaCli -AdpBbuCmd -GetBbuStatus -aALL Learn Cycle Requested : No Fully Charged : Yes

显示BBU(后备电池)状态信息: MegaCli -AdpBbuCmd -GetBbuStatus -aALL

显示BBU容量信息: MegaCli -AdpBbuCmd -GetBbuCapacityInfo -aALL

显示BBU设计参数: MegaCli -AdpBbuCmd -GetBbuDesignInfo -aALL 显示当前BBU属性: MegaCli -AdpBbuCmd -GetBbuProperties -aALL 显示Raid卡型号,Raid设置,Disk相关信息: MegaCli -cfgdsply -aALL 查看Cache 策略设置: MegaCli -cfgdsply -aALL |grep -i Policy Current Cache Policy: WriteBack, ReadAheadNone, Direct, Write Cache OK if Bad BBU

查看充电进度百分比: MegaCli -AdpBbuCmd -GetBbuStatus -aALL

各种设备和磁盘的不同状态:

Device |Normal|Damage|Rebuild|Normal

Virtual Drive |Optimal|Degraded|Degraded|Optimal

Physical Drive |Online|Failed –> Unconfigured|Rebuild|Online 106. 107. 108. 109. 110. 111. 112. 113. 114. 115. 116. 117. 118. 119. 120. 121. 122. 123. 124.

6、 通过脚本检测RAID 磁盘状态 Linux下脚本 #!/bin/bash #check raid disk status

MEGACLI=\

$MEGACLI -pdlist -aALL | grep \

rint $1}' >/tmp/fireware.log

$MEGACLI -pdlist -aALL | grep -E \>/tmp/disk.log

for i in `cat < /tmp/disk.log` do if [ $i -ne 0 ] then

curl \ fi done

for i in `cat < /tmp/fireware.log` do

if [ $i != Online ] then

curl \

125. 126. 127. 128. 129. 130. 131. 132. 133. 134. 135. 136. 137. 138. 139. 140. 141. 142. 143. 144. 145. 146. 147. 148. 149. 150. 151.

fi done

Windows 下脚本

Windows下脚本用的工具是gnu for windows平台的一些软件,

如 bash grep awk cat

通过bash直接调用脚本

如:G:\\raid_check\%unixtools>bash.exe G:\\disk.sh #check raid disk status

MEGACLI=\ GREP=\ AWK=\ CAT=\ CURL=\

$MEGACLI -pdlist -aALL | $GREP \

F , '{print $1}' >//c/fireware.log

$MEGACLI -pdlist -aALL | $GREP -E \$2}' > //c/disk.log

for i in `$CAT c:/disk.log` do if [ $i -ne 0 ] then

$CURL \ fi done

for i in `$CAT c:/fireware.log` do

if [ $i != Online ] then

$CURL \ fi

搜索更多关于: MegaCli 命令使用指南 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

97.查看电池状态信息(Display BBU Status Information) MegaCli -AdpBbuCmd -GetBbuStatus -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -GetBbuStatus -aALL 98.查看电池容量(Display BBU Capacity Information) MegaCli -AdpBbuCmd -GetBbuCapacityInfo -aN|-a0,1,2|-aALL MegaCli -AdpBbuCmd -GetBbuCapacityInfo –aALL 99.查看电池设计参数(Display BBU Design Parameters) MegaCli -AdpBbuCmd -GetBbuDesignInfo -a

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com