標籤:netapp 效能 statistics cluster mode
Cluster-mode下,引入了新的命令列工具,可以查看詳細的儲存系統效能指標,在進行儲存系統診斷時候尤其有用。
650) this.width=650;" title="lamp" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="lamp" src="http://s3.51cto.com/wyfs02/M01/8F/99/wKiom1jmD0egPOWHAAAE7ZUfeIM380.png" "16" height="25" />注意:使用該命令需要進入進階模式,SSH登入儲存CLI環境之後,執行命令:set –privilege advanced。參考1:
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/8F/99/wKiom1jmD0fSBI_JAAB9cgkG-M0065.png" "883" height="118" />
圖1
命令使用方法 總覽
可以使用命令statistics show-periodic查看當前系統即時的效能指標概覽。
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/8F/97/wKioL1jmD0qixdAaAAOh7OZDzH4025.png" "1189" height="561" />
圖2
樣本收集
也可以使用命令statistics start |stop 收集一段時間內的績效參數,然後通過statistics show命令輸出收集的樣本績效參數。
舉例1:收集CPU利用率。通過命令:
statistics start –object processor –sample-id smp_1
statistics start –object disk –sample-id smp_2
開始收集processor對象的績效參數。-sample-id為收集樣本編號,系統可以同時收集多個樣本。如果不手動指定該參數,系統將自動指定編號。上面舉例1中,分別開始了對2個對象的2個樣本的效能收集,也可以在一個樣本中收集多個對象效能指標,如命令:
statistics start –object processor|disk –sample-id smp_1
在樣本smp_1中同時收集processor和disk對象的效能指標
樣本展示
通過命令:
statistics show –object processor
可以展現收集的樣本資料,如3
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/8F/99/wKiom1jmD0rQuUN9AAEe4Qdgq0g015.png" "1017" height="484" />
圖3
甚至可以添加過濾條件:
statistics show –object processor –filter “node_name=cluster1-01”
篩選出節點“cluster1-01”的CPU效能資料
statistics show –object processor –filter “processor_busy>80”
篩選出CPU利用率在80%以上的效能資料
停止樣本收集
樣本收集需要消耗系統效能,不在使用之後,停止收集。
statistics stop –sample-id smp_1
statistics stop –sample-id smp_2
命令結構 對象
statistics show能夠展現儲存系統中各個對象的績效參數。通過 statistics catalog object show可以列出系統中包含的對象,如processor(CPU的各個core),disk(各個物理磁碟)等等。
執行個體
statistics catalog instance show –object 【objectname】列出對象的運行執行個體。
舉例4:如4,運行命令:
statistics catalog instance show –object processor
顯示對象processor有四個執行個體在運行,也就是儲存系統有4個core。
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/8F/97/wKioL1jmD0vggkIqAACjKVhnSlg580.png" "923" height="222" />
圖4
舉例5:如5,運行命令:
statistics catalog instance show –object disk
顯示對象disk有20個執行個體在運行,也就是儲存系統有20磁碟。
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/8F/99/wKiom1jmEEzQKY__AAEwxNMDSg0477.png" "777" height="626" />
圖5
計數器
每個對象有多個效能計數器,可以通過命令statistics catalog counter show –object 【objectname】列出相關對象的效能計數器
舉例6:如6,運行命令:
statistics catalog counter show –object processor
顯示對象processor有8個效能計數器
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/8F/97/wKioL1jmD07BTkv1AAGHwtEySWA461.png" "917" height="381" />
圖6
舉例7:
statistics show –object processor –instance processor0 –counter processor_busy|sk_switches
如7,命令列出processor0的processor_busy和sk_switches計數器的效能指標
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/8F/99/wKiom1jmD06jZES4AADnxQ8GG1o706.png" "868" height="436" />
圖7
CPU使用
參考圖3和圖7
Latency
使用命令:
statistics disk show
查詢各個磁碟的延遲,參考圖8
也可以查看某個aggregate/volume/lun的延遲
收集aggregate/volume/lun的樣本:
statistics start –object aggregate|volume|lun
查詢樣本資料,可以看到延遲資料
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/8F/99/wKiom1jmD0-yp0ATAAFXWHHRejk323.png" "748" height="543" />
圖8
Disk繁忙程度
使用Statistics disk show命令可以查看磁碟的吞吐和延遲指標,該命令將持續輸出磁碟效能指標,以下是命令列輸出的相關列:
| 列名稱 |
描述 |
| Disk |
磁碟名稱 |
| Node |
磁碟所屬儲存節點名稱 |
| Busy (%) |
磁碟有IO操作的時間比,用以衡量磁碟的繁忙程度 |
| Total Ops |
採樣時間內的總的磁碟操作,近似IOPS |
| Read Ops |
採樣時間內的磁碟讀操作 |
| Write Ops |
採樣時間內的磁碟寫操作 |
| Read(Bps) |
每秒讀位元組數 |
| Write(Bps) |
每秒寫位元組數 |
| Latency(us) |
延遲(微妙) |
該命令無需樣本資料收集
以下是命令啟動並執行結果輸出
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/8F/99/wKiom1jmEE2T6bJEAAIT8EwgkKU228.png" "711" height="594" />
圖9
IOPS
參考圖2、8、9,查詢IOPS
CIFS/NFS操作
查詢最活躍使用者(CIFS/NFS讀寫操作最多的使用者)
cluster1::*> statistics top client show
cluster1 : 12/27/2016 01:33:56
*Total
Client Vserver Node Protocol Ops
------------- ------------ ----------- -------- ------
192.168.0.253 cifs_nfs_svm cluster1-01 cifs 5145
192.168.0.61 cifs_nfs_svm cluster1-02 cifs 815
192.168.0.70 cifs_nfs_svm cluster1-02 cifs 200
查詢訪問最多的檔案(預設顯示10個)
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/8F/98/wKioL1jmEHThhLCmAAGy6cyeLiU377.png" "1130" height="322" />
系統後台進程資源消耗
通過命令:
statistics workload show
可以查詢到當前系統資源主要消耗在哪些負載上
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/8F/97/wKioL1jmD1GS0keEAAGqCgkHGe4649.png" "573" height="783" />
使用Statistics命令查看Netapp儲存即時效能統計資料