Bug 207544

Summary: mkinitrd fails to add lvm components when clustering is enabled.
Product: Red Hat Enterprise Linux 5 Reporter: Sandeep K. Shandilya <sandeep_k_shandilya>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 5.0CC: jlaska, kanderso, rkenna, wwlinuxengineering
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: mkinitrd-5.1.19-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-26 11:49:41 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:
Bug Depends On:    
Bug Blocks: 200812    

Description Sandeep K. Shandilya 2006-09-21 15:40:22 UTC
Description of problem:
mkinitrd does not add lvm details even if the current installation is on an lvm
and clustering is enabled.
Version-Release number of selected component (if applicable):
beta1


How reproducible:
always


Steps to Reproduce:
1. Install RHEL5 beta1 on lvm
2. run a mkinitrd on the current kernel.
3. uncompress the initrd
  
Actual results:
The initrd does not contain the lvm modules and the init script in the initrd
does not load them.

Expected results:
The lvm components should be in the initrd.

Additional info:
vgscan doesn not run it exits with the message
Locking_type 2 initialisation failed.
Change the locking type to 1 /etc/lvm/lvm.conf and everything works fine.

Comment 1 Peter Jones 2006-09-25 17:44:43 UTC
Could you include the steps you used to enable clustering here?  We don't do
that in the installer, so there's some step you've left out, and I want to make
sure I'm addressing the correct scenario.

Comment 2 Sandeep K. Shandilya 2006-09-27 11:06:05 UTC
(In reply to comment #1)
> Could you include the steps you used to enable clustering here?  We don't do
> that in the installer, so there's some step you've left out, and I want to make
> sure I'm addressing the correct scenario.
Hello

Clustering is not enabled on system as yet but the lvm.conf file has the line
locking_type=2 and all commands like vgscan abort with the message
Connect() failed on local socket: Connection refused
Locking type 2 Initialisation failed
If I edit lvm.conf and change locking_type=1 then everything works fine and the
initrd is correctly built.




Comment 3 Sandeep K. Shandilya 2006-09-27 15:12:55 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Could you include the steps you used to enable clustering here?  We don't do
> > that in the installer, so there's some step you've left out, and I want to make
> > sure I'm addressing the correct scenario.
> Hello
> 
> Clustering is not enabled on system as yet(selected for install by
> using the install key VCS)but the lvm.conf file has the line
> locking_type=2 and all commands like vgscan abort with the message
> Connect() failed on local socket: Connection refused
> Locking type 2 Initialisation failed
> If I edit lvm.conf and change locking_type=1 then everything works fine and the
> initrd is correctly built.


Comment 4 Peter Jones 2006-09-27 21:54:36 UTC
We don't install with locking_type=2 .  How is it getting set to that value?

Comment 5 Sandeep K. Shandilya 2006-09-28 06:46:11 UTC
(In reply to comment #4)
> We don't install with locking_type=2 .  How is it getting set to that value?
During installation there is a prompt for the serial no, I enter VCS (means I 
choose Virutalisation, Clustering and and Advanced Storage) and I see that 
locking type is set to 2 in lvm.conf. That may be the real issue.


Comment 6 RHEL Program Management 2006-10-12 13:33:41 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux release.  Product Management has requested further review
of this request by Red Hat Engineering.  This request is not yet committed for
inclusion in release.

Comment 10 Peter Jones 2006-10-17 21:59:28 UTC
Can you please try this with a more recent tree than beta1, and report if it's
still a problem?

Comment 11 Sandeep K. Shandilya 2006-10-19 09:11:40 UTC
(In reply to comment #10)
> Can you please try this with a more recent tree than beta1, and report if it's
> still a problem?

tried with the latest weekly build with
mkinitrd version 5.1.19-1.
lvm2 or lvm2-clustering version 2.02.10-1.0.RHEL5
The issue does not occur. This has been fixed.