Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Development (http://www.linux-archive.org/gentoo-development/)
-   -   Do not hang when creating raid array with member having filesystem detected (#490891) (http://www.linux-archive.org/gentoo-development/265588-do-not-hang-when-creating-raid-array-member-having-filesystem-detected-490891-a.html)

Radek Vykydal 03-18-2009 02:30 PM

Do not hang when creating raid array with member having filesystem detected (#490891)
 
---
storage/devicelibs/mdraid.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devicelibs/mdraid.py b/storage/devicelibs/mdraid.py
index a1a40d2..d02b6ea 100644
--- a/storage/devicelibs/mdraid.py
+++ b/storage/devicelibs/mdraid.py
@@ -101,7 +101,7 @@ def get_raid_max_spares(raidlevel, nummembers):
raise ValueError, "invalid raid level %d" % raidlevel

def mdcreate(device, level, disks, spares=0):
- argv = ["--create", device, "--level", str(level)]
+ argv = ["--create", device, "--run", "--level", str(level)]
raid_devs = len(disks) - spares
argv.append("--raid-devices=%d" % raid_devs)
if spares:
--
1.5.4.3

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


All times are GMT. The time now is 08:27 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.