pt-stalk does not report NFS iostat

Reported by Olivier Doucet on 2012-04-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit
Medium
Brian Fraser
2.0
Undecided
Unassigned
2.1
Medium
Brian Fraser

Bug Description

in pt-stalk, iostat is launched with flags 'dx'.

When MySQL datadir is on NFS, iostat usage is not reported because iostat needs flag 'n' to report NFS volumes.

How to fix :

add -n to each call to iostat binary.

tags: added: pt-stalk sys-cmd
Brian Fraser (fraserbn) wrote :

The attached branch doesn't exactly fix this, because just adding the -n would've meant a bunch of useless clutter to people not using NFS, but instead lets you work around it by doing something like this:

$ CMD_IOSTAT="iostat -n" pt-stalk ...

Which will make pt-stalk use 'iostat -n -dx ...'. You can actually replace most commands used by pt-stalk with this, so in conjunction with the new --plugin interface, it should let you do most things in whichever way you want.

I think this is the way to go, and will be merging it soon (with docs) unless someone objects / thinks it's a brain-damaged idea / etc.

Olivier Doucet (odoucet) wrote :

as long as this workaround is stated clearly in docs, it's ok ;)

Changed in percona-toolkit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers