Posted on 2015/12/03 17:06
Filed Under 리눅스기술문서/팁앤테크 조회수: view 11022

MegaCli 를 이용한 LSI RAID 설정 관리하기

MegaCLI

From Scott Nottingham

Jump to: navigation, search

Contents

[hide] ◾1 Set time and date on controller ◾2 Show time and date ◾3 Force BBU learn cycle ◾4 Set controller to use WB cached mode even if BBU is bad ◾5 Set controller to use “WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU” policy ◾6 Show Virtual Drive Cache Parameters ◾7 show physical device info ◾8 Set Write policy to Cached WriteBack ◾9 Controller Properties ◾10 Display Specified Controller Properties ◾11 Check Status of BBU ◾12 Display BBU Capacity ◾13 Display Virtual Drive Information ◾14 Display the Number of Virtual Drives ◾15 Display Total Number of Drives ◾16 Display Physical Error Counters ◾17 Check Enclosure Info

Set time and date on controller
/opt/MegaRAID/MegaCli/MegaCli –AdpSetTime yyyymmdd HH:mm:ss -aN|-a0,1,2|-aALL

Show time and date
/opt/MegaRAID/MegaCli/MegaCli –AdpGetTime -aN

Force BBU learn cycle
/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -BbuLearn -aALL

Set controller to use WB cached mode even if BBU is bad
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp CachedBadBBU -Lall -aAll

Set controller to use “WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU” policy
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp WB -Lall -aAll
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp ADRA -Lall -aAll
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp Direct -Lall -aAll
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp NoCachedBadBBU -Lall -aAll

Show Virtual Drive Cache Parameters
/opt/MegaRAID/MegaCli/MegaCli64 -LDGetProp -Cache -Lall -aAll

show physical device info
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll

Set Write policy to Cached WriteBack
/opt/MegaRAID/MegaCli/MegaCli64 -LDSetProp WB -LAll -aAll

Controller Properties

Displays information about the controller, including cluster state, BIOS, alarm, firmware version, BIOS version, battery charge counter value, rebuild rate, bus number/device number, present RAM, memory size, serial number of the board, and SAS address.
MegaCli64 -AdpAllinfo -aAll

Display Specified Controller Properties
MegaCli –AdpGetProp CacheFlushInterval | RebuildRate | PatrolReadRate|
BgiRate | CCRate | ReconRate | SpinupDriveCount | SpinupDelay |
CoercionMode | PredFailPollInterval | ClusterEnable | BatWarnDsbl |
EccBucketSize | EccBucketLeakRate | EccBucketCount | AlarmDsply
AbortCCOnError | AutoDetectBackPlaneDsbl | CopyBackDsbl |
LoadBalanceMode | SMARTCpyBkEnbl | SSDSMARTCpyBkEnbl |
MaintainPdFailHistoryEnbl | EnblSpinDownUnConfigDrvs |
EnblSSDPatrolRead | NCQDsply | UseFDEOnlyEncrypt | WBSupport |
AutoEnhancedImportDsply | PrCorrectUncfgdAreas -aN|-a0,1,2|-aALL

Check Status of BBU
MegaCli64 -adpBbuCmd -GetBbuStatus -aAll

Display BBU Capacity
MegaCli64 -AdpBbuCmd -GetBbuCapacityInfo -aAll

Display Virtual Drive Information

Displays information about the virtual drive(s) on the selected controller(s). This information includes the name, RAID level, RAID level qualifier, capacity in megabytes, state, stripe size, number of drives, span depth, cache policy, access policy, and ongoing activity progress, if any, including initialization, background initialization, consistency check, and reconstruction.
MegaCli64 -LDInfo -Lall -aAll

Display the Number of Virtual Drives
MegaCli64 -LDGetNum -aAll

Display Total Number of Drives
MegaCli64 -PDGetNum -aAll

Display Physical Error Counters
MegaCli64 -PhyErrorCounters -aAll

Check Enclosure Info
MegaCli64 -EncInfo -aAll

Writer profile
author image
-아랑 -
2015/12/03 17:06 2015/12/03 17:06

트랙백 주소 : 이 글에는 트랙백을 보낼 수 없습니다

About

by 서진우
Twitter :@muchunalang

Counter

• Total
: 3933869
• Today
: 232
• Yesterday
: 1438