Bug 1416569
Summary: | [LLNL 7.4 FEAT] provide a way to clear stats | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Ben Woodard <woodard> | |
Component: | device-mapper-multipath | Assignee: | Ben Marzinski <bmarzins> | |
Status: | CLOSED ERRATA | QA Contact: | Lin Li <lilin> | |
Severity: | medium | Docs Contact: | Steven J. Levine <slevine> | |
Priority: | medium | |||
Version: | 7.4 | CC: | agk, bmarzins, heinzm, hutter2, lilin, msnitzer, mthacker, prajnoha, tgummels, woodard | |
Target Milestone: | rc | Keywords: | FutureFeature | |
Target Release: | 7.4 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | device-mapper-multipath-0.4.9-101.el7 | Doc Type: | Enhancement | |
Doc Text: |
New "multipathd reset multipaths stats" commands
Multipath now supports two new "multipathd" commands: "multipathd reset multipaths stats" and "multipathd reset multipath" _dev_ "stats". These commands reset the device stats that `multipathd` tracks for all the devices, or the specified device, respectively. This allows users to reset their device stats after they make changes to them.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1448945 (view as bug list) | Environment: | ||
Last Closed: | 2017-08-01 16:34:26 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1289208, 1332226, 1384257, 1446211, 1448945 |
Description
Ben Woodard
2017-01-25 20:33:04 UTC
Actually, these stats are tracked completely in multipathd, and adding a new multipathd command is pretty straightforward and isolated, so this should be able to make 7.4 A fix for this has been posted upstream. I'll pull it into RHEL-7.4 when I get a pm-ack. adding pm_ack I've added two new multipathd commands reset multipaths stats reset multipath <dev> stats The first resets the stats on all multipath devices. The second resets the stats on the specified device. LLNL, Packages are here for testing. http://people.redhat.com/tgummels/partners/.lc-d839231e87c805b7b71e764e0ed05825 Travis Ben (Marzinski): In the latest RHEL 7.4 release that I have built (it's a couple of weeks old, admittedly) I'm not seeing this new option in the multipathd(8) man page. Is it there in the most recent builds? Should it be there? In the DM-Multipath document I refer to that man page for the documentation for the specific commands. Yeah, that should be in the man page, and isn't. I've fixed that, but it won't make it in until the next time the package is respun for another reason. Verified on device-mapper-multipath-0.4.9-111.el7 [root@storageqe-06 ~]# rpm -qa | grep multipath device-mapper-multipath-0.4.9-111.el7.x86_64 device-mapper-multipath-libs-0.4.9-111.el7.x86_64 [root@storageqe-06 ~]# multipathd -k multipathd> --help multipath-tools v0.4.9 (05/33, 2016) CLI commands reference: reset maps|multipaths stats <------------------ reset map|multipath $map stats <------------------ [root@storageqe-06 ~]# multipathd show multipaths stats name path_faults switch_grp map_loads total_q_time q_timeouts 360a98000324669436c2b45666c56786d 0 0 1 0 0 360a98000324669436c2b45666c56786f 0 0 1 0 0 360a98000324669436c2b45666c567871 0 0 1 0 0 360a98000324669436c2b45666c567873 0 0 1 0 0 360a98000324669436c2b45666c567875 0 0 0 0 0 [root@storageqe-06 ~]# multipathd reset multipath 360a98000324669436c2b45666c56786d stats ok [root@storageqe-06 ~]# multipathd show multipaths stats name path_faults switch_grp map_loads total_q_time q_timeouts 360a98000324669436c2b45666c56786d 0 0 0 0 0 360a98000324669436c2b45666c56786f 0 0 1 0 0 360a98000324669436c2b45666c567871 0 0 1 0 0 360a98000324669436c2b45666c567873 0 0 1 0 0 360a98000324669436c2b45666c567875 0 0 0 0 0 [root@storageqe-06 ~]# multipathd reset multipaths stats ok [root@storageqe-06 ~]# multipathd show multipaths stats name path_faults switch_grp map_loads total_q_time q_timeouts 360a98000324669436c2b45666c56786d 0 0 0 0 0 360a98000324669436c2b45666c56786f 0 0 0 0 0 360a98000324669436c2b45666c567871 0 0 0 0 0 360a98000324669436c2b45666c567873 0 0 0 0 0 360a98000324669436c2b45666c567875 0 0 0 0 0 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1961 |