Jason Dejan Muhamedagic wrote:
Hi, On Tue, Feb 19, 2008 at 12:12:24PM -0500, Jason Erickson wrote:I am trying to set up Heartbeat with an virtual Ip, NFS share and an Apache web server. The virtual Ip and NFS share work but for some reason the Apache server wants to run on 2 nodes and will not start. It comes up as being unmanaged.I guess that the monitor operation succeeds on both nodes.I configured collocation and order so they would be on the same node as the Ip address and NFS and also the webserver would start after the share was mounted and Ip was set. The one parameter that i set for the webserver was the config file. This should be the only one that I need to configure. I do not have an init script for Apache since we built it from source.Which resource agent do you use? LSB or OCF?We are running HA 2.1.3 and am configuring it through the GUI. Do I need stonith working? Any help would be appreciated. ThanksStonith is desirable. It's mandatory if you have shared storage. Please supply logs and configuration (hint: use hb_report). Thanks, Dejan
report_6.tar.gz
Description: application/gzip
<cib generated="true" admin_epoch="0" epoch="24" have_quorum="true" ignore_dtd="false" ccm_transition="7" num_peers="2" cib_feature_revision="2.0" dc_uuid="aaed2ff6-07cd-476f-8d98-259570a5480e" num_updates="1" cib-last-written="Tue Feb 19 18:27:13 2008">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<attributes>
<nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="2.1.3-node: 552305612591183b1628baa5bc6e903e0f1e26a3"/>
<nvpair id="cib-bootstrap-options-last-lrm-refresh" name="last-lrm-refresh" value="1203463617"/>
</attributes>
</cluster_property_set>
</crm_config>
<nodes>
<node id="aaed2ff6-07cd-476f-8d98-259570a5480e" uname="postit.mtu.edu" type="normal"/>
<node id="488d1100-f844-4e7b-a726-44cf37cb3d0b" uname="linux.mtu.edu" type="normal"/>
</nodes>
<resources>
<group id="Webserver">
<meta_attributes id="Webserver_meta_attrs">
<attributes>
<nvpair id="Webserver_metaattr_ordered" name="ordered" value="true"/>
<nvpair id="Webserver_metaattr_collocated" name="collocated" value="true"/>
</attributes>
</meta_attributes>
<primitive id="IP" class="ocf" type="IPaddr2" provider="heartbeat">
<instance_attributes id="IP_instance_attrs">
<attributes>
<nvpair id="adacda48-02dc-4127-9371-543ea7d79a87" name="ip" value="192.168.1.30"/>
</attributes>
</instance_attributes>
</primitive>
<primitive id="Apache" class="ocf" type="apache" provider="heartbeat">
<instance_attributes id="Apache_instance_attrs">
<attributes>
<nvpair id="92d737eb-81ad-40c7-a330-788425a64b6a" name="configfile" value="/opt/apache-2.0.61/conf/httpd.conf"/>
</attributes>
</instance_attributes>
<meta_attributes id="Apache_meta_attrs">
<attributes>
<nvpair id="Apache_metaattr_target_role" name="target_role" value="started"/>
</attributes>
</meta_attributes>
</primitive>
</group>
</resources>
<constraints/>
</configuration>
</cib>_______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
