[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH rhel6-branch 2/3] Make sure we write out multipath.conf before discovery (#563242)



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ack.

On Wed, 12 May 2010, Peter Jones wrote:

We need to make sure the config file is there every time, or else
/sbin/multipath helpfully does nothing useful at all.
---
iw/filter_gui.py |   13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/iw/filter_gui.py b/iw/filter_gui.py
index 6291018..a85cd1f 100644
--- a/iw/filter_gui.py
+++ b/iw/filter_gui.py
@@ -423,6 +423,13 @@ class FilterWindow(InstallWindow):

        udev_trigger(subsystem="block")
        new_disks = filter(udev_device_is_disk, udev_get_block_devices())
+
+        mcw = MultipathConfigWriter()
+        cfg = mcw.write()
+        open("/etc/multipath.conf", "w+").write(cfg)
+        del cfg
+        del mcw
+
        (new_singlepaths, new_mpaths, new_partitions) = identifyMultipaths(new_disks)
        (new_raids, new_nonraids) = self.split_list(lambda d: isRAID(d) and not isCCISS(d),
                                                    new_singlepaths)
@@ -554,6 +561,12 @@ class FilterWindow(InstallWindow):
                                    anaconda.id.storage.exclusiveDisks,
                                    anaconda.id.storage.zeroMbr)
        disks = filter(udev_device_is_disk, udev_get_block_devices())
+
+        mcw = MultipathConfigWriter()
+        cfg = mcw.write()
+        open("/etc/multipath.conf", "w+").write(cfg)
+        del cfg
+        del mcw
        (singlepaths, mpaths, partitions) = identifyMultipaths(disks)

        # The device list could be really long, so we really only want to


- -- David Cantrell <dcantrell redhat com>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAkvsF9wACgkQ5hsjjIy1VklTJQCgvmC3/dwsPy01QJGUd6GPTjGR
zNcAoMG5xtch909JfxlpAY3+NjqeXl7D
=KcLf
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]