MegaCli 命令使用指南

2020-04-16 10:26

MegaCli 命令使用指南

1. 命令使用:

2. #/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL 查raid级别 3. #/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL 查raid卡信息 4. #/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL 查看硬盘信息 5. #/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aAll 查看电池信息

6. #/opt/MegaRAID/MegaCli/MegaCli64 -FwTermLog -Dsply -aALL 查看raid卡日志 7. #/opt/MegaRAID/MegaCli/MegaCli64 -adpCount 【显示适配器个数】

8. #/opt/MegaRAID/MegaCli/MegaCli64 -AdpGetTime –aALL 【显示适配器时间】 9. #/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aAll 【显示所有适配器信息】 10. #/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll 【显示所有逻辑磁盘组信息】 11. #/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll 【显示所有的物理信息】

12. #/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL |grep 'Charger Status'

【查看充电状态】

13. #/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL【显示BBU状态信息】 14. #/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuCapacityInfo -aALL【显示BBU容量信息】 15. #/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuDesignInfo -aALL 【显示BBU设计参数】 16. #/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuProperties -aALL 【显示当前BBU属性】 17. #/opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL 【显示Raid卡型号,Raid设置,Disk相关信

息】

18. 3.磁带状态的变化,从拔盘,到插盘的过程中。 19. Device |Normal|Damage|Rebuild|Normal

20. Virtual Drive |Optimal|Degraded|Degraded|Optimal

21. Physical Drive |Online|Failed –> Unconfigured|Rebuild|Online 22. 4.查看磁盘缓存策略

23. #/opt/MegaRAID/MegaCli/MegaCli64 -LDGetProp -Cache -L0 -a0 24. or

25. #/opt/MegaRAID/MegaCli/MegaCli64 -LDGetProp -Cache -L1 -a0 26. or

27. #/opt/MegaRAID/MegaCli/MegaCli64 -LDGetProp -Cache -LALL -a0 28. ro

29. #/opt/MegaRAID/MegaCli/MegaCli64 -LDGetProp -Cache -LALL -aALL 30. ro

31. #/opt/MegaRAID/MegaCli/MegaCli64 -LDGetProp -DskCache -LALL -aALL 32. 5.设置磁盘缓存策略 33. 缓存策略解释: 34.

35. WT (Write through 36. WB (Write back) 37. NORA (No read ahead)

38. RA (Read ahead)

39. ADRA (Adaptive read ahead) 40. Cached 41. Direct 42. 例子:

43. #/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp WT|WB|NORA|RA|ADRA -L0 -a0 44. or

45. #/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp -Cached|-Direct -L0 -a0 46. or

47. enable / disable disk cache

48. #/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp -EnDskCache|-DisDskCache -L0 -a0 49. 6.创建一个 raid5 阵列,由物理盘 2,3,4 构成,该阵列的热备盘是物理盘 5

50. #/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r5 [1:2,1:3,1:4] WB Direct -Hsp[1:5] -a0 51. 7.创建阵列,不指定热备

52. #/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r5 [1:2,1:3,1:4] WB Direct -a0 53. 8.删除阵列

54. #/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdDel -L1 -a0 55. 9.在线添加磁盘

56. #/opt/MegaRAID/MegaCli/MegaCli64 -LDRecon -Start -r5 -Add -PhysDrv[1:4] -L1 -a0 57. 10.阵列创建完后,会有一个初始化同步块的过程,可以看看其进度。 58. #/opt/MegaRAID/MegaCli/MegaCli64 -LDInit -ShowProg -LALL -aALL 59. 或者以动态可视化文字界面显示

60. #/opt/MegaRAID/MegaCli/MegaCli64 -LDInit -ProgDsply -LALL -aALL 61. 11.查看阵列后台初始化进度

62. #/opt/MegaRAID/MegaCli/MegaCli64 -LDBI -ShowProg -LALL -aALL 63. 或者以动态可视化文字界面显示

64. #/opt/MegaRAID/MegaCli/MegaCli64 -LDBI -ProgDsply -LALL -aALL 65. 12.指定第 5 块盘作为全局热备

66. #/opt/MegaRAID/MegaCli/MegaCli64 -PDHSP -Set [-EnclAffinity] [-nonRevertible] -PhysDrv

[1:5] -a0

67. 13.指定为某个阵列的专用热备

68. #/opt/MegaRAID/MegaCli/MegaCli64 -PDHSP -Set [-Dedicated [-Array1]] [-EnclAffinity] [-nonRevertible] -PhysDrv[1:5] -a0 69. 14.删除全局热备

70. #/opt/MegaRAID/MegaCli/MegaCli64 -PDHSP -Rmv -PhysDrv[1:5] -a0 71. 15.将某块物理盘下线/上线

72. #/opt/MegaRAID/MegaCli/MegaCli64 -PDOffline -PhysDrv [1:4] -a0 73. #/opt/MegaRAID/MegaCli/MegaCli64 -PDOnline -PhysDrv [1:4] -a0 74. 16.查看物理磁盘重建进度

75. #/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv [1:5] -a0 76. 或者以动态可视化文字界面显示

77. #/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ProgDsply -PhysDrv [1:5] -a0 78.

79. 磁带状态的变化,从拔盘,到插盘的过程中:

80. Device |Normal|Damage|Rebuild|Normal

81. Virtual Drive |Optimal|Degraded|Degraded|Optimal

82. Physical Drive |Online|Failed –> Unconfigured|Rebuild|Online

83.1、 查看RAID级别

84.

85.2、 查看RAID卡信息,主要输出RAID卡的一些配置信息

86.87.

88. RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0

Size : 1.086 TB

State : Optimal Strip Size : 128 KB

Number Of Drives per span:4 //表示每4个物理盘做成一个RAID1盘组 Span Depth : 2 //表示共2个RAID1盘组做成了RAID10

89.

90.3、 查看所有硬盘的信息 91./opt/MegaCli64 -pdlist –aALL

92.

93.4、 查看当前raid缓存状态,raid缓存状态设置为wb的话要注意电池放电事宜,

设置电池放电模式为自动学习模式

94./opt/MegaRAID/MegaCli/MegaCli64 -ldgetprop -dskcache -lall -aall

95.

96.5、 raid 电池设置相关

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.


MegaCli 命令使用指南.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:公关与沟通

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: