summaryrefslogtreecommitdiffstats
path: root/storage/devicelibs/mdraid.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix splitting of error strings from program.log.David Lehman2010-02-051-1/+1
| | | | Timestamp/tag format changed.
* Strip off the timestamp from error output pulled from program.log.David Lehman2010-02-031-1/+3
|
* mdraid: various changes to options for new mdraid array creationHans de Goede2010-01-141-1/+6
| | | | | | | | | | | | | | | As discussed on the mailinglist, mdadm will be moving to creating version 1.1 metadata by default, and we should be creating arrays with bitmaps (except for /boot and swap). So this patch adds parameters to mdcreate to specify wether to use a bitmap or not and which metadata version to use. It then changes MDRaidArrayDevice.create() to: 1) For /boot force metadata version to 1.0, as grub cannot handle 1.1, and don't use a bitmap. 2) For swap don't use a bitmap. 3) Everything else create with bitmap
* Add optional progress windows to devicelibs create functions.David Lehman2009-11-301-7/+7
|
* Add RAID4 support (#541433)Alexandre Oliva2009-11-261-0/+5
|
* Try to include error messages in lvm/mdadm exceptions.David Lehman2009-10-011-45/+40
| | | | | This should reduce the dogpiling in bugzilla for overly-generic errors like "lvcreate failed for VolGroup/lv_root".
* Do not pass --update=super-minor to mdadm for containers and sets there inHans de Goede2009-09-151-3/+8
| | | | | | Passing --update=super-minor to mdadm for containers and sets there in leads to corrupt superblocks, see: bug rh523320, work around this for now by not passing --update=super-minor in these cases.
* Support for MD containers.Jacek Danecki2009-06-221-4/+7
| | | | This patch adds new class MDRaidContainerDevice.
* Mdadm's incremental mode ignores the auto option, so don't use it.David Lehman2009-04-211-1/+0
|
* Reimplement mdexamine using a more easily parseable output format.David Lehman2009-04-211-41/+16
|
* Fix position of "--run" option to mdadm assemble.David Lehman2009-04-211-2/+2
| | | | | | Having run as the first argument sets the mode to miscellaneous, which is not what we want -- we want assembly mode since we are assembling an array.
* Fix editing of raid device (persistence of level choice) (#496159)Radek Vykydal2009-04-171-8/+24
| | | | | | I didn't want to add another 0/'0'/'RAID0' tweaking so I made mdraid.raid_levels and mdraid deviceclass level attribute to contain constants for levels defined in mdraid.py.
* Make sure we "insist" on mdadm commands. (491729)Joel Granados Moreno2009-04-171-1/+2
|
* Fix processing of --level and --device options of ks raid commands.Radek Vykydal2009-04-081-1/+1
| | | | | | | | | | * We get RAID1 from ks parser, mdadm accepts only lowercase level specifiers of this form. * We get int device number (e.g. 0) from ks option --device (e.g. md0). Though this might require rather changes in pykickstart, especially when mdadm 3.0 allows creating of arbitrary device names in /dev/md. * mdadm --create --level option is changed to comply strictly to documentation (e.g. "--level=raid0", though "--level raid0" works too)
* Fixes of errors shown by pylint that didn't get into the beta build.Martin Gracik2009-03-311-1/+1
|
* Don't write out md member devices to a config file for assemble.David Lehman2009-03-301-21/+1
| | | | | This was either to work around a bug in mdadm or my bad usage, but either way it is no longer necessary.
* Code fixes of errors shown by pylint (mgracik).Chris Lumens2009-03-251-0/+3
| | | | | | This only fixes the serious errors that may affect F11 Beta. There's still a lot of patch left that fixes some more nitpicky stuff which can come in later.
* Do not hang when creating raid array with member having filesystem detected ↵Radek Vykydal2009-03-181-1/+1
| | | | (#490891)
* Added test case for devicelib mdraid.py.Martin Gracik2009-03-131-38/+40
| | | | | | | | | | Rewrote the devicelibs unittest baseclass so we can create and remove another loop devices within the tests. Rewrote the isRaidXY(raidlevel) functions in mdraid.py into one function isRaid(XY, raidlevel). Rewrote the get_raid_min_members and get_raid_max_spares functions to use the new isRaid function, and not use many if-elif-else statements. Changed the minimum raid members for raid10 to 2.
* Move the mdRaidBootArches logic into the platform module.Chris Lumens2009-03-091-2/+0
|
* Implement Storage.sanityCheck, mostly from old partitions code.David Lehman2009-03-041-0/+2
| | | | | | Also catch exceptions thrown by platform.bootDevice() and add mdRaidBootArches from old raid.py to storage.devicelibs.mdraid for use by the sanityCheck code.
* Lots of minor fixes and cleanups. A non-exhaustive list follows.David Lehman2009-02-271-14/+12
| | | | | | | | | | | - Change minsize/maxsize to minSize/maxSize since that's the convention elsewhere throughout the code. - Redirect output from all external utilities to tty5, not /dev/null. - Don't waste calls to basename for debug log statements, especially when the device can be None. - Add lots of missing imports. - Fix lots of remnants of previous code usage.
* Clean up imports, add header blocks as needed.David Lehman2009-02-231-1/+22
|
* Replace old storage modules.David Lehman2009-02-231-0/+226