Bug 856209

Summary: Use vgchange -aay in rc.sysinit and netfs init script
Product: Red Hat Enterprise Linux 6 Reporter: Peter Rajnoha <prajnoha>
Component: initscriptsAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: high    
Version: 6.4CC: azelinka, jscotka, ovasik, pdemmers, vpavlin
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: initscripts-9.03.32-1.el6 Doc Type: Bug Fix
Doc Text:
Cause: Calling vgchange -a y instead of vgchange -a ay in sysinit and netfs Consequence: All volumes were activated Fix: Call vgchange -a ay Result: With this setting, only the volumes that are declared to be activate are actually activated (see also rhbz #817866). If the list is not declared, all volumes are activated by default (which is the classic old way).
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 10:26:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
lvm patch none

Description Peter Rajnoha 2012-09-11 12:58:26 UTC
lvm2-2.02.97-2.el6 and higher contains code that supports auto-activation feature and "activation/auto_activation_volume_list" declared in lvm.conf. With this setting, only the volumes that are declared to be activate are actually activated (see also rhbz #817866). If the list is not declared, all volumes are activated by default (which is the classic old way).

For this feature to work correctly on boot as well, we need initscripts (the /etc/rc.sysinit and /etc/init.d/netfs script) to call:
 
    vgchange --sysinit -a ay

(instead of former "vgchange --sysinit -a y", the extra "a" in "-a ay" meaning "AutoActivate").

Since lower versions of lvm2 do not understand the new setting/activation scheme, we need initscripts to declare a proper dependency on this new lvm2 version in the spec file as well.

Comment 1 Lukáš Nykrýn 2012-09-11 14:07:31 UTC
Created attachment 611775 [details]
lvm patch

Comment 8 errata-xmlrpc 2013-02-21 10:26:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0518.html