Bug 145082

Summary: lvm2 doesn't clear all filesystem metadata
Product: [Fedora] Fedora Reporter: Bill Nottingham <notting>
Component: lvm2Assignee: Alasdair Kergon <agk>
Status: CLOSED DUPLICATE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 3CC: katzj, rvokal
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: 2005-01-27 17:36:44 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 Bill Nottingham 2005-01-14 07:11:25 UTC
Create a RAID-1 array, md0. Then do the following:

mke2fs /dev/md0
e2label /dev/md0 foo
add to /etc/fstab:
 LABEL=foo /misc ext3 defaults 1 1
mount /misc
<look at filesystem>

umount /misc
pvcreate /dev/md0
vgcreate wibble /dev/md0
lvcreate --size=<whatever> -name wow bar
mke2fs /dev/bar/wow
e2label /dev/bar/wow foo

Then:

# mount /misc
mount: error: the label foo occurs on both md0 and dm-0

Shouldn't making the LVM volume get rid of the old filesystem label
somehow?  You can always run 'e2label /dev/md0 ""' to delete the
label, but running that on the the raw RAID volume under the LVM seems
unwise.

Comment 1 Alasdair Kergon 2005-01-14 10:02:19 UTC

*** This bug has been marked as a duplicate of 140329 ***