測試環境為 Ubuntu14.04
HD , Network , FC 這幾種常見的 I/O 介面要如何檢查是不是有產生 Error count
-
HD
透過硬碟本身所提供的 S.M.A.R.T. (Self-Monitoring Analysis and Reporting Technology )技術 ,就可以檢測該顆硬碟的 Error count (Errors Corrected by ECC fast | delayed , Errors Corrected by rereads / rewrites , Total errors corrected , Correction algorithm invocations , Total uncorrected errors)
root@ubuntu:~# smartctl -l error /dev/sdb smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-24-generic] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === Error counter log: Errors Corrected by Total Correction Gigabytes Total ECC rereads/ errors algorithm processed uncorrected fast | delayed rewrites corrected invocations [10^9 bytes] errors read: 0 0 0 0 0 123263.011 0 write: 0 0 0 0 0 5218.671 0 verify: 0 0 0 0 0 24.721 0 Non-medium error count: 148
-
Network
指令 #ip 加入參數 -s (statistics) 就可以看到 RX (Receive) , TX (Transmit) packets , errors , dropped , overrun , mcast , arrier , collsns 等統計資料.
root@ubuntu:~# ip -s link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 RX: bytes packets errors dropped overrun mcast 0 0 0 0 0 0 TX: bytes packets errors dropped carrier collsns 0 0 0 0 0 0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000 link/ether 08:00:27:cb:a9:8b brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 2756198 8601 0 0 0 0 TX: bytes packets errors dropped carrier collsns 682123 7551 0 0 0 0
-
FC
TBD