Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 121963 - Mistake in LVM2 initialization
Mistake in LVM2 initialization
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
Depends On:
Blocks: FC2Blocker
  Show dependency treegraph
Reported: 2004-04-29 07:37 EDT by Petr Krištof
Modified: 2014-03-16 22:44 EDT (History)
1 user (show)

See Also:
Fixed In Version: 7.51-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-05-07 00:22:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
rc.sysinit-lvm2.patch (508 bytes, patch)
2004-04-29 07:38 EDT, Petr Krištof
no flags Details | Diff
rc.sysinit-lvm3.patch (571 bytes, patch)
2004-05-06 09:07 EDT, Petr Krištof
no flags Details | Diff

  None (edit)
Description Petr Krištof 2004-04-29 07:37:12 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)

Description of problem:
LVM2 init is done in rc.sysinit as:

# LVM2 initialization, take 2
        if [ -f /dev/mapper/control -a -x /sbin/lvm.static ]; then

It is wrong, because /dev/mapper/control is not regular file
but special control device.

This should be:

# LVM2 initialization, take 2
        if [ -e /dev/mapper/control -a -x /sbin/lvm.static ]; then

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

How reproducible:

Steps to Reproduce:
Use LVM2 on raid.

Actual Results:  Logical volumes are not initialized after boot.

Expected Results:  Logical volumes must be initialized after boot.

Additional info:

IMHO it is the primary cause of many lvm or raid related bugs filled
in bugzilla.
Comment 1 Petr Krištof 2004-04-29 07:38:02 EDT
Created attachment 99771 [details]

Easy to fix.
Comment 2 Bill Nottingham 2004-05-03 17:16:26 EDT
Changed in 7.51-1 to -c /dev/....

Comment 3 Petr Krištof 2004-05-06 09:07:10 EDT
Created attachment 100043 [details]

The way you corrected it is better. BUT.
This fragment of code is in two different places in rc.sysinit script.
So I suggest to fix the another place too. :-)
Comment 4 Jeremy Katz 2004-05-07 00:22:07 EDT
Thanks, fixed

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