* Re: [linux-lvm] How can activate the LVM in start (fwd)
@ 2000-05-16 0:43 Paul Jakma
2000-06-13 15:28 ` Ragnar Kjørstad
0 siblings, 1 reply; 2+ messages in thread
From: Paul Jakma @ 2000-05-16 0:43 UTC (permalink / raw)
To: Linux LVM list
the rc.sysinit stuff got stripped from my last message. here it is
again, minus a few square brackets and hash symbols.
---------- Forwarded message ----------
Date: Tue, 16 May 2000 00:58:38 +0100 (IST)
From: Paul Jakma <paul@clubi.ie>
To: Eric M. Hopper <hopper@omnifarious.mn.org>
Cc: Patrick Boutilier <boutilpj@ednet.ns.ca>, linux-lvm@msede.com
Subject: Re: [linux-lvm] How can activate the LVM in start
On Mon, 15 May 2000, Eric M. Hopper wrote:
That's all fine and good, but where in rc.sysinit? I tried
putting it just before the root filesystems are mounted read/write, and
that didn't seem to work.
procfs must be mounted, and /etc must be rw. i have it as:
# Remount the root filesystem read-write.
action "Remounting root filesystem in read-write mode" mount -n -o remount,rw /
## 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
regards,
--
Paul Jakma paul@clubi.ie
PGP5 key: http://www.clubi.ie/jakma/publickey.txt
-------------------------------------------
Fortune:
It is difficult to legislate morality in the absence of moral legislators.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] How can activate the LVM in start (fwd)
2000-05-16 0:43 [linux-lvm] How can activate the LVM in start (fwd) Paul Jakma
@ 2000-06-13 15:28 ` Ragnar Kjørstad
0 siblings, 0 replies; 2+ messages in thread
From: Ragnar Kjørstad @ 2000-06-13 15:28 UTC (permalink / raw)
To: Paul Jakma; +Cc: Linux LVM list
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-06-13 15:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-16 0:43 [linux-lvm] How can activate the LVM in start (fwd) Paul Jakma
2000-06-13 15:28 ` Ragnar Kjørstad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).