[linux-lvm] How can activate the LVM in start (fwd)
Paul Jakma
paul at clubi.ie
Tue May 16 00:43:09 UTC 2000
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 at clubi.ie>
To: Eric M. Hopper <hopper at omnifarious.mn.org>
Cc: Patrick Boutilier <boutilpj at ednet.ns.ca>, linux-lvm at 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 at clubi.ie
PGP5 key: http://www.clubi.ie/jakma/publickey.txt
-------------------------------------------
Fortune:
It is difficult to legislate morality in the absence of moral legislators.
More information about the linux-lvm
mailing list