diff options
author | Benjamin Marzinski <bmarzins@redhat.com> | 2011-10-10 22:19:13 -0500 |
---|---|---|
committer | Christophe Varoqui <christophe.varoqui@opensvc.com> | 2011-10-11 06:51:16 +0200 |
commit | 58abb990a791663f281569debe1469bb9b005cd9 (patch) | |
tree | 84375494aa96517b89e7826af7a50adbb7ed4d4c | |
parent | 0bfc3d2dedd1dab3b433388aa9724778568ad2c9 (diff) | |
download | multipath-tools-58abb990a791663f281569debe1469bb9b005cd9.tar.gz |
multipath: set ACT_RESIZE when the size has changed
When the multipath path devices change size, multipath can't be reloaded
with noflush set. So, don't set the action to ACT_RELOAD, which will
cause the multipath device to get stuck in SUSPEND. Use ACT_RESIZE.
Also, I was seeing some messages that were getting cut off with the
128 byte messages size, so I doubled that, and the log area size.
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
-rw-r--r-- | libmultipath/configure.c | 4 | ||||
-rw-r--r-- | libmultipath/log.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libmultipath/configure.c b/libmultipath/configure.c index c2788b6..165f990 100644 --- a/libmultipath/configure.c +++ b/libmultipath/configure.c @@ -193,8 +193,8 @@ select_action (struct multipath * mpp, vector curmp, int force_reload) return; } if (cmpp->size != mpp->size) { - mpp->action = ACT_RELOAD; - condlog(3, "%s: set ACT_RELOAD (size change)", + mpp->action = ACT_RESIZE; + condlog(3, "%s: set ACT_RESIZE (size change)", mpp->alias); return; } diff --git a/libmultipath/log.h b/libmultipath/log.h index 3fd1677..6634c83 100644 --- a/libmultipath/log.h +++ b/libmultipath/log.h @@ -1,8 +1,8 @@ #ifndef LOG_H #define LOG_H -#define DEFAULT_AREA_SIZE 8192 -#define MAX_MSG_SIZE 128 +#define DEFAULT_AREA_SIZE 16384 +#define MAX_MSG_SIZE 256 #ifndef LOGLEVEL #define LOGLEVEL 5 |