* [linux-lvm] Startup/Shutdown scripts for RH6.2?
@ 2001-02-19 13:15 Jeffrey B Layton
2001-02-20 11:19 ` Gashaw Mengistu
0 siblings, 1 reply; 3+ messages in thread
From: Jeffrey B Layton @ 2001-02-19 13:15 UTC (permalink / raw)
To: linux-lvm
Hello,
Of course I'm a newbie :) I'm been experimenting with LVM
prior to a production installation. I've got everything working
pretty well with a RH6.2 installation and a custom kernel.
However, I'm a bit stuck on the startup/shutdown scripts. I've
tried a couple of things after searching the archives, but nothing
seems to work (i.e. the volume groups are not found and then
mount complains very loudly). Any suggestions/tips/code?
TIA,
Jeff Layton
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Startup/Shutdown scripts for RH6.2?
2001-02-19 13:15 [linux-lvm] Startup/Shutdown scripts for RH6.2? Jeffrey B Layton
@ 2001-02-20 11:19 ` Gashaw Mengistu
2001-02-20 19:10 ` Andreas Dilger
0 siblings, 1 reply; 3+ messages in thread
From: Gashaw Mengistu @ 2001-02-20 11:19 UTC (permalink / raw)
To: linux-lvm
I had the same problem too at one time. But I added appended script in
/etc/rc.d/rc.sysinit right after the RAID initialization and right before
the file system starts getting checked (before _RUN_QUOTACHECK). I added
the stop script in /etc/init.d/halt.
I found this script in the group archive.
## LVM
#scan for VGs and create /dev entries.
if [ -x /sbin/vgscan -a -d /proc/lvm ]; then
action "LVM: Scanning for Volume Groups" /sbin/vgscan
fi
#activate all VGs
if [ -x /sbin/vgchange -a -e /proc/lvm ]; then
action "LVM: Activating Volume Groups" /sbin/vgchange -ay
fi
## End LVM
Hope this helps
On Mon, 19 Feb 2001, Jeffrey B Layton wrote:
> Hello,
>
> Of course I'm a newbie :) I'm been experimenting with LVM
> prior to a production installation. I've got everything working
> pretty well with a RH6.2 installation and a custom kernel.
> However, I'm a bit stuck on the startup/shutdown scripts. I've
> tried a couple of things after searching the archives, but nothing
> seems to work (i.e. the volume groups are not found and then
> mount complains very loudly). Any suggestions/tips/code?
>
> TIA,
>
> Jeff Layton
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Startup/Shutdown scripts for RH6.2?
2001-02-20 11:19 ` Gashaw Mengistu
@ 2001-02-20 19:10 ` Andreas Dilger
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Dilger @ 2001-02-20 19:10 UTC (permalink / raw)
To: linux-lvm
Gashaw Mengistu writes:
> I had the same problem too at one time. But I added appended script in
> /etc/rc.d/rc.sysinit right after the RAID initialization and right before
> the file system starts getting checked (before _RUN_QUOTACHECK). I added
> the stop script in /etc/init.d/halt.
> I found this script in the group archive.
>
> ## LVM
> #scan for VGs and create /dev entries.
> if [ -x /sbin/vgscan -a -d /proc/lvm ]; then
> action "LVM: Scanning for Volume Groups" /sbin/vgscan
> fi
> #activate all VGs
> if [ -x /sbin/vgchange -a -e /proc/lvm ]; then
> action "LVM: Activating Volume Groups" /sbin/vgchange -ay
> fi
> ## End LVM
This will only work (AFAICS) when LVM is compiled into the kernel, because
/proc/lvm will not exist if it is a module. My startup has this first:
[ ! -e /proc/lvm ] && (modprobe lvm || modprobe lvm_mod) 2> /dev/null
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-02-20 19:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-19 13:15 [linux-lvm] Startup/Shutdown scripts for RH6.2? Jeffrey B Layton
2001-02-20 11:19 ` Gashaw Mengistu
2001-02-20 19:10 ` Andreas Dilger
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).