multipath: set ACT_RESIZE when the size has changed
authorBenjamin Marzinski <bmarzins@redhat.com>
Tue, 11 Oct 2011 03:19:13 +0000 (22:19 -0500)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Tue, 11 Oct 2011 04:51:16 +0000 (06:51 +0200)
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>
libmultipath/configure.c
libmultipath/log.h

index c2788b652ddfacf6a7140e24080d4ab47eaab89a..165f9901662418eecf25b4eb8dc6a3435c7dad07 100644 (file)
@@ -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;
        }
index 3fd1677487aa0eeff68e66f36531faa2c43f6a94..6634c83a9e33759b25c823be6d74c69892883e98 100644 (file)
@@ -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