pt-diskstats shows wrong device name

Bug #1035311 reported by Baron Schwartz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Medium
Brian Fraser

Bug Description

pt-diskstats is showing the wrong device name. Sample file attached. Settings:

Sample output:

Enter a disk/device pattern: xvdb1
  #ts device rd_s rd_avkb rd_mb_s rd_mrg rd_cnc rd_rt wr_s wr_avkb wr_mb_s wr_mrg wr_cnc wr_rt busy in_prg io_s qtime stime
  1.0 ram0 258.9 42.4 10.7 0% 2.3 9.1 152.8 36.6 5.5 27% 2.7 12.9 50% 37 411.6 9.6 1.1
  2.0 ram0 177.3 40.3 7.0 0% 2.1 12.0 409.2 21.5 8.6 12% 3.6 7.7 69% 44 586.4 13.5 1.1
  3.0 ram0 135.0 39.9 5.3 0% 5.8 42.9 515.9 33.7 17.0 25% 18.9 27.6 97% 29 650.8 22.9 1.2
  4.0 ram0 272.5 42.0 11.2 0% 3.1 11.5 520.3 27.5 14.0 18% 7.4 11.7 78% 30 792.8 10.4 0.9
  5.0 ram0 207.4 40.6 8.2 0% 2.6 12.6 523.1 22.3 11.4 15% 7.1 11.5 86% 28 730.5 10.6 1.0

Notice that it's showing ram0 even though I told it to look only at xvdb1.

Current settings:

   You can control this program by key presses:
   ------------------- Key ------------------- ---- Current Setting ----
   A, D, S) Set the group-by mode S
   c) Enter a Perl regex to match column names .
   /) Enter a Perl regex to match disk names xvdb1
   z) Set the sample size in seconds 1
   i) Hide inactive disks yes
   p) Pause the program
   q) Quit the program
   space) Print headers
   ------------------- Press any key to continue -----------------------

Version:

# pt-diskstats --version
pt-diskstats 2.1.3

Tags: pt-diskstats

Related branches

Revision history for this message
Baron Schwartz (baron-xaprb) wrote :
Brian Fraser (fraserbn)
Changed in percona-toolkit:
assignee: nobody → Brian Fraser (fraserbn)
status: New → In Progress
Brian Fraser (fraserbn)
Changed in percona-toolkit:
milestone: none → 2.1.4
Changed in percona-toolkit:
importance: Undecided → Medium
Brian Fraser (fraserbn)
Changed in percona-toolkit:
status: In Progress → Fix Committed
Brian Fraser (fraserbn)
Changed in percona-toolkit:
status: Fix Committed → Fix Released
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-563

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.