Bug 151322 - rc.sysinit incorrectly activates clustered LVs locally
rc.sysinit incorrectly activates clustered LVs locally
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: lvm2 (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Alasdair Kergon
Depends On:
Blocks: 144795
  Show dependency treegraph
Reported: 2005-03-16 17:43 EST by Alasdair Kergon
Modified: 2007-11-30 17:07 EST (History)
2 users (show)

See Also:
Fixed In Version: RHBA-2005-192
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-03-23 10:23:35 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Alasdair Kergon 2005-03-16 17:43:36 EST
rc.sysinit runs vgchange -ay --ignorelockingfailure
which attempts to activate all visible LVs.

It should only be activating LVs required for local filesystems such as /usr or

Clustered logical volumes then get activated later by the clvmd init script.
Comment 1 Alasdair Kergon 2005-03-16 17:55:53 EST
Follows on from:

  [Bug 151172] Updating kernel on node with lvm root vols renders machine unbootable

That one stops you booting; this one means the wrong volume groups might be
activated on the wrong machines.
e.g. if you activated an LV exclusively on one node, this bug means another node
would pay no regard to that during the boot sequence and happily mount it

This bug has no impact if every VG is meant to be activated on every node, or if
the configuration is completely determined by the tagging & config files -
you're just activating the LVs too soon, and when clvmd comes along it'll go and
get the locks that should have been got earlier.

Comment 2 Alasdair Kergon 2005-03-16 17:59:59 EST
I'm investigating fixing this by adding a 'clustered' flag and ensuring that the
initscripts ignore LVs that inherit this flag.
Comment 3 Alasdair Kergon 2005-03-22 12:34:24 EST
Flag added in 2.01.08:

- VGs that are meant to be clustered have a 'CLUSTERED' flag added to them.
- vgcreate adds the flag automatically if you're using clustered locking,
otherwise it doesn't.
- Flag can be changed with vgchange -c.
- vgchange -ay --ignorelockingfailure (used by the initscripts and the new
mkinitrd) now ignores LVs with the CLUSTERED flag set.
Comment 4 Tim Powers 2005-06-09 08:30:01 EDT
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.


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