[Linux-cluster] Submitting a mdadm resource script
brem belguebli
brem.belguebli at gmail.com
Mon Aug 17 10:22:17 UTC 2009
Hi,
I have written a resource script (mdmonitor.sh) to manage mdadm mirrors
across a cluster.
This is for testing purposes and still needs some additionnal features and
some deeper debugging.
If someone is interested in hacking it to improve it or to correct it, I'll
be glad.
A readme file is provided that explains the goal of this resource script.
Thanks to Rafael Mico Miranda for his lvm-cluster resource script used on
top of mdmonitor.
Brem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20090817/8e4a0b79/attachment.htm>
-------------- next part --------------
<?xml version="1.0"?>
<resource-agent name="mdmonitor" version="rgmanager 2.0">
<version>1.0</version>
<longdesc lang="en">
Resource for activating, deactivating and monitoring MD devices
</longdesc>
<shortdesc lang="en">
Resource for activating, deactivating and monitoring MD devices
</shortdesc>
<parameters>
<parameter name="raidconf" required="1">
<longdesc lang="en">
Name of the file containing the description of the array(s)
Format is strict, must be "servicename"-raid.conf
It will be placed in /etc/cluster/"servicename"
</longdesc>
<shortdesc lang="en">
raid.conf filename
</shortdesc>
<content type="string"/>
</parameter>
<parameter name="policy" required="0">
<longdesc lang="en">
Policy to adopt at start, strict will prevent
assembling any array partially thus causing the
resource to fail.
Quorum will allow partial start. If not defined,
defaults to quorum
</longdesc>
<shortdesc lang="en">
Assembly Policy
</shortdesc>
<content type="string"/>
</parameter>
</parameters>
<actions>
<action name="start" timeout="5"/>
<action name="stop" timeout="5"/>
<action name="status" interval="10m" timeout="5" />
<action name="monitor" interval="10m" timeout="5" />
<action name="meta-data" timeout="5"/>
</actions>
<special tag="rgmanager">
</special>
</resource-agent>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mdmonitor.README
Type: application/octet-stream
Size: 11193 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20090817/8e4a0b79/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mdmonitor.sh
Type: application/x-sh
Size: 33420 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20090817/8e4a0b79/attachment.sh>
More information about the Linux-cluster
mailing list