From: Russell Coker <russell@coker.com.au>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] '/etc/init.d/lvm' script in debian package
Date: Sat, 23 Dec 2000 05:23:22 +1100 [thread overview]
Message-ID: <00122305232204.02330@lyta> (raw)
In-Reply-To: <Pine.LNX.4.31.0012211041260.9973-100000@falka.mfa.kfki.hu>
Here's my current effort:
#!/bin/sh
#
# lvm This script handles the LVM startup/shutdown
# so that LVMs are properly configured and available.
#
if [ "0" = `grep -c lvm /proc/devices` ]; then
exit 0
fi
[ -f /etc/lvmtab ] || exit 0
[ -x /sbin/vgscan ] || exit 0
case "$1" in
start)
echo "Setting up LVM Volume Groups..."
#/sbin/vgscan
/sbin/vgchange -a y
;;
stop)
echo "Shutting down LVM Volume Groups... "
/sbin/vgchange -a n
;;
restart|force-reload)
echo "Does not make sense to restart."
exit 1
;;
*)
echo "Usage: lvm {start|stop}" >&2
exit 1
;;
esac
--
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/ Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page
next prev parent reply other threads:[~2000-12-22 18:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-20 9:29 [linux-lvm] '/etc/init.d/lvm' script in debian package Gergely Tamas
2000-12-20 21:40 ` Russell Coker
2000-12-20 22:21 ` Claudio Matsuoka
2000-12-20 23:08 ` Andreas Dilger
2000-12-20 23:29 ` [linux-lvm] IOP selection scripts (was: '/etc/init.d/lvm' script in debian package) Claudio Matsuoka
2000-12-21 0:34 ` Andreas Dilger
2000-12-21 10:28 ` Claudio Matsuoka
2000-12-21 22:06 ` Andreas Dilger
2000-12-21 23:06 ` Claudio Matsuoka
2000-12-22 1:38 ` Andreas Dilger
2000-12-22 10:13 ` Claudio Matsuoka
2000-12-22 18:12 ` [linux-lvm] IOP selection scripts Andreas Dilger
2000-12-21 8:37 ` [linux-lvm] '/etc/init.d/lvm' script in debian package Gergely Tamas
2000-12-21 9:04 ` Patrick Caulfield
2000-12-21 9:43 ` Gergely Tamas
2000-12-22 18:23 ` Russell Coker [this message]
2000-12-24 5:12 ` Andreas Dilger
2000-12-21 9:44 ` Claudio Matsuoka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=00122305232204.02330@lyta \
--to=russell@coker.com.au \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox