NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Karl, On Wed, 11 Apr 2007, Karl Hanzel wrote:
Hi Art -I'm looking into writing my own OCF resource agent script for an LDM server...I wrote a script that monitors the LDM realservers for addition/removal from the cluster and a script or two for the HA part. I can send you some scripts if you'd like... let me know.I'm guessing that your script(s) aren't quite what i'm looking for, but i could be wrong.In the linux-HA version-2 way of things, OCF Resource Agents are those found in /usr/lib/ocf/resource.d/{provider}/ ... similar to an init script that you might find in /etc/init.d/, but with the enhanced functionality (monitor, & meta-data functions in addition to start, stop, & status). Is that what you have? If so, then yes, i'd be very interested to have a look-see.
No, I don't have anything using the new OCF-style. I do have one script in /etc/ha.d/resource.d which I suspect is a similar location. It just switches the ipvs state between master/backup on failovers and notifies me when this occurs:
#!/bin/csh -x if( $1 == "start" ) then # Make this director a multi-cast master for sending state to backup directors # Stop any running backup ipvs_syncd /sbin/ipvsadm --stop-daemon backup # ipvsadm V1.0.8 does not want the "backup" argument #/sbin/ipvsadm --stop-daemon # Start the master ipvs_syncd /sbin/ipvsadm --start-daemon master --mcast-interface eth0 /bin/mail -s "`hostname` assuming master role" person << EOD . EOD endif if( $1 == "stop" ) then # Make this director a multi-cast backup for receiving state from a master director # Stop any running master ipvs_syncd /sbin/ipvsadm --stop-daemon master # ipvsadm V1.0.8 does not want the "master" argument #/sbin/ipvsadm --stop-daemon # Start the backup ipvs_syncd /sbin/ipvsadm --start-daemon backup --mcast-interface eth0 /bin/mail -s "`hostname` assuming backup role" person << EOD . EOD endif Art
Thanks! Karl *----->
Arthur A. Person Research Assistant, System Administrator Penn State Department of Meteorology email: person@xxxxxxxxxxxxx, phone: 814-863-1563
ldm-users
archives: