summaryrefslogtreecommitdiffstats
path: root/lvm.py
Commit message (Collapse)AuthorAgeFilesLines
* Move all the exceptions into a single file.Chris Lumens2008-06-091-1/+1
|
* Fix a bunch of pychecker errors.Chris Lumens2008-01-121-1/+1
|
* Clean up typos and other things for GPLv2+ changes.David Cantrell2007-12-171-1/+1
| | | | | | | Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually we'll get an AUTHORS file and will just remove author names from the individual files. Also fixed a type in scripts/dumphdrlist.py where Author was listed twice.
* Common GPLv2+ boilerplate on toplevel python source files.David Cantrell2007-12-171-6/+14
| | | | | | Updated all *.py files to have a uniform GPL boilerplate. Expanded copyright year ranges and listed authors (if they were in the comment section) under the Red Hat Author(s) section.
* Backend code for logical volume resizingJeremy Katz2007-11-291-4/+20
|
* Change method for determining maximum Logical Volume size when on 2.6 kernelmsivak2007-09-061-1/+9
| | | | | | | 2007-09-06 Martin Sivak <msivak@redhat.com> * lvm.py(getMaxLVSize): Change method for determining maximum Logical Volume size when on 2.6 kernel (#242508)
* 2007-05-21 Jeremy Katz <katzj@redhat.com>f7-baseJeremy Katz2007-05-211-2/+4
| | | | * lvm.py: Still log real errors instead of hiding in lvmError
* - only activate/deactivate lvm in label scanning if there's nothing activePeter Jones2007-05-041-0/+26
| | | | already
* - improve lvm error handlingPeter Jones2007-02-071-50/+139
|
* - Can't LVM just fucking die?Peter Jones2007-01-041-1/+1
|
* Use subprocess instead of our own code. Fix all calls to execWith* soChris Lumens2006-07-121-51/+31
| | | | | the command is no longer the first argument, since subprocess doesn't work that way. Remove unneeded /proc/e820info cruft. Remove iutil.rmrf.
* SCREW THE S390David Cantrell2006-05-031-3/+0
|
* * lvm.py (has_lvm): Return if we're on S/390 and don't see aDavid Cantrell2006-05-031-0/+3
| | | | /proc/devices file.
* - kill lvm physical device caching; it's not needed any more.Peter Jones2005-12-111-17/+0
|
* - add -ff to pvremovePeter Jones2005-11-221-1/+22
| | | | | - write a filter into our temporary lvm.conf - unlink the lvm cache when we write a new config
* Lower log level of some messages.Chris Lumens2005-11-091-2/+2
|
* Converted a lot more messages to the new logging system, but there's stillChris Lumens2005-08-111-15/+17
| | | | | | 41 files to go. If your favorite log message needs to be on a different priority level, feel free to change it. Maybe we can have little commit wars over them.
* Delete snapshot LVs before their parentsPeter Jones2005-03-281-16/+28
|
* * autopart.py: fix growable size log to show IDs instead of python'sPeter Jones2005-03-071-1/+37
| | | | | | | | | | | | | | | | | | | | <instance> info. log how much free space we're starting with. don't clamp an lv's total size, instead clamp pv's sizes appropriately * lvm.py: remove and recreate all PVs when we do a vgremove, so they don't lose 1 PE each time due to an lvm2 bug. log what lvm commands are being run, since that doesn't go into lvmout. log total vs actual in getVGFreeSpace * partRequests.py: get rid of getPVSize, that way can't work (oopsie). remove bogus check in getActualSize. clamp totalspace for preexisting PVs. clamp each PV's size and trim 1 PE off when computing total space. don't clamp the LV's overall size. * iw/lvm_dialog_gui.py: clamp each PV and trim 1 PE when computing availSpaceMB. Ow. My head hurts. But autopartition actually works, and even shows the same numbers as the editor afterwards.
* * lvm.py (lvlist): return size in MB.Peter Jones2005-01-211-33/+18
| | | | | | | | | | | | | | | | | | | | | | | | * lvm.py (pvlist): return size in MB. * lvm.py (vglist): return size in MB, and pesize in KB. * lvm.py (clampLVSizeRequest): use math.ceil and math.floor for "roundup", so we don't need to special case "size % pe == 0" * lvm.py (clampPVSize): replace the completely broken code that fails to implement a size heuristic for lvm1. We still need to guess at the available size, but not here. * partRequest.py: add PartitionSpec.getPVSize, which returns a size for a Physical Volume given a partition. If there's no PV in the real partition, it guesses the size based on the free space. Make VolumeGroupRequestSpec.getActualSize use PartitonSpec.getPVSize instead of PartitionSpec.getActualSize * partitions.py: make Partitions.setFromDisk use the PE size from the volume group, so we don't give the wrong pesize to clamp later and create an LV with an invalid size. Also make it handle lv size in MB. make Partitions.getAvailLVMPartitions use the PV's size, not the partition's size. It'll estimate the size from the partition's size if there's no LV created yet. * iw/lvm_dialog_gui.py: use getPVSize instead of getActualSize for LVM physical volume sizes.
* LVM on RAID - (#141781)Paul Nasrat2004-12-141-1/+1
|
* actually find the partialsJeremy Katz2004-12-031-1/+1
|
* 2004-12-03 Jeremy Katz <katzj@redhat.com>Jeremy Katz2004-12-031-0/+20
| | | | * lvm.py (partialvgs): Detect partial volume groups.
* (merge from rhel4-branch)Jeremy Katz2004-11-231-8/+8
| | | | | | | | | | | | | 2004-11-23 Jeremy Katz <katzj@redhat.com> * textw/upgrade_bootloader_text.py (UpgradeBootloaderWindow.__call__): Set a default when we can't determine the boot loader to avoid indeterminate state (#139603) * lvm.py: Don't disable LVM if vgscan, et al segfault (#134263) * packages.py (doPreInstall): Don't remove the directories as they may not be empty (#133773)
* lvm.conf syntax fix (#130757)Jeremy Katz2004-08-241-1/+1
|
* Fix for IOError: [Errno 2] No such file or directory: '%s/lvm.conf'Paul Nasrat2004-08-241-1/+1
|
* Declare lvmroot - NameError: global name 'lvmroot' is not definedPaul Nasrat2004-08-241-0/+1
|
* some hacks to work around the lvm tools being stupidJeremy Katz2004-08-231-0/+34
| | | | | | * wipe md superblocks if we successfully create a pv (#130713) * disable filtering for all of our creates. I know better than the tools (#130706)
* capture stderr (#128814)Jeremy Katz2004-08-031-3/+6
|
* fix size reporting (#127535)Jeremy Katz2004-07-121-1/+0
|
* per request of agk, move to naming VolGroup instead of Volume by default forJeremy Katz2004-05-201-1/+1
| | | | vgs
* search path for lvm binary. disable lvm if we don't see /usr/sbin/lvm orJeremy Katz2003-12-221-3/+7
| | | | /sbin/lvm
* add some methods for getting lists of pvs, lvs, and vgs with lvm2 by parsingJeremy Katz2003-12-121-0/+57
| | | | the output of {pv,lv,vg}display
* minor fixesJeremy Katz2003-12-041-3/+3
|
* start trying to get working lvm. switch command names for lvm2, do aJeremy Katz2003-12-031-7/+19
| | | | vgmknodes after turning on volume groups
* merge from taroon. highlights of this time aroundJeremy Katz2003-06-231-3/+9
| | | | | | | | * ppc boot constraints * md5 endianness * don't prompt to save tracebacks to a floppy without a floppy * autopart for kickstart * network configuration in the loader if vnc/display case
* merge taroon branch. mostly package bits, but a lot of other misc stuffJeremy Katz2003-06-061-0/+1
| | | | and cleanups in here too
* if vgscan segfaults, don't traceback, just disable the use of lvm. especiallyJeremy Katz2003-01-061-1/+5
| | | | | | as the lvm1 tools seem to segfault often :/ not perfect but the segfault bug reports are getting old.
* figure out if we have lvm-mod loaded and don't try to run the lvm commands ↵Jeremy Katz2002-09-271-5/+26
| | | | if not. this keeps them from dying horrible deaths :)
* added some helper functions for volume groupsMike Fulbright2002-08-191-0/+17
|
* add ability to round up to next PE or not when clamping sizesMike Fulbright2002-08-161-2/+7
|
* round down or else we will use too much space in ks --percent mode rounding upMike Fulbright2002-08-141-1/+1
|
* don't pass in full pathnames with searchPath = 1Matt Wilson2002-07-081-6/+6
|
* back to anaconda paths for lvm tools, don't run them in test modeJeremy Katz2002-06-281-6/+17
|
* add constant for max LV slotsMike Fulbright2002-06-121-0/+2
|
* try to make informed guesses about how much overhead there is on a ↵Jeremy Katz2002-06-121-2/+25
| | | | per-physical volume basis. my eyes, my eyes.
* utility functions to suggest names for VG, LVMike Fulbright2002-06-121-0/+40
|
* some utility LVM funcsMike Fulbright2002-06-111-0/+16
|
* the lvm tools must die... even more forcing of no backupsJeremy Katz2002-06-111-3/+3
|
* helper functions for getting extents possible values and clamping LV sizes ↵Mike Fulbright2002-06-101-0/+28
| | | | to a PE value