Bug 224635
| Summary: | kickstart doesn't create LVM vol for swap | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Doug Chapman <dchapman> |
| Component: | anaconda | Assignee: | Peter Jones <pjones> |
| Status: | CLOSED RAWHIDE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2007-05-04 20:48:30 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
If I remove the /dev/sdb swap partition from my kickstart conf (the swap partition that is not under lvm control) the install works. learpart --all part /boot/efi --fstype vfat --size=100 --ondisk=sda # part swap --size=2000 --grow --ondisk=sdb part pv.30 --size=0 --grow --ondisk=sda volgroup VolGroup00 --pesize=32768 pv.30 logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=992 --grow --maxsize=1984 Perhaps something is telling lvm to look at /dev/sdb? Are there any messages on tty1 or tty3? This was a serial console install so there wasn't any easy way to get at this. If I get caught back up with RHEL5 testing today I will reprodue and get more info. /dev/VolGroup00/ is disappearing when the swap filesystems are being formatted, I believe in swapFileSystem.labelDevice, in fsset.py. Investigating... Peter's fixes to partedUtils.py on the rhel5 branch appears to fix this problem.
He just needs to port those changes over to head.
2007-01-09 Peter Jones <pjones>
* partedUtils.py (DiskSet.openDevices):
- Revert ksdata.clearpart["done"] patch
- Move stuff to helper functions
- only initialize disks once (#220021)
- hopefully, make the code a little bit more readable
FYI, this is still broken in the same manner. I don't know if it was fixed and then regressed since I have been out for the past 2 months. I am currently using rawhide-20070419 on ia64 which includes: anaconda-11.2.0.52-1 parted-1.8.6-4.fc7 This should be fixed in the next build. Our LVM device nodes were getting removed due to overzealous use of lvm.vgdeactivate. |
Description of problem: During a kickstart install it complained the swap lvm volume doesn't exist: Error enabling swap device VolGroup00/LogVol01: No such file or directory This most likely means this swap partition has not been initialized. Press OK to reboot your system. here is the partitioning secion of my kickstart file: clearpart --all part /boot/efi --fstype vfat --size=100 --ondisk=sda part swap --size=2000 --grow --ondisk=sdb part pv.30 --size=0 --grow --ondisk=sda volgroup VolGroup00 --pesize=32768 pv.30 logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=992 --grow --maxsize=1984 Version-Release number of selected component (if applicable): rawhide-20070125 anaconda-11.2.0.17-1 lvm2-2.02.19-2.fc7 How reproducible: 100% Steps to Reproduce: 1. kickstart install with partitioning scheme shown above 2. 3. Actual results: Expected results: Additional info: