[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Linux-cluster] Submitting a mdadm resource script



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
<?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>

Attachment: mdmonitor.README
Description: Binary data

Attachment: mdmonitor.sh
Description: Bourne shell script


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]