Bug 683873 - --onpart/--ondisk doesn't work - could not allocate requested partitions
Summary: --onpart/--ondisk doesn't work - could not allocate requested partitions
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda
Version: 6.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Keywords:
Depends On:
Blocks: 621515 670159
TreeView+ depends on / blocked
 
Reported: 2011-03-10 14:55 UTC by Alexander Todorov
Modified: 2011-03-10 15:37 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2011-03-10 15:37:39 UTC


Attachments (Terms of Use)
anaconda.log (6.49 KB, text/plain)
2011-03-10 14:55 UTC, Alexander Todorov
no flags Details
program.log (43.11 KB, text/plain)
2011-03-10 14:55 UTC, Alexander Todorov
no flags Details
storage.log (76.09 KB, text/plain)
2011-03-10 14:55 UTC, Alexander Todorov
no flags Details
syslog (61.84 KB, text/plain)
2011-03-10 14:55 UTC, Alexander Todorov
no flags Details

Description Alexander Todorov 2011-03-10 14:55:09 UTC
Created attachment 483471 [details]
anaconda.log

Description of problem:
When trying to reprovision a RHEL6.1 system using the --onpart/--ondisk parameters I get an error and install stops.

Version-Release number of selected component (if applicable):
anaconda-13.21.104-1.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install a KVM domU with 2 virtio disks where /boot, swap and / are on vda1 and /mydata on vda2. Write down the symlinks in /dev/disk/by-path. 
2. Reinstall the same system using ks.cfg:

bootloader --location=mbr
clearpart --none

part /boot --fstype=ext4 --size=1024 --ondisk=/dev/disk/by-path/pci-0000:00:05.0-virtio-pci-virtio1
part swap --size=1024 --ondisk=/dev/disk/by-path/pci-0000:00:05.0-virtio-pci-virtio1
part / --fstype=ext4 --size=500 --grow --ondisk=/dev/disk/by-path/pci-0000:00:05.0-virtio-pci-virtio1

part /mydata --fstype=ext4 --onpart=/dev/disk/by-path/pci-0000:00:06.0-virtio-pci-virtio2-part1 --noformat --size=500 --grow

3.
  
Actual results:
An error - Could not allocate requested partitions.

Expected results:
System is reinstalled. /mydata is intact.

Additional info:
See attached log files.

Comment 1 Alexander Todorov 2011-03-10 14:55:40 UTC
Created attachment 483472 [details]
program.log

Comment 2 Alexander Todorov 2011-03-10 14:55:51 UTC
Created attachment 483473 [details]
storage.log

Comment 3 Alexander Todorov 2011-03-10 14:55:58 UTC
Created attachment 483474 [details]
syslog

Comment 4 David Lehman 2011-03-10 15:37:39 UTC
Your vda is completely full of partitions. You specify clearpart --none and then proceed to try to allocate three partitions on the same (full) disk of sizes 500, 1024, 1024. Of course it fails.


Note You need to log in before you can comment on or make changes to this bug.