WriteThrough

[ ~]#/opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aall | grep Policy:
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU

[ ~]#/opt/MegaRAID/MegaCli/MegaCli64 -LdSetProp WB -Lall -aAll

Learn cycle is active currently

So policy Change to WB will not come into effect immediately

Set Write Policy to WriteBack on Adapter 0, VD 0 (target id: 0) success
Learn cycle is active currently

So policy Change to WB will not come into effect immediately

Set Write Policy to WriteBack on Adapter 0, VD 1 (target id: 1) success
Learn cycle is active currently

So policy Change to WB will not come into effect immediately

Set Write Policy to WriteBack on Adapter 0, VD 2 (target id: 2) success
Learn cycle is active currently

So policy Change to WB will not come into effect immediately

Set Write Policy to WriteBack on Adapter 0, VD 3 (target id: 3) success
Learn cycle is active currently

So policy Change to WB will not come into effect immediately

Set Write Policy to WriteBack on Adapter 0, VD 4 (target id: 4) success
Learn cycle is active currently

So policy Change to WB will not come into effect immediately

Set Write Policy to WriteBack on Adapter 0, VD 5 (target id: 5) success
Learn cycle is active currently

So policy Change to WB will not come into effect immediately

Set Write Policy to WriteBack on Adapter 0, VD 6 (target id: 6) success
Learn cycle is active currently

So policy Change to WB will not come into effect immediately

Set Write Policy to WriteBack on Adapter 0, VD 7 (target id: 7) success

Exit Code: 0x00

[ ~]#/opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aall | grep Policy:
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU
Default Cache Policy: WriteBack, ReadAhead, Cached, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU

raid卡進入學習週期。以上是手動執行megacli命令查詢到的結果。

lsi megaraid每過一段時間(一般爲1個月或3個月)進行放電和充電一次,進行電池校準以延長電池的使用壽命。
每次學習週期時間的長短要看電池充放電的速度,一般幾個小時到幾十個小時不等。
在學習週期期間raid卡會自動將緩存策略設置爲WriteThrough, ReadAhead, Cached, No Write Cache if Bad BBU,並且不能被設置成WriteBack,會導致性能有所下降。

使用lich.node --disk_check --cache 會打印Learn cycle is active currently,So policy Change to WB will not come into effect immediately(目前是學習週期,設置可能暫時不會生效)
crontab 中自動執行的 lich.node --disk_check --cache則會在/opt/mds/log/disk_cache.log中記錄Learn cycle is active currently,So policy Change to WB will not come into effect immediately
使用lich.node --disk_check --json查看時會有一個cache_stat字段 標示爲:“Learn” .其它情況暫時標示爲“Unknow”

新建文件

導出  PDF  HTML  TXT


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章