Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 310007 Details for
Bug 452441
Unusual RAID configurations not supported
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to allow creating / installing to a single device RAID1 array
anaconda.patch (text/plain), 2.76 KB, created by
Michal Ruzicka
on 2008-06-22 23:45:38 UTC
(
hide
)
Description:
Patch to allow creating / installing to a single device RAID1 array
Filename:
MIME Type:
Creator:
Michal Ruzicka
Created:
2008-06-22 23:45:38 UTC
Size:
2.76 KB
patch
obsolete
>diff -Naur anaconda.orig/fsset.py anaconda/fsset.py >--- anaconda.orig/fsset.py 2008-06-22 18:13:35.000000000 +0200 >+++ anaconda/fsset.py 2008-06-22 18:13:58.000000000 +0200 >@@ -2437,8 +2437,12 @@ > > args = ["--create", "/dev/%s" %(self.device,), > "--run", "--chunk=%s" %(self.chunksize,), >- "--level=%s" %(self.level,), >- "--raid-devices=%s" %(self.numDisks,)] >+ "--level=%s" %(self.level,)] >+ >+ if self.numDisks <= 1: >+ args.append("--force",) >+ >+ args.append("--raid-devices=%s" %(self.numDisks,),) > > if self.spares > 0: > args.append("--spare-devices=%s" %(self.spares,),) >diff -Naur anaconda.orig/iw/partition_gui.py anaconda/iw/partition_gui.py >--- anaconda.orig/iw/partition_gui.py 2008-06-22 18:13:35.000000000 +0200 >+++ anaconda/iw/partition_gui.py 2008-06-22 18:13:58.000000000 +0200 >@@ -1270,7 +1270,7 @@ > "You currently have %s software RAID " > "partition(s) free to use.\n\n") % (productName, len(availraidparts)) > >- if len(availraidparts) < 2: >+ if len(availraidparts) < 1: > lbltxt = lbltxt + _("To use RAID you must first " > "create at least two partitions of type " > "'software RAID'. Then you can " >@@ -1303,9 +1303,11 @@ > if len(availraidparts) > 0 and len(self.diskset.disks.keys()) > 1: > doRAIDclone.set_sensitive(1) > >+ if len(availraidparts) > 0: >+ createRAIDdev.set_sensitive(1) >+ > if len(availraidparts) > 1: > createRAIDdev.set_active(1) >- createRAIDdev.set_sensitive(1) > > align = gtk.Alignment(0.5, 0.0) > align.add(radioBox) >diff -Naur anaconda.orig/iw/raid_dialog_gui.py anaconda/iw/raid_dialog_gui.py >--- anaconda.orig/iw/raid_dialog_gui.py 2008-06-22 18:13:35.000000000 +0200 >+++ anaconda/iw/raid_dialog_gui.py 2008-06-22 18:13:58.000000000 +0200 >@@ -287,7 +287,7 @@ > availraidparts = self.partitions.getAvailRaidPartitions(origrequest, > self.diskset) > # if no raid partitions exist, raise an error message and return >- if len(availraidparts) < 2: >+ if len(availraidparts) < 1: > dlg = gtk.MessageDialog(self.parent, 0, gtk.MESSAGE_ERROR, > gtk.BUTTONS_OK, > _("At least two unused software RAID " >diff -Naur anaconda.orig/raid.py anaconda/raid.py >--- anaconda.orig/raid.py 2008-06-22 18:13:35.000000000 +0200 >+++ anaconda/raid.py 2008-06-22 18:13:58.000000000 +0200 >@@ -179,9 +179,9 @@ > def get_raid_min_members(raidlevel): > """Return the minimum number of raid members required for raid level""" > if isRaid0(raidlevel): >- return 2 >+ return 1 > elif isRaid1(raidlevel): >- return 2 >+ return 1 > elif isRaid5(raidlevel): > return 3 > elif isRaid6(raidlevel):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 452441
: 310007