| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This reverts commit 74e65cbf111a4f17fa393192519910de53d6c7ac.
|
|
|
|
| |
This reverts commit a24e722ebcb06c88f88605190caebdcf83236690.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
Timestamp/tag format changed.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
Format strings need to match the things being formatted, as Hans
correctly pointed out.
|
|
|
|
|
| |
Use device-mapper-multipath's "multipath" tool to find and set up
multipath devices.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
We need to find out about multipath topology from /sbin/multipath, which
unfortunately needs some parsing - it's fairly easy, though.
|
|
|
|
|
| |
iutil.execWithRedirect() stopped doing anything with searchPath in 2006
when clumens committed d0dec24. Remove these silly vestigal bits.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This should reduce the dogpiling in bugzilla for overly-generic
errors like "lvcreate failed for VolGroup/lv_root".
|
| |
|
|
|
|
|
|
| |
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 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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
LVM code limits name lengths to 128 characters, so enforce that limit in
our automatic name generation code.
|
|
|
|
|
| |
This identifies that a device is part of a multipath, and builds an
mpath device for partitioning.
|
|
|
|
|
| |
Include the lv_attr field in the lvm.lvs() hash table returned. Needed
to tell if the logical volume is active or not.
|
|
|
|
|
| |
'sparc' and 's390' are what are returned by iutil.getArch; however, we don't
actually support 31/32-bit installs on those machines.
|
|
|
|
| |
This patch adds new class MDRaidContainerDevice.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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)
|
|
|
|
| |
This is good for when we go back and have to reset the devicetree.
|
| |
|
|
|
|
|
| |
This was either to work around a bug in mdadm or my bad usage, but
either way it is no longer necessary.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|