summaryrefslogtreecommitdiffstats
path: root/storage/devicelibs
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Write a multipath.conf before probing for mpaths."Peter Jones2010-02-261-6/+0
| | | | This reverts commit 74e65cbf111a4f17fa393192519910de53d6c7ac.
* Revert "working on this"Peter Jones2010-02-261-1/+1
| | | | This reverts commit a24e722ebcb06c88f88605190caebdcf83236690.
* working on thisPeter Jones2010-02-261-1/+1
|
* Write a multipath.conf before probing for mpaths.Peter Jones2010-02-261-0/+6
| | | | | If we don't have a multipath.conf when we scan, we get a default blacklist of everything, which isn't helpful. So write one.
* Check for the real device-mapper nodes in /proc/swaps. (#567840)David Lehman2010-02-251-2/+13
|
* Pass '--force' to vgremove to avoid interactive prompts. (#563873)David Lehman2010-02-121-1/+1
|
* Fix splitting of error strings from program.log.David Lehman2010-02-052-2/+2
| | | | Timestamp/tag format changed.
* Strip off the timestamp from error output pulled from program.log.David Lehman2010-02-032-2/+6
|
* Correctly add found multipath devices to our dict (#560029).Chris Lumens2010-01-291-1/+1
|
* Add pure python EDD code parsing and compareDrives substitute (#478996)Hans de Goede2010-01-281-0/+97
| | | | | | | | | | There are various issues with the EDD C-code, mostly that it is way too complicated for what it does. This patch re-implements it in python, and adds a compareDrives substitute to the storage class. Note that the compareDrives substitute is a copy and paste job of the isys code (using the new storage edd_dict). The isys code will be removed in a separate patch.
* multipath gives us CCISS devices names with ! in them, but we expect /.Chris Lumens2010-01-251-1/+1
|
* Fix broken log message.Peter Jones2010-01-221-1/+2
| | | | | Format strings need to match the things being formatted, as Hans correctly pointed out.
* Make multipath support use device-mapper-multipath to setup mpaths.Peter Jones2010-01-211-30/+61
| | | | | Use device-mapper-multipath's "multipath" tool to find and set up multipath devices.
* Create multipath.confPeter Jones2010-01-211-488/+29
| | | | | | | | Revamp this since multipath is now writing our rules for us. Use device.serial/device.vendor/device.model where appropriate, and don't give the device a braindead mode. Also change /when/ we write the files out.
* Add a parser for 'multipath -d' output.Peter Jones2010-01-201-0/+47
| | | | | We need to find out about multipath topology from /sbin/multipath, which unfortunately needs some parsing - it's fairly easy, though.
* iutil.execWithRedirect() hasn't used searchPath= since 2006. Take it out.Peter Jones2010-01-152-8/+4
| | | | | iutil.execWithRedirect() stopped doing anything with searchPath in 2006 when clumens committed d0dec24. Remove these silly vestigal bits.
* 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
* Fix reset of lvm filtering (#527711)Radek Vykydal2009-12-221-1/+2
|
* Move identifyMultipaths from DeviceTree to devicelibs.Chris Lumens2009-12-111-0/+81
| | | | | | | | The return type has also changed. It now returns a tuple of a list of regular devices, a list of multipath sets, and a list of partition devices. This is necessary so the filtering UI can use the same knowledge that was in the DeviceTree object to know which devices are part of a multipath set and which are just standalone disks.
* Fix devicelibs.dm.device_is_multipath support for new udev rules.Peter Jones2009-11-301-1/+16
| | | | | | | | | | New udev rules for DM stuff use 'MAJOR' and 'MINOR' instead of 'DM_MAJOR' and 'DM_MINOR', so we need devicelibs.dm.device_is_multipath() to check for them instead. For now, this code will work with either variety. This also makes devicelibs.dm.device_is_multipath() take the whole info blob and do what it needs with it, rather than splitting it up in the calling function.
* Add optional progress windows to devicelibs create functions.David Lehman2009-11-303-23/+23
|
* Force mkswap to do its job.David Lehman2009-11-301-1/+3
| | | | | | There's some broken hueristic in mkswap that leads it to sometimes mistake a logical volume for a disk and hence refuse to format it, citing something about bootblocks. Nonsense.
* Add RAID4 support (#541433)Alexandre Oliva2009-11-261-0/+5
|
* Don't set unnecessary multipath defaults.Peter Jones2009-10-151-2/+492
| | | | | | Use "device" entries in the config file rather than specifying configuration parameters in the "multipath" section of the config file. This gets us more reasonable configuration.
* Write multipathd.conf in anaconda so that dracut can find it.Peter Jones2009-10-121-0/+37
| | | | | | This writes a multipathd.conf that whitelists the devices we're using in our multipath devices. It's a fairly basic configuration, and it doesn't handle ALUA yet.
* Try to include error messages in lvm/mdadm exceptions.David Lehman2009-10-012-131/+107
| | | | | This should reduce the dogpiling in bugzilla for overly-generic errors like "lvcreate failed for VolGroup/lv_root".
* Add function lvorigin to determine the name of a snapshot's origin lv.David Lehman2009-09-211-0/+16
|
* 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.
* Add escrow supportMiloslav Trmač2009-09-141-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for storing an X.509 certificate used to encrypt the escrow data, and a "create backup passphrase" flag, to storage.formats.LUKS, and support for storing the same options of "autopart" globally to storage.Storage. While parsing kickstart directives, download the X.509 certificates specified in thekickstart file (if any), enabling network access if necessary, then store the data in the above-described storage objects. While autopartitioning, copy the "autopart" escrow options into each created LUKS volume. Finally, as a part of doPostInstall, find all LUKS volumes with escrow configured, create the escrow files and store them in /mnt/sysimage/root. Changes since the previous version: - Drop unused .encryptedDevice assignments - Move writeEscrowPackets inside doPostInstall - Fix bugs introduced while moving code to storage.formats.LUKS Further changes: - Don't pass escrow args to lvmpv format constructor. - Move backup passphrase generation into storage.devicelibs.crypto. - Use newer, clearer except syntax in storage.writeEscrowPackets.
* Raise exception if detected swap volumes are not Linux v1 swap space.David Cantrell2009-09-071-0/+5
| | | | | | | Safety net for detected swap volumes. We trap v0 swap space and swap partitions currently in use for software suspend. After all that verify that the detected volume is v1 swap space. If not, raise UnknownSwapError.
* Make sure LV and VG names fit within LVM limits (#517483)David Cantrell2009-08-191-1/+8
| | | | | LVM code limits name lengths to 128 characters, so enforce that limit in our automatic name generation code.
* Recognize mpath devices when we see them.Peter Jones2009-08-061-0/+8
| | | | | This identifies that a device is part of a multipath, and builds an mpath device for partitioning.
* Include lv_attr in lvm.lvs() return value.David Cantrell2009-07-081-3/+4
| | | | | Include the lv_attr field in the lvm.lvs() hash table returned. Needed to tell if the logical volume is active or not.
* Fix list of 64-bit arches.Bill Nottingham2009-07-081-1/+1
| | | | | 'sparc' and 's390' are what are returned by iutil.getArch; however, we don't actually support 31/32-bit installs on those machines.
* Support for MD containers.Jacek Danecki2009-06-221-4/+7
| | | | This patch adds new class MDRaidContainerDevice.
* Convert storage/ to Makefile.amDavid Cantrell2009-06-092-33/+23
|
* Pass --force to lvresize so it doesn't ask for confirmation.David Lehman2009-05-311-1/+1
|
* Bring luks_add_key and luks_remove_key back into devicelibs.crypto.David Lehman2009-04-241-4/+65
| | | | | | | | In order to include these in pycryptsetup we had to create yet another duplicate copy of execWithRedirect. This patch brings them back into anaconda so we can easily modify them if needed until the day when pycryptsetup has this functionality. It also allows us to redirect the output to someplace useful for debugging.
* 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)
* Make sure we have a clean lvm ignore list when we initialize.Joel Granados Moreno2009-04-071-0/+5
| | | | This is good for when we go back and have to reset the devicetree.
* Fixes of errors shown by pylint that didn't get into the beta build.Martin Gracik2009-03-313-4/+4
|
* 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.
* Remove unused getVG{Free,Used}Space methods.Chris Lumens2009-03-271-19/+0
|
* Code fixes of errors shown by pylint (mgracik).Chris Lumens2009-03-253-1/+5
| | | | | | 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.
* Use the same units (MB) for extent size that we do for everything else.David Lehman2009-03-241-1/+1
|