| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
We make names from mount points and host names, both of which can contain
characters that are invalid to LVM. The dash is the most promiment case here.
Checks get run when the user enters these bad characters, but not when anaconda
made up the names automatically. So strip dashes out of the generated names
before feeding them to LVM.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Try to name volume groups as vg_HOSTNAME and logical volumes as
lv_MOUNTPOINT, if we can. Swap partitions will be lv_swapNN where
NN is a unique number in the instance where more than one swap
partition in use. The / partition will get the name lv_root.
Fall back on the old naming system (VolGroupNN for volume groups
and LogVolNN for logical volumes) for people doing custom setup
or where the hostname is localhost.
For swap partition naming, tack on an NN designation when there
are more than 1 swap partitions requested. If only one is
requested, it will be "lv_swap".
|
|
|
|
|
|
| |
pvdisplay is finding devices with names like /dev/dm-0,
which is not useful to us since we use names like
/dev/mapper/luks-<uuid>.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
* lvm.py: Still log real errors instead of hiding in lvmError
|
|
|
|
| |
already
|
| |
|
| |
|
|
|
|
|
| |
the command is no longer the first argument, since subprocess doesn't work
that way. Remove unneeded /proc/e820info cruft. Remove iutil.rmrf.
|
| |
|
|
|
|
| |
/proc/devices file.
|
| |
|
|
|
|
|
| |
- write a filter into our temporary lvm.conf
- unlink the lvm cache when we write a new config
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
<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 (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.py (partialvgs): Detect partial volume groups.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* wipe md superblocks if we successfully create a pv (#130713)
* disable filtering for all of our creates. I know better than the
tools (#130706)
|
| |
|
| |
|
|
|
|
| |
vgs
|
|
|
|
| |
/sbin/lvm
|
|
|
|
| |
the output of {pv,lv,vg}display
|
| |
|
|
|
|
| |
vgmknodes after turning on volume groups
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
and cleanups in here too
|
|
|
|
|
|
| |
as the lvm1 tools seem to segfault often :/
not perfect but the segfault bug reports are getting old.
|
|
|
|
| |
if not. this keeps them from dying horrible deaths :)
|
| |
|
| |
|
| |
|
| |
|
| |
|