Bug 53760 - kickstart partitioning an already-partitioned disk fails
Summary: kickstart partitioning an already-partitioned disk fails
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: anaconda
Version: 7.3
Hardware: ia64
OS: Linux
high
high
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-09-17 21:34 UTC by Matt Domsch
Modified: 2005-10-31 22:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-09-18 16:02:23 UTC
Embargoed:


Attachments (Terms of Use)

Description Matt Domsch 2001-09-17 21:34:23 UTC
Description of Problem:
Kickstart partitioning of an already-partitioned disk fails in Fairfax IA-
64 RC1 (roswell2 - 18 August 2001).

At anaconda start, disk /dev/sda has three partitions on a GPT disk:
 /dev/sda1  /boot/efi   100MB
 /dev/sda2  swap        2047MB
 /dev/sda3  /           rest of disk

Kickstart file has the following:

# P A R T I T I O N   S P E C I F I C A T I O N
zerombr yes
clearpart --linux
part /boot/efi --ondisk sda --onpart sda1 --noformat
part /         --fstype ext3 --size=1024 --ondisk=sda 
part /usr      --fstype ext3 --size=4096 --ondisk=sda 
part swap      --fstype swap --size=2048 --ondisk=sda 
part /tmp      --fstype ext3 --size=512  --ondisk=sda 
part /var      --fstype ext3 --size=64	 --ondisk=sda --grow

This *should* clear the ext2/3 and swap partitions, but hopefully not the 
EFI System Partition.  I'd like to keep the existing EFI System Partition, 
as-is.


Anaconda displays the following message:
  Unable to locate partition sda2 to use for /boot/efi
Clearly it's got some counting wrong, as sda1 should be /boot/efi.

The kernel has this message:
  device busy for revalidation (usage=2)
df and /proc/mounts don't show anything mounted
/proc/modules shows that the megaraid module (where sda lives) has a use 
count of 1.
/proc/partitions shows the three original partitions, sda[123].
parted /dev/sda print shows the disk has 0 partitions, and warns that the 
kernel's idea of partitions was not updated.

Version-Release number of selected component (if applicable):


How Reproducible:
Always

Comment 1 Jeremy Katz 2001-09-18 16:02:17 UTC
zerombr didn't act quite right in RC1, but this should be fixed now.  I'll
double-check here once I finish running some other tests.

Comment 2 Jeremy Katz 2001-09-18 19:43:56 UTC
Yep, looks like it does the right thing with the current code base.


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