From: Polin Wei
1.先依照一般程序設定好3PAR的CPG(Common Provisioning Groups)與VV(Virtual Volumes)
2.查詢SSD的可用空間
cli% showspace -p -devtype SSD -t r1 -ha mag
--Estimated(MB)---
RawFree UsableFree
126976 63488
3.建立flashcache(Ex:128GB) (PS:請注意剛建好VV有可能無法立即設定flashcache,需等storage initial完成後才能建立,否則會出現要求ha mag的錯誤訊息)
cli% createflashcache 128g
4.查詢flashcache狀態(系統會分Node切割)
cli% showflashcache
Node Mode State Size Used%
0 SSD normal 196608 0
1 SSD normal 196608 0
-------------------------------
2 total 393216
5.設定後還需要指定套用的vvset才能生效,否則只是宣告一個Cache空間而已,並沒有任何效用~
(Ex:[vvset_name]:vv1_raid1、[vv_name]:vv1_raid1_01~03)
cli% createvvset VVSet_FS
cli% createvvset -add VVSet_FS P7200-NL-R6-FS
6.指定flashcache套用到剛剛建立[vvset1_raid1]的vvset
cli% setflashcache enable vvset:VVSet_FS
7.查詢目前已經套用flashcache的vvset
cli% showflashcache -vvset
Id VVSetName AFCPolicy
0 VVSet_PLM enabled
1 VVSet_NOTES enabled
2 VVSet_FS enabled
---------------------------
3 total
8.查詢flashcache的使用狀態
cli% statcache
15:12:35 04/22/2014 ------- Current -------- -------- Total ---------
CMP FMP Total CMP FMP Total
Node Type Accesses Hit% Hit% Hit% Accesses Hit% Hit% Hit%
0 Read 0 0 0 0 0 0 0 0
0 Write 0 0 0 0 0 0 0 0
1 Read 0 0 0 0 0 0 0 0
1 Write 0 0 0 0 0 0 0 0
Internal Flashcache Activity
----- Current ------ ------- Total --------
Node Type Accesses IO/s MB/s Accesses IO/s MB/s
0 Read Back 0 0 0 0 0 0
0 Destaged Write 0 0 0 0 0 0
1 Read Back 0 0 0 0 0 0
1 Destaged Write 0 0 0 0 0 0
--------------- FMP Queue Statistics ----------------
Node Dormant Cold Norm Warm Hot Destage Read Flush WrtBack
0 8388608 0 0 0 0 0 0 0 0
1 8388608 0 0 0 0 0 0 0 0
-------------------- CMP Queue Statistics --------------------
Node Free Clean Write1 WriteN WrtSched Writing DcowPend DcowProc
0 1796802 58859 0 0 0 0 0 0
1 1796521 58200 0 0 0 0 0 0
9.停止vvset的flashcache使用(可線上執行,不影響前端主機運作)
cli% setflashcache disable vvset:vvset1_raid1
沒有留言:
張貼留言