summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Marzinski <bmarzins@redhat.com>2010-03-26 17:10:24 -0500
committerChristophe Varoqui <christophe.varoqui@opensvc.com>2010-03-28 12:55:33 +0200
commit8ee04831d2535a5afcf5dd40a27e2645ec0b7ffa (patch)
treed0f7acaa31a61d5005d08efbdfc49a302d94cf09
parentef4e0c9938c7307da39bfd02a0d646e7b38c95c0 (diff)
downloadmultipath-tools-8ee04831d2535a5afcf5dd40a27e2645ec0b7ffa.tar.gz
multipath-tools-8ee04831d2535a5afcf5dd40a27e2645ec0b7ffa.tar.bz2
multipath-tools-8ee04831d2535a5afcf5dd40a27e2645ec0b7ffa.zip
multipath: move bindings file location
The current bindings file location (/var/lib/multipath/bindings) can be problematic, since multipath can start up before /var/lib is mounted yet in late boot. In this case, multipath will create it's own bindings file which will be covered up by /var when it is mounted. This means that the device names that you get on startup might be different from the device names that you get when you run multipath on a system during normal operation. Since /etc is always available when multipath starts up in late boot, moving the bindings file there fixes the problem. Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
-rw-r--r--libmultipath/defaults.h2
-rw-r--r--multipath.conf.annotated2
-rw-r--r--multipath/multipath.conf.52
3 files changed, 3 insertions, 3 deletions
diff --git a/libmultipath/defaults.h b/libmultipath/defaults.h
index 84e5d6b..5a38d25 100644
--- a/libmultipath/defaults.h
+++ b/libmultipath/defaults.h
@@ -19,6 +19,6 @@
#define DEFAULT_PIDFILE "/var/run/multipathd.pid"
#define DEFAULT_SOCKET "/var/run/multipathd.sock"
#define DEFAULT_CONFIGFILE "/etc/multipath.conf"
-#define DEFAULT_BINDINGS_FILE "/var/lib/multipath/bindings"
+#define DEFAULT_BINDINGS_FILE "/etc/multipath/bindings"
char * set_default (char * str);
diff --git a/multipath.conf.annotated b/multipath.conf.annotated
index 6532622..4bbdf28 100644
--- a/multipath.conf.annotated
+++ b/multipath.conf.annotated
@@ -165,7 +165,7 @@
# # name : user_friendly_names
# # scope : multipath
# # desc : If set to "yes", using the bindings file
-# # /var/lib/multipath/bindings to assign a persistent and
+# # /etc/multipath/bindings to assign a persistent and
# # unique alias to the multipath, in the form of mpath<n>.
# # If set to "no" use the WWID as the alias. In either case
# # this be will be overriden by any specific aliases in this
diff --git a/multipath/multipath.conf.5 b/multipath/multipath.conf.5
index 1dc1488..165982e 100644
--- a/multipath/multipath.conf.5
+++ b/multipath/multipath.conf.5
@@ -224,7 +224,7 @@ for never stop queueing. Default is 0.
If set to
.I yes
, using the bindings file
-.I /var/lib/multipath/bindings
+.I /etc/multipath/bindings
to assign a persistent and unique alias to the multipath, in the form of mpath<n>.
If set to
.I no