FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 05-12-2010, 09:02 PM
Peter Jones
 
Default Make sure we write out multipath.conf before discovery (#563242)

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
--
1.7.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:38 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org