f9dfbb37ac
Modify 0136-RHBZ-1304687-wait-for-map-add.patch * switch to missing_uev_wait_timeout to stop waiting for uev Refresh 0137-RHBZ-1280524-clear-chkr-msg.patch Refresh 0150-RHBZ-1253913-fix-startup-msg.patch Refresh 0154-UPBZ-1291406-disable-reinstate.patch Refresh 0156-UPBZ-1313324-dont-fail-discovery.patch Refresh 0161-RHBZ-1311659-no-kpartx.patch Refresh 0167-RHBZ-1335176-fix-show-cmds.patch Add 0173-RH-update-man-page.patch Add 0174-RHBZ-1362396-modprobe.patch * make starting the multipathd service modprobe dm-multipath in the sysvinit scripts Add 0175-RHBZ-1357382-ordering.patch * force multipathd.service to start after systemd-udev-trigger.service Add 0176-RHBZ-1363830-fix-rename.patch * initialized a variable to make dm_rename not fail randomly Add 0177-libmultipath-correctly-initialize-pp-sg_id.patch * This and all the following patches add the rbd patch checker Add 0178-libmultipath-add-rbd-discovery.patch Add 0179-multipath-tools-add-checker-callout-to-repair-path.patch Add 0180-multipath-tools-Add-rbd-checker.patch Add 0181-multipath-tools-Add-rbd-to-the-hwtable.patch Add 0182-multipath-tools-check-for-initialized-checker-before.patch Add 0183-multipathd-Don-t-call-repair-on-blacklisted-path.patch Add 0184-rbd-fix-sync-repair-support.patch Add 0185-rbd-check-for-nonshared-clients.patch Add 0186-rbd-check-for-exclusive-lock-enabled.patch Add 0187-rbd-fixup-log-messages.patch Add 0188-RHBZ-1368501-dont-exit.patch * make multipathd not exit if it encounters recoverable errors on startup Add 0189-RHBZ-1368211-remove-retries.patch * add "remove_retries" multipath.conf parameter to make multiple attempts to remove a multipath device if it is busy. Add 0190-RHBZ-1380602-rbd-lock-on-read.patch * pass lock_on_read when remapping image Add 0191-RHBZ-1169168-disable-changed-paths.patch * add "disabled_changed_wwids" multipath.conf parameter to disable paths whose wwid changes Add 0192-RHBZ-1362409-infinibox-config.patch Add 0194-RHBZ-1351964-kpartx-recurse.patch * fix recursion on corrupt dos partitions Add 0195-RHBZ-1359510-no-daemon-msg.patch * print a messages when multipathd isn't running Add 0196-RHBZ-1239173-dont-set-flag.patch * don't set reload flag on reloads when you gain your first valid path Add 0197-RHBZ-1394059-max-sectors-kb.patch * add "max_sectors_kb" multipath.conf parameter to set max_sectors_kb on a multipath device and all its path devices Add 0198-RHBZ-1372032-detect-path-checker.patch * add "detect_checker" multipath.conf parameter to detect ALUA arrays and set the path checker to TUR Add 0199-RHBZ-1279355-3pardata-config.patch Add 0200-RHBZ-1402092-orphan-status.patch * clear status on orphan paths Add 0201-RHBZ-1403552-silence-warning.patch Add 0202-RHBZ-1362120-skip-prio.patch * don't run prio on failed paths Add 0203-RHBZ-1363718-add-msgs.patch Add 0204-RHBZ-1406226-nimble-config.patch Add 0205-RHBZ-1416569-reset-stats.patch * add "reset maps stats" and "reset map <map> stats" multipathd interactive commands to reset the stats tracked by multipathd Add 0206-RHBZ-1239173-pt2-no-paths.patch * make multipath correctly disable scanning and rules running when it gets a uevent and there are not valid paths. Add 0207-UP-add-libmpathcmd.patch * New shared library, libmpathcmd, that sends and receives messages from multipathd. device-mapper-multipath now uses this library internally. Add 0208-UPBZ-1430097-multipathd-IPC-changes.patch * validation that modifying commands are coming from root. Add 0209-UPBZ-1430097-multipath-C-API.patch * New shared library. libdmmp, that presents the information from multipathd in a structured manner to make it easier for callers to use Add 0210-RH-fix-uninstall.patch * Minor compilation fixes Add 0211-RH-strlen-fix.patch * checks that variables are not NULL before passing them to strlen Add 0212-RHBZ-1431562-for-read-only.patch Make 3 new subpackages * device-mapper-multipath-devel, libdmmp, and libdmmp-devel. libmpathcmd and libmpathprio are in device-mapper-multipath-libs and device-mapper-multipath-devel. libdmmp is in its own subpackages Move libmpathprio devel files to device-mapper-multipath-devel Added BuildRequires on librados2-devel
139 lines
4.9 KiB
Diff
139 lines
4.9 KiB
Diff
---
|
|
libmultipath/print.c | 7 +++++++
|
|
libmultipath/structs.h | 1 +
|
|
libmultipath/structs_vec.c | 24 ++++++++++++++----------
|
|
multipathd/cli_handlers.c | 11 ++++++++++-
|
|
multipathd/main.c | 2 ++
|
|
5 files changed, 34 insertions(+), 11 deletions(-)
|
|
|
|
Index: multipath-tools-130222/libmultipath/print.c
|
|
===================================================================
|
|
--- multipath-tools-130222.orig/libmultipath/print.c
|
|
+++ multipath-tools-130222/libmultipath/print.c
|
|
@@ -248,6 +248,12 @@ snprint_q_timeouts (char * buff, size_t
|
|
}
|
|
|
|
static int
|
|
+snprint_map_failures (char * buff, size_t len, struct multipath * mpp)
|
|
+{
|
|
+ return snprint_uint(buff, len, mpp->stat_map_failures);
|
|
+}
|
|
+
|
|
+static int
|
|
snprint_multipath_uuid (char * buff, size_t len, struct multipath * mpp)
|
|
{
|
|
return snprint_str(buff, len, mpp->wwid);
|
|
@@ -546,6 +552,7 @@ struct multipath_data mpd[] = {
|
|
{'t', "dm-st", 0, snprint_dm_map_state},
|
|
{'S', "size", 0, snprint_multipath_size},
|
|
{'f', "features", 0, snprint_features},
|
|
+ {'x', "failures", 0, snprint_map_failures},
|
|
{'h', "hwhandler", 0, snprint_hwhandler},
|
|
{'A', "action", 0, snprint_action},
|
|
{'0', "path_faults", 0, snprint_path_faults},
|
|
Index: multipath-tools-130222/libmultipath/structs.h
|
|
===================================================================
|
|
--- multipath-tools-130222.orig/libmultipath/structs.h
|
|
+++ multipath-tools-130222/libmultipath/structs.h
|
|
@@ -270,6 +270,7 @@ struct multipath {
|
|
unsigned int stat_map_loads;
|
|
unsigned int stat_total_queueing_time;
|
|
unsigned int stat_queueing_timeouts;
|
|
+ unsigned int stat_map_failures;
|
|
|
|
/* checkers shared data */
|
|
void * mpcontext;
|
|
Index: multipath-tools-130222/libmultipath/structs_vec.c
|
|
===================================================================
|
|
--- multipath-tools-130222.orig/libmultipath/structs_vec.c
|
|
+++ multipath-tools-130222/libmultipath/structs_vec.c
|
|
@@ -579,16 +579,20 @@ int update_multipath (struct vectors *ve
|
|
*/
|
|
void update_queue_mode_del_path(struct multipath *mpp)
|
|
{
|
|
- if (--mpp->nr_active == 0 && mpp->no_path_retry > 0) {
|
|
- /*
|
|
- * Enter retry mode.
|
|
- * meaning of +1: retry_tick may be decremented in
|
|
- * checkerloop before starting retry.
|
|
- */
|
|
- mpp->stat_queueing_timeouts++;
|
|
- mpp->retry_tick = mpp->no_path_retry * conf->checkint + 1;
|
|
- condlog(1, "%s: Entering recovery mode: max_retries=%d",
|
|
- mpp->alias, mpp->no_path_retry);
|
|
+ if (--mpp->nr_active == 0) {
|
|
+ if (mpp->no_path_retry > 0) {
|
|
+ /*
|
|
+ * Enter retry mode.
|
|
+ * meaning of +1: retry_tick may be decremented in
|
|
+ * checkerloop before starting retry.
|
|
+ */
|
|
+ mpp->stat_queueing_timeouts++;
|
|
+ mpp->retry_tick = mpp->no_path_retry *
|
|
+ conf->checkint + 1;
|
|
+ condlog(1, "%s: Entering recovery mode: max_retries=%d",
|
|
+ mpp->alias, mpp->no_path_retry);
|
|
+ } else if (mpp->no_path_retry != NO_PATH_RETRY_QUEUE)
|
|
+ mpp->stat_map_failures++;
|
|
}
|
|
condlog(2, "%s: remaining active paths: %d", mpp->alias, mpp->nr_active);
|
|
}
|
|
Index: multipath-tools-130222/multipathd/cli_handlers.c
|
|
===================================================================
|
|
--- multipath-tools-130222.orig/multipathd/cli_handlers.c
|
|
+++ multipath-tools-130222/multipathd/cli_handlers.c
|
|
@@ -319,9 +319,14 @@ show_maps (char ** r, int *len, struct v
|
|
c += snprint_multipath_header(c, reply + maxlen - c,
|
|
style);
|
|
|
|
- vector_foreach_slot(vecs->mpvec, mpp, i)
|
|
+ vector_foreach_slot(vecs->mpvec, mpp, i) {
|
|
+ if (update_multipath(vecs, mpp->alias, 0)) {
|
|
+ i--;
|
|
+ continue;
|
|
+ }
|
|
c += snprint_multipath(c, reply + maxlen - c,
|
|
style, mpp, pretty);
|
|
+ }
|
|
|
|
again = ((c - reply) == (maxlen - 1));
|
|
|
|
@@ -742,6 +747,8 @@ cli_disable_queueing(void *v, char **rep
|
|
return 1;
|
|
}
|
|
|
|
+ if (mpp->nr_active == 0)
|
|
+ mpp->stat_map_failures++;
|
|
mpp->retry_tick = 0;
|
|
dm_queue_if_no_path(mpp->alias, 0);
|
|
return 0;
|
|
@@ -756,6 +763,8 @@ cli_disable_all_queueing(void *v, char *
|
|
|
|
condlog(2, "disable queueing (operator)");
|
|
vector_foreach_slot(vecs->mpvec, mpp, i) {
|
|
+ if (mpp->nr_active == 0)
|
|
+ mpp->stat_map_failures++;
|
|
mpp->retry_tick = 0;
|
|
dm_queue_if_no_path(mpp->alias, 0);
|
|
}
|
|
Index: multipath-tools-130222/multipathd/main.c
|
|
===================================================================
|
|
--- multipath-tools-130222.orig/multipathd/main.c
|
|
+++ multipath-tools-130222/multipathd/main.c
|
|
@@ -716,6 +716,7 @@ ev_remove_path (struct path *pp, struct
|
|
mpp->retry_tick = 0;
|
|
mpp->no_path_retry = NO_PATH_RETRY_FAIL;
|
|
mpp->flush_on_last_del = FLUSH_IN_PROGRESS;
|
|
+ mpp->stat_map_failures++;
|
|
dm_queue_if_no_path(mpp->alias, 0);
|
|
}
|
|
if (!flush_map(mpp, vecs, 1)) {
|
|
@@ -1197,6 +1198,7 @@ retry_count_tick(vector mpvec)
|
|
mpp->stat_total_queueing_time++;
|
|
condlog(4, "%s: Retrying.. No active path", mpp->alias);
|
|
if(--mpp->retry_tick == 0) {
|
|
+ mpp->stat_map_failures++;
|
|
dm_queue_if_no_path(mpp->alias, 0);
|
|
condlog(2, "%s: Disable queueing", mpp->alias);
|
|
}
|