[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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

Hi.

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]