Bug 140329

Summary: Duplicate ext3 label created while installing to multiple disks
Product: [Fedora] Fedora Reporter: Bob Allison <rallison>
Component: lvm2Assignee: Alasdair Kergon <agk>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: amit_bhutani, nobody+pnasrat, notting
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2005-192 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-01-05 17:26:14 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:

Description Bob Allison 2004-11-22 12:18:17 UTC
Description of problem:
I am installing Fedora Core 3 to a machine with one IDE drive and one
SCSI drive (hda and sda).  I am doing a reinstall of the entire system
using kickstart (all partitions on both drives removed and rebuilt).

The IDE drive get partitions hda1 (ext3, /boot) and hda2 (LVM).  The
SCSI drive gets partition sda1 (LVM).  The partitions get created, the
filesystems get formatted, and the installation works just fine.

When the system reboots afterwards, I get the message "mount:
LABEL=/boot duplicate - not mounted".  It turns out that hda1 and sda1
are both labelled as /boot.


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


How reproducible: Every time I re-install this system


Steps to Reproduce:
1. Re-install system
2. Reboot
  
Actual results:
Error mounting /boot

Expected results:
/boot mounted

Additional info:

Comment 1 Jeremy Katz 2004-11-22 16:23:15 UTC
This is because the pvcreate on sda1 isn't wiping out the ext3 metadata.

Comment 2 Bob Allison 2004-11-22 16:37:05 UTC
I assume that "dd if=/dev/zero of=/dev/sda bs=1024 count=?" will clear
this out to eliminate the message, but how much so I need to clear?

Comment 3 Alasdair Kergon 2004-12-21 17:11:33 UTC
So pvcreate needs to check for this and optionally wipe it.

Comment 4 Alasdair Kergon 2005-01-05 16:15:13 UTC
Suggest we add the -Z option to pvcreate [like lvcreate], with default
value 'yes' unless 'restorefile' or 'uuid' are specified.

Comment 5 Alasdair Kergon 2005-01-05 17:26:14 UTC
In CVS, will get rolled up into next release.

Comment 6 Alasdair Kergon 2005-01-05 17:31:00 UTC
BTW the ext label to wipe is in sector 2 ie wipe 512 bytes at 1024

Comment 7 Alasdair Kergon 2005-01-13 23:30:43 UTC
*** Bug 144827 has been marked as a duplicate of this bug. ***

Comment 8 Alasdair Kergon 2005-01-14 10:02:31 UTC
*** Bug 145082 has been marked as a duplicate of this bug. ***

Comment 9 Tim Powers 2005-06-09 12:29:57 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2005-192.html