Send Linux-ha-cvs mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linux-ha-cvs digest..."


Today's Topics:

   1. Linux-HA CVS: lib by blaschke from 
      ([email protected])
   2. Linux-HA CVS: mgmt by lars from  ([email protected])
   3. Linux-HA CVS: fencing by lars from 
      ([email protected])
   4. Linux-HA CVS: mgmt by lars from  ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Mon, 12 Dec 2005 12:42:17 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: lib by blaschke from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : blaschke
Host    : 
Project : linux-ha
Module  : lib

Dir     : linux-ha/lib/plugins/stonith


Modified Files:
        README.external 


Log Message:

Bug 983 - Updated STONITH external plugin README


===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/lib/plugins/stonith/README.external,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- README.external     1 Sep 2004 15:15:54 -0000       1.1
+++ README.external     12 Dec 2005 19:42:16 -0000      1.2
@@ -1,18 +1,91 @@
 EXTERNAL module for Linux-HA STONITH
 
 
-This stonith plug in runs an external command written in your favorite
+This stonith plugin runs an external command written in your favorite
 language to shutdown the given host.  The external command should return
 a zero exit status after a successful shutdown, or non-zero exit status
 for a shutdown failure.  Failures notifications will be sent to syslog.
 
-To configure the plug in, add this line to /etc/ha.d/rpc.cfg
+To create your own external plugin, write a script that supports the
+following actions:
 
-stonith external
+       reset
+       on                      (optional)
+       off                     (optional)
+       gethosts
+       status
+       getconfignames
+       getinfo-devid
+       getinfo-devname
+       getinfo-devdescr
+       getinfo-devurl
+       getinfo-xml
 
-/etc/ha.d/rpc.cfg should contain lines like the following:
+and place it in the /usr/lib/stonith/plugins/external directory - the
+script must be a regular executable file that is NOT writable by group
+or others in order to be recognized as an external plugin.  If the
+action requires information to be returned, such as the list of hosts
+or config names or any of the getinfo-* calls, simply write the 
+information to stdout.  When complete, return zero to indicate the
+action succeeded or non-zero to indicate the action failed.  You can
+use the ssh (sh) and riloe (pyhton) scripts already in that directory
+as working examples.
 
-hostname.domain.org /path/to/command [argument]...
-otherhost.domain.org /path/to/command [argument]...
+To make sure that your external plugin is recognized, run "stonith -L"
+and look for its name in the output, something along the lines of:
 
-Where /path/to/command gives the location of your shutdown script.
+       external/yourplugin 
+
+To configure the plugin on an R1 (legacy) cluster, add a line similar
+to the following to /etc/ha.d/ha.cf:
+
+       stonith external/yourplugin /etc/ha.d/yourplugin.cfg
+
+where /etc/ha.d/yourplugin.cfg contains a single line with all of your
+plugin's required parameters and any optional ones as well:
+
+       parm1-value parm2-value ...
+
+Another way to configure the plugin on a legacy cluster is to add a line
+similiar to the following to /etc/ha.d/ha.cf instead:
+
+       stonith_host * external/yourplugin parm1-value parm2-value ...
+
+where all of your plugin's parameters are placed at the end of the line.
+
+Please note that all parameters come in to the plugin in name/value
+(environment variable) form, but in R1 configurations, they appear as a
+list of parameters.  They are ordered in the config file or on the
+stonith_host line according to the ordering specified in the output of
+the getconfignames operation.
+
+To configure the plugin on an R2 cluster, place lines similar to the
+following into the <resources> section of your CIB, which is contained
+in /var/lib/heartbeat/crm/cib.xml:
+
+         <clone id="DoFencing">
+            <instance_attributes>
+               <attributes>
+                  <nvpair name="clone_max" value="2"/>
+                  <nvpair name="clone_node_max" value="1"/>
+               </attributes>
+            </instance_attributes>
+            <primitive id="child_DoFencing" class="stonith" 
type="external/yourplugin" provider="heartbeat">
+               <operations>
+                  <op name="monitor" interval="5s" timeout="20s" 
prereq="nothing"/>
+                  <op name="start" timeout="20s" prereq="nothing"/>
+               </operations>
+               <instance_attributes>
+                  <attributes>
+                     <nvpair name="parm1-name" value="parm1-value"/>
+                     <nvpair name="parm2-name" value="parm2-value"/>
+                    <!-- ... -->
+                  </attributes>
+               </instance_attributes>
+            </primitive>
+         </clone>
+
+Whatever <nvpair> parameters specified in the <attributes> section of
+the CIB are passed to the script as environment variables.  For the
+example above, the parameters are passed as parm1-name=parm1-value,
+parm2-name=parm2-value and so on.




------------------------------

Message: 2
Date: Mon, 12 Dec 2005 12:49:30 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: mgmt by lars from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : lars
Host    : 
Project : linux-ha
Module  : mgmt

Dir     : linux-ha/mgmt/daemon


Modified Files:
        Makefile.am 


Log Message:
Build fix for parallelized build: If the path is fully qualified, the
dependency tracking doesn't notice it's in the same directory.

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/mgmt/daemon/Makefile.am,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- Makefile.am 7 Dec 2005 10:14:13 -0000       1.5
+++ Makefile.am 12 Dec 2005 19:49:29 -0000      1.6
@@ -42,7 +42,7 @@
 mgmtd_LDFLAGS  = -lpam
 mgmtd_LDADD    =  $(top_builddir)/lib/mgmt/libmgmtclient.la \
                   $(top_builddir)/lib/mgmt/libmgmttls.la \
-                  $(top_builddir)/mgmt/daemon/libmgmt.la \
+                  libmgmt.la \
                   $(top_builddir)/lib/$(LRM_DIR)/liblrm.la \
                   $(top_builddir)/lib/mgmt/libmgmtcommon.la \
                   $(COMMONLIBS)




------------------------------

Message: 3
Date: Mon, 12 Dec 2005 12:58:08 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: fencing by lars from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : lars
Host    : 
Project : linux-ha
Module  : fencing

Dir     : linux-ha/fencing/stonithd


Modified Files:
        Makefile.am 


Log Message:
Correct typo.

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/fencing/stonithd/Makefile.am,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- Makefile.am 29 Oct 2005 08:43:06 -0000      1.6
+++ Makefile.am 12 Dec 2005 19:58:08 -0000      1.7
@@ -43,7 +43,7 @@
 
 # need to make stonithd's owner as hacluster:haclient?
 install-exec-local:
-       $(mkinstalldirs) $(DESTDIR)$/$(havarlibdir)/fencing
+       $(mkinstalldirs) $(DESTDIR)/$(havarlibdir)/fencing
        -chgrp $(apigid) $(DESTDIR)/$(havarlibdir)/fencing
        chmod 750 $(DESTDIR)/$(havarlibdir)/fencing
 




------------------------------

Message: 4
Date: Mon, 12 Dec 2005 12:58:29 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: mgmt by lars from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : lars
Host    : 
Project : linux-ha
Module  : mgmt

Dir     : linux-ha/mgmt/daemon


Modified Files:
        Makefile.am 


Log Message:
Must install into $DESTDIR.

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/mgmt/daemon/Makefile.am,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- Makefile.am 12 Dec 2005 19:49:29 -0000      1.6
+++ Makefile.am 12 Dec 2005 19:58:29 -0000      1.7
@@ -30,7 +30,7 @@
                   
 LRM_DIR                = lrm
 
-pamdir                 = /etc/pam.d
+pamdir                 = $(DESTDIR)/etc/pam.d
 pam_DATA       = mgmtd.pam
 
 install-data-hook:




------------------------------

_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs


End of Linux-ha-cvs Digest, Vol 25, Issue 28
********************************************

Reply via email to