pt-stalk does not report NFS iostat

Bug #986847 reported by Olivier Doucet on 2012-04-22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to
Fix Released
Brian Fraser
Won't Fix
Fix Released
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.

Related branches

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

Percona now uses JIRA for bug reports so this bug report is migrated to:

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

Other bug subscribers