Bug 34775 - RFE: vgchange -a n should be called on /etc/init.d/halt when lvm-module is loaded
Summary: RFE: vgchange -a n should be called on /etc/init.d/halt when lvm-module is lo...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.1
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-04-04 23:24 UTC by Arenas Belon, Carlo Marcelo
Modified: 2014-03-17 02:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-01-13 22:17:59 UTC
Embargoed:


Attachments (Terms of Use)
patch to /etc/init.d/halt for shuting down the LVM system on halt. (520 bytes, patch)
2001-04-04 23:29 UTC, Arenas Belon, Carlo Marcelo
no flags Details | Diff
FIXED patch, use this (475 bytes, patch)
2001-04-05 02:29 UTC, Arenas Belon, Carlo Marcelo
no flags Details | Diff
patch to initscripts-5.83 (RH7.1 gold) (476 bytes, patch)
2001-05-03 11:55 UTC, Arenas Belon, Carlo Marcelo
no flags Details | Diff

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


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