[linux-lvm] How can activate the LVM in start (fwd)

Ragnar Kjørstad lvm at ragnark.vestdata.no
Tue Jun 13 15:28:13 UTC 2000

On Tue, May 16, 2000 at 01:43:09AM +0100, Paul Jakma wrote:
> the rc.sysinit stuff got stripped from my last message. here it is
> again, minus a few square brackets and hash symbols.
> ---------- Forwarded message ----------
> ## LVM
> #scan for VGs and create /dev entries.
> if [ -x /sbin/vgscan -a -f /proc/lvm ]; then
>        action "LVM: Scanning for Volume Groups" /sbin/vgscan
> fi
> #activate all VGs
> if [ -x /sbin/vgchange -a -f /proc/lvm ]; then
>        action "LVM: Activating Volume Groups" /sbin/vgchange -ay
> fi
> ## End LVM


Another way is to do it from conf.modules:

alias block-major-58      lvm-mod
alias char-major-109      lvm-mod
post-install lvm-mod vgscan && vgchange -a y

It saves checking that lvm got loaded. 

Ragnar Kjorstad

More information about the linux-lvm mailing list