Red Hat Bugzilla – Bug 171868
pvcreate /dev/md0 is broken with 2.6.12-1.1380_FC3
Last modified: 2015-07-20 15:43:12 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc3 Firefox/1.0.7
Description of problem:
# This small test freeze under 2.6.12-1.1380_FC3
# but it's works well on 2.6.12-1.1378_FC3
# uname -a
Linux boson 2.6.12-1.1380_FC3 #1 Wed Oct 19 20:34:13 EDT 2005 i686 i686 i386 GNU/Linux
# fdisk -l /dev/hda | grep hda11
/dev/hda11 70566 77545 3517888+ 83 Linux
# mdadm -C /dev/md0 -l 1 -n 2 /dev/hda11 missing
mdadm: /dev/hda11 appears to contain an ext2fs file system
size=3517888K mtime=Mon Sep 12 11:08:03 2005
Continue creating array? y
mdadm: array /dev/md0 started.
# pvcreate /dev/md0
... the shell freeze and the physical volume is not initialised ...
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1) mdadm -C /dev/md0 -l 1 -n 2 /dev/hda11 missing
2) pvcreate /dev/md0
Actual Results: ... the shell freeze and the physical volume is not initialised ...
For exemple, it is now impossible to do these 2 commands :
mdadm -S /dev/md0
It is also impossible to kill these 2 process :
root 3946 1 0 18:52 ? 00:00:00 [md0_raid1]
root 3954 3895 0 18:52 pts/2 00:00:00 pvcreate /dev/md0
The system is unable to shutdown properly.
Trying to shutdown using : init 6
The system start to shutdown, but at the very end,
it send the following error message:
"umount2: Device or resource busy" and wait indefinitly...
So, you need to poweroff.
Expected Results: The physical volume correctly initialised over /dev/md0
pvcreate /dev/hda11 is working
The problem is only seen when used over an md device (I have only tested with md raid1)
I also have tested with kernel 2.6.12-1.1376_FC3. It works well.
I have tested on differents machines. Kernel 1380 always failed.
A simple way that show the problem if no physical partition is free for the test.
Steps to reproduce
1) dd if=/dev/zero of=/Test_file bs=1k count=10000
2) losetup /dev/loop0 /Test_file
3) mdadm -C /dev/md0 -l 1 -n 2 /dev/loop0 missing
4) pvcreate /dev/md0
This problem no more exist under the kernel 2.6.12-1.1381_FC3
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.