summaryrefslogtreecommitdiffstats
path: root/storage
Commit message (Collapse)AuthorAgeFilesLines
* Do not set parted.PARTITION_BOOTABLE on s390.root2009-08-061-0/+2
| | | | s390x DASDS don't have bootable partition flags.
* Recognize mpath devices when we see them.Peter Jones2009-08-066-31/+370
| | | | | This identifies that a device is part of a multipath, and builds an mpath device for partitioning.
* Make DiskDevice.partedDisk a property.Peter Jones2009-08-061-19/+30
| | | | | This allows for the backing DiskDevice._partedDisk to be created just-in-time, instead of when the instance is created.
* Make questionInitializeDisk() somewhat less ugly.Peter Jones2009-08-061-6/+9
| | | | | | This cleans up the language in questionInitializeDisk(), as well as making the disk description a parameter, so we can provide a better description than parted would when one is available.
* Add a description to DiskDevice, and use it in the UI.Peter Jones2009-08-061-0/+4
| | | | | | | Right now we identify disks as partedDisk.model, which looks really bad when using DM-based devices. Add a description to DiskDevice, defaulting do partedDisk.model, and use it in the UI, so that subclasses can easily replace this with more useful text.
* Get rid of Device.description, it is unused.Peter Jones2009-08-061-7/+3
|
* Move basic udev methods out of the storage module (#514592).Chris Lumens2009-08-041-100/+17
| | | | | The udev code can be used for more than just storage - it can be used for networking as well. Moving these methods out makes that a little more clear.
* Fix backtrace due to iscsi.getNode() not finding the iscsi nodeHans de Goede2009-08-041-1/+1
|
* Add a dracutSetupString method to devices.py classesHans de Goede2009-08-041-0/+19
| | | | | | | Add a dracutSetupString method to devices.py classes, this can be used to ask devices used for / to return a string to add to the kernelcmdline so that dracut can find /. For most devices nothing is needed, but for iscsi some cmdline arguments are needed.
* Differentiate between ibft discovered and manually added iscsi disksHans de Goede2009-08-043-0/+6
| | | | | This is a preparation patch for adding support for writing the necessary dracut cmndline options to grub.conf
* Store iscsi node pointer in iScsiDiskDevice objectsHans de Goede2009-08-044-14/+14
| | | | | This is a preparation patch for adding support for writing the necessary dracut cmndline options to grub.conf
* When checking logical partition dependcies, make sure the are one the same diskHans de Goede2009-08-041-1/+2
| | | | | When checking if a logical partition dependsOn() another device because that other device is an extended partition also make sure they are on the same disk.
* Only set iscsi nodes to autostart when none of the LUN's contain /Hans de Goede2009-08-041-8/+9
| | | | | | One iscsi target / node can have multiple LUN's currently we would then set it to autostart if any of the LUN's was not used for /, the correct thing todo is to only set it to autostart if none of the LUN's are used for /
* Add functions to go from an iScsiDiskDevice to an libiscsi nodeHans de Goede2009-08-041-7/+23
| | | | | | Add functions to go from an iScsiDiskDevice to an libiscsi node and the other way around. This is a preparation patch for adding support for writing the necessary dracut cmdline options to grub.conf
* Not all udev info blocks return a name, so provide a way to ignore it.Chris Lumens2009-07-291-2/+2
|
* Don't split values for keys including MODEL or VENDOR.Chris Lumens2009-07-291-1/+3
| | | | | | Unfortunately, these values are not necessarily enclosed in quotes but could still include spaces. We don't want the values in our results hash to be lists, so we need to skip splitting for some keys.
* Move the decision to ignore the results of udev_parse_block_entry up.Chris Lumens2009-07-291-6/+7
| | | | | | | Network devices do not necessarily have a N: and S: entry in the udev info, so we don't want to ignore those right out. Instead, move the decision up into the caller and just have udev_parse_block_entry read all the info and shove it into a hash.
* Fix part --onpart= to print the device name instead of the __str__.Chris Lumens2009-07-281-1/+1
|
* Log non-upgradable upgrade candidate roots.Radek Vykydal2009-07-241-0/+3
| | | | | | This can be helpful in determining the cause of failed upgrade from log. I used it when working on #499321. Can be kind of corner-case, but can't hurt.
* Make sure we have a device before check if it's protected. (#510033)David Lehman2009-07-211-1/+1
|
* Remove unresolvable file devices from the devicetree. (#503830)David Lehman2009-07-211-0/+4
|
* Support multiple fstab entries of a single nodev fstype. (#505969)David Lehman2009-07-211-2/+4
|
* Refer to nodev devices as "none", not "nodev".David Lehman2009-07-211-1/+1
|
* Change DeviceTree.devices from a dict to a list.David Lehman2009-07-213-24/+38
|
* Show locked LUKS devices as "Encrypted (LUKS)", not "LUKS".David Lehman2009-07-211-0/+11
|
* Allow creation of four primary partitions on a disk. (#505269)David Lehman2009-07-211-7/+8
|
* Stop the cdrom device before ejecting (#505067)Martin Sivak2009-07-171-0/+3
|
* When ignoring partitions make sure lvm also ignores themHans de Goede2009-07-151-0/+2
| | | | | | | When we ignore partitions because we ignore the disk, or because the disk is part of a bios raid set (the case I hit causing me to write this patch), we need to make sure lvm also ignores the partitions and does not happily try to use PV's it thinks are on there.
* Call mdadm -I with --no-degraded for all disks but the lastHans de Goede2009-07-151-1/+1
| | | | | | | | | We do not want to bring arrays up (and esp not use, so not scan them) in degraded mode, so add --no-degraded to the mdadm invocation. Note we do not add --no-degraded to the mdadm invocation for the last disk of the set, because doing so assembles the array in an inactive (and thus unusable) state.
* Add deviceNameToDiskByPath().David Cantrell2009-07-131-0/+17
| | | | | | This function takes a device name (e.g., sda) and returns the link name that it matches in /dev/disk/by-path. Used to help people with many similar named devices (hundreds of DASDs, for example).
* Display drive model and size in MB in partitioning UI (#460697)David Cantrell2009-07-131-3/+17
| | | | | | | | | | When a partition table is unreadable, anaconda displays a window explaining the situation and asks you if you would like to format the disk for use. The existing message would only give the device node name (e.g., /dev/sda47). This patch adds the drive model name and capacity to the message so confused users might know which disk anaconda is talking about.
* Lots of small grammar and wording changes.Peter Jones2009-07-131-1/+1
| | | | Just auditing the world for clarity, don't mind me.
* Edit user-visible dialogs for style.Peter Jones2009-07-132-4/+4
| | | | | We have lots of strings that we display to users which are unclear or contain poor usage and grammar. That's bad.
* Don't write optical devices to /etc/fstab (#505697).Chris Lumens2009-07-131-0/+4
|
* error messages of zFCP on s390: log or pass to the UISteffen Maier2009-07-101-3/+9
|
* correctly delete a SCSI device provided by a zFCP LUN on s390Steffen Maier2009-07-101-9/+22
| | | | | | | Parsing of /proc/scsi/scsi updated to work with latest zFCP. Matching SCSI ID correctly with all of zFCP device, WWPN, and LUN. Synchronization with udev_settle. Error case is handled gracefully and reports user readable error message.
* All other teardown methods take a "recursive" argument (#506166).Chris Lumens2009-07-101-1/+1
|
* Add support for biosraid using mdadmHans de Goede2009-07-093-12/+20
|
* Reverse: "Support for MD containers"Hans de Goede2009-07-093-105/+0
| | | | | | | | Reverse most of commit 9e4d2e76713c9c71dcdaf22767211c13be9b3668, because it currently is not working and MD containers can for 99.9 % be treated as regular mdarrays. The next patch from this set instead makes the necessary changes to use the regular mdarray handling code, reducing the amount of code.
* When all udev_is-foo() checks fail return instead of backtracingHans de Goede2009-07-091-0/+3
| | | | | | | | While testing isw bios raid using mdraid, I hit a backtrace caused by all udev_is-foo() checks failing. This patch logs an error and ignores the device instead of backtracing. I believe this may work around quite a few "'NoneType' object has no attribute Name" bugs we have open at the moment.
* Indicate LV status according to lv_attr active bit (#491754)David Cantrell2009-07-081-0/+16
| | | | | | | | | | | | | | | | This should fix up a majority, if not all, of the 'cannot commit to disk after 5 attempts' errors. I was hitting this today. The cause I found to be active logical volumes still around when the storage code wanted to commit changes to the disk. When a logical volume is active, libparted is getting EBUSY when it tries to commit changes to the disk and tell the kernel to reread the partition table. If the LV is active, we need to deactivate it and the volume group before we start committing changes to disk. Adding a status() property to LVMLogicalVolumeDevice that looks at the lv_attr field for an 'a' fixes the problem for me on F-11. All of the code to down LVM devices is there, we just weren't checking the LV status correctly.
* 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.
* Add FCoE disks to the devicetree with a type of FcoeDiskDeviceHans de Goede2009-07-021-0/+5
| | | | | Add FCoE disks to the devicetree with a type of FcoeDiskDevice instead of DiskDevice
* Add FcoeDiskDevice class to storage/devices.pyHans de Goede2009-07-021-3/+18
|
* Add FCoE support to storage/udev.pyHans de Goede2009-07-021-0/+27
| | | | | | Add the ability to identify if a disk is an FCoE device and to get the identifier of the disk and the name of the NIC used to connect to an FCoE disk
* Write out configuration of FCoE to installed systemHans de Goede2009-07-021-1/+17
| | | | | Write out an /etc/fcoe/cfg-eth# file for each nic used to connect to an FCoE SAN during the install.
* Initial FCoE supportHans de Goede2009-07-022-0/+97
| | | | | | | | | | | | | | | This patch adds support for using FCoE during the installation. This patch merely lays the initial ground work, there is more work todo: - The system will not boot without manual help after the install, as dracut / mkinitrd do not support FCoE yet - If FCoE is not used for / but for example for /srv, then information about the nic used for FCoE needs to be written in a to be defined config file in the system, and rc.sysinit needs to be thought to read this file and bring up FCoE SAN's / Fabrics not used for / - kickstart support for FCoE still needs to be done
* Fix upgrade selected in UI after storage reset (#503302)Radek Vykydal2009-07-021-0/+2
| | | | | | | Fix of this UI flow: doing storage reset after root partitions discovery (e.g. in partitioning step) and then going back and selecting upgrade. In place of using root partition device objects obsoleted by storage reset, find root partition devices of new device tree.
* Update code that checks for devices that contain install media.David Lehman2009-07-013-11/+9
|