Wednesday, June 19, 2013

Howto reset powerpath error counters

If you had issues with I/O paths and they have been fixed you might want to reset error counters to keep a clean view.
There are two ways to achieve this:

  1. error counters will be automatically cleared during machine reboot
  2. by running powermt restore command


powermt restore will check I/O paths and update their current status, additionally it will clear Q-IOs and error counters.

# powermt display
Symmetrix logical device count=0
CLARiiON logical device count=1
Hitachi logical device count=0
Invista logical device count=0
HP xp logical device count=0
Ess logical device count=0
HP HSx logical device count=0
======================================================================
--- Host Bus Adapters ---  ------ I/O Paths -----  ------ Stats ------
###  HW Path               Summary   Total   Dead  IO/Sec Q-IOs Errors
======================================================================
   1 qla2xxx               optimal       2      0       -     0     77
   2 qla2xxx               optimal       2      0       -     0      0

# powermt restore
# powermt display
Symmetrix logical device count=0
CLARiiON logical device count=1
Hitachi logical device count=0
Invista logical device count=0
HP xp logical device count=0
Ess logical device count=0
HP HSx logical device count=0
======================================================================
--- Host Bus Adapters ---  ------ I/O Paths -----  ------ Stats ------
###  HW Path               Summary   Total   Dead  IO/Sec Q-IOs Errors
======================================================================
   1 qla2xxx               optimal       2      0       -     0      0
   2 qla2xxx               optimal       2      0       -     0      0

No comments:

Post a Comment