Hi,

Please compress attachments in the future. This post slipped, I
wouldn't approve it had I noticed the size of the message.

On Fri, Apr 10, 2009 at 12:25:54PM +0200, Cristina Bulfon wrote:
> Dejan,
>
> I've followed your advice and I've moved to V2, first the software has been 
> updated to version 2.1.4.
>  I just modified the following files
>
> - ha.cf, added the line
>        crm yes
>
> - cib.xml has been produced using the python script and my haresources
>
>       afsitfs3.roma1.infn.it IPaddr2::141.108.26.31/24/eth0:0
>         afsitfs3.roma1.infn.it drbddisk::afs_fs 
> Filesystem::/dev/drbd1::/vicepa::xfs
>         afsitfs3.roma1.infn.it drbddisk::afs_sw 
> Filesystem::/dev/drbd2::/usr/afs::ext3
>         afsitfs3.roma1.infn.it 141.108.26.31 afs
>
>
> With this kind of configuration I've got a lot of error and the AFS 
> resource doesn't work
>
> - crm_verify -L  -x /var/lib/heartbeat/crm/cib.xml
>
> crm_verify[30489]: 2009/04/10_12:20:01 ERROR: unpack_rsc_op: Hard error: 
> IPaddr2_1_monitor_0 failed with rc=2.
> crm_verify[30489]: 2009/04/10_12:20:01 ERROR: unpack_rsc_op:   Preventing 
> IPaddr2_1 from re-starting on afsitfs4.roma1.infn.it
> crm_verify[30489]: 2009/04/10_12:20:01 ERROR: unpack_rsc_op: Hard error: 
> IPaddr2_1_monitor_0 failed with rc=2.
> crm_verify[30489]: 2009/04/10_12:20:01 ERROR: unpack_rsc_op:   Preventing 
> IPaddr2_1 from re-starting on afsitfs3.roma1.infn.it
>
> I've attached both cib.xml, ha-log and ha.cf
>
> Thanks for helping me
>
> cristina
>
>        <primitive class="ocf" id="IPaddr2_1" provider="heartbeat" 
> type="IPaddr2">
>          <operations>
>            <op id="IPaddr2_1_mon" interval="5s" name="monitor" timeout="5s"/>
>          </operations>
>          <instance_attributes id="IPaddr2_1_inst_attr">
>            <attributes>
>              <nvpair id="IPaddr2_1_attr_0" name="ip" value="141.108.26.31"/>
>              <nvpair id="IPaddr2_1_attr_1" name="nic" value="24"/>
>              <nvpair id="IPaddr2_1_attr_2" name="cidr_netmask" 
> value="eth0:0"/>

This is wrong, i.e. nic should be set to "eth0" (not eth0:0!) and
cidr_netmask to 24. Though, normally you don't need to set the
nic attribute.

>          <primitive class="ocf" id="IPaddr_141_108_26_31" 
> provider="heartbeat" type="IPaddr">
>            <operations>
>              <op id="IPaddr_141_108_26_31_mon" interval="5s" name="monitor" 
> timeout="5s"/>
>            </operations>
>            <instance_attributes id="IPaddr_141_108_26_31_inst_attr">
>              <attributes>
>                <nvpair id="IPaddr_141_108_26_31_attr_0" name="ip" 
> value="141.108.26.31"/>

I guess that here too you need to set the netmask.

>From ha.cf:

> ucast eth1 10.0.1

That one is definitely wrong.

> respawn hacluster /usr/local/heartbeat-2.1.3/lib64/heartbeat/ipfail 

You can't use ipfail with v2, replace it with pingd.

Please upgrade to Heartbeat 2.1.4 or Pacemaker 1.0.3/Heartbeat 2.99.

Thanks,

Dejan
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to