option to multipath to not modify the bindinfs file
authorMalahal Naineni <malahal@us.ibm.com>
Mon, 16 Aug 2010 22:57:02 +0000 (15:57 -0700)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Thu, 2 Sep 2010 07:40:45 +0000 (09:40 +0200)
commitc2f3abecdb76c4e7b3ec3aa418625b4f1b942496
tree2a6c12bc646b798e0c680dfc98eaad0e99aebc65
parent1ff4d7c9e8c72c17efa9dde4e14ddcba2a1c8b16
option to multipath to not modify the bindinfs file

initramfs is mounted read-write causing multipath to update the
initramfs bindings file and name all multipath devices it finds using
friendly names. The actual changes to the file are thrown away as they
are only written to the memory image rather than to the disk image. This
may cause the in memory updated initramfs bindings file inconsistent
with the actual bindings file in the active root file system image when
devices are added or removed.

In other words, the boot time updated initramfs bindings file may have
'uuid1 map to mpatha' and 'uuid2 map to mpathb', but the active root fs
bindings file may have 'uuid1 map to mpathb' and 'uuid2 map to mpatha'

The option, -B, will not modify the bindings file. It will only use the
bindings file if needed.  This option to multipath should be used when
invoked in the initramfs context to avoid the inconsistency.

Signed-off-by: Malahal Naineni (malahal@us.ibm.com)
libmultipath/alias.c
libmultipath/alias.h
libmultipath/config.c
libmultipath/config.h
libmultipath/propsel.c
multipath/main.c
multipath/multipath.8