Bug 34775

Summary: RFE: vgchange -a n should be called on /etc/init.d/halt when lvm-module is loaded
Product: [Retired] Red Hat Linux Reporter: Arenas Belon, Carlo Marcelo <carenas>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: low    
Version: 7.1CC: rvokal
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-13 22:17:59 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:
Attachments:
Description Flags
patch to /etc/init.d/halt for shuting down the LVM system on halt.
none
FIXED patch, use this
none
patch to initscripts-5.83 (RH7.1 gold) none

Description Arenas Belon, Carlo Marcelo 2001-04-04 23:24:44 UTC
on rc.sysinit the lvm-mod is started but there is no corresponding stop
script.

as explained on lvm documentation, a:"vgchange -a n" call should be placed
on the shutdown script after dismounting all filesystems.

Comment 1 Arenas Belon, Carlo Marcelo 2001-04-04 23:29:56 UTC
Created attachment 14665 [details]
patch to /etc/init.d/halt for shuting down the LVM system on halt.

Comment 2 Arenas Belon, Carlo Marcelo 2001-04-05 01:25:45 UTC
ok, here i come again.. with a new and TESTED patch that really works, no more
check forced on /usr after all.

Comment 3 Arenas Belon, Carlo Marcelo 2001-04-05 02:29:05 UTC
Created attachment 14683 [details]
FIXED patch, use this

Comment 4 Arenas Belon, Carlo Marcelo 2001-05-03 11:54:41 UTC
updated patch for RH7.1 gold (just a change on the directory name anyway).

calling vgchange -a n on halt is not really needed now as no metadata is saved
on the vg, but this could change soon and this is documented as a need for lvm
installations

Comment 5 Arenas Belon, Carlo Marcelo 2001-05-03 11:55:56 UTC
Created attachment 17206 [details]
patch to initscripts-5.83 (RH7.1 gold)

Comment 6 Bill Nottingham 2003-01-13 22:17:59 UTC
The kernel people say that this is not needed.

Comment 7 Arenas Belon, Carlo Marcelo 2003-01-13 23:57:02 UTC
it is not needed (that is why it was filled as an enhancement with low 
priority), but as you can read on LVM/{%version}/INSTALL (point 9) it is 
required as part of the LVM installation.

it does nothing when called because once you deactivate an LVM volume the only 
resource that could be freed is the LVM module and no data gets saved, but this 
could change on the future.

this patch is not recommended on systems that have the root filesystem on LVM 
though