From: "Konstantin A. Lepikhov" <lakostis@anti-leasure.ru>
To: community@altlinux.ru
Subject: [Comm] Re: Software RAID-5 & XFS trouble
Date: Thu, 30 Sep 2004 23:06:19 +0400
Message-ID: <20040930190619.GA21259@lks.home> (raw)
In-Reply-To: <002801c4a6b1$5f433a00$2101a8c0@main.radio>
[-- Attachment #1: Type: text/plain, Size: 399 bytes --]
Hi Овечкин!
Thursday 30, at 09:50:20 AM you wrote:
<skip>
> > ужасть. Хотите дам приличный init.d скрипт для мониторинга? :)
> Был бы очень признателен.
ловите
--
WBR, Konstantin chat with ==>ICQ: 109916175
Lepikhov, speak to ==>JID: lakostis@jabber.org
aka L.A. Kostis write to ==>mailto:lakostis@pisem.net.nospam
...The information is like the bank... (c) EC8OR
[-- Attachment #2: mdadm --]
[-- Type: text/plain, Size: 1738 bytes --]
#!/bin/sh
#
# Start the RAID monitor daemon for all active md arrays if desired.
#
# based on init.d script of Mario Jou/3en <joussen@debian.org>
# modified for ALTLinux by LAKostis <lakostis at altlinux dot ru>
#
# chkconfig: 345 90 10
# description: mdadm monitors all active md arrays
# processname: mdadm
# pidfile: /var/run/mdadm.pid
# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1
# Source function library.
. /etc/init.d/functions
BINARY=/usr/sbin/mdadm
CONFIG=/etc/mdadm.conf
LOCKFILE=/var/lock/subsys/mdadm
MAIL_TO=root
ARRAYS="`sed -ne 's/^\(md[[:digit:]]\+\) : active.*/\1/p' /proc/mdstat`"
RETVAL=0
# if overriding these is needed
SourceIfNotEmpty /etc/sysconfig/mdadm
start()
{
if [ -n "$ARRAYS" ] ; then
if [ -e /dev/.devfsd ] ; then
ARRAYS="`echo $ARRAYS | sed -e 's%md%/dev/md/%g'`"
else
ARRAYS="`echo $ARRAYS | sed -e 's%md%/dev/md%g'`"
fi
start_daemon --lockfile "$LOCKFILE" --expect-user root -- \
$BINARY -F -f -m $MAIL_TO $ARRAYS
else
echo " no arrays for monitoring were found."
fi
RETVAL=$?
return $RETVAL
}
stop()
{
stop_daemon --lockfile "$LOCKFILE" --expect-user root -- mdadm
RETVAL=$?
return $RETVAL
}
restart()
{
stop
start
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
reload)
restart
;;
restart)
restart
;;
condstop)
if [ -e "$LOCKFILE" ]; then
stop
fi
;;
condrestart)
if [ -e "$LOCKFILE" ]; then
restart
fi
;;
condreload)
if [ -e "$LOCKFILE" ]; then
reload
fi
;;
status)
status --expect-user root -- mdadm
RETVAL=$?
;;
*)
msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|condreload|status}"
RETVAL=1
esac
exit $RETVAL
next prev parent reply other threads:[~2004-09-30 19:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-29 12:17 ` [Comm] " Alexander Volkov
2004-09-29 16:01 ` [Comm] " Konstantin A. Lepikhov
2004-09-30 5:29 ` [Comm] " Овечкин Влад
2004-09-29 16:29 ` [Comm] " Konstantin A. Lepikhov
2004-09-29 21:55 ` Денис Смирнов
2004-09-30 5:50 ` Овечкин Влад
2004-09-30 5:54 ` Mike Lykov
2004-09-30 6:23 ` Овечкин Влад
2004-09-30 15:28 ` Andrey Rahmatullin
2004-09-30 19:06 ` Konstantin A. Lepikhov [this message]
2004-10-01 21:43 ` Michael Shigorin
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=20040930190619.GA21259@lks.home \
--to=lakostis@anti-leasure.ru \
--cc=community@altlinux.ru \
/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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git