Try with: 

ip add sh

-----Original Message-----
From: linux-ha-boun...@lists.linux-ha.org
[mailto:linux-ha-boun...@lists.linux-ha.org] On Behalf Of
fabio.anton...@kaskonetworks.it
Sent: 16 February 2010 15:46
To: General Linux-HA mailing list
Subject: Re: [Linux-HA] Simple 2 nodes Linux-HA scenario

Hi Andreew
thanks a lot for your time.
I have read the document you wrote and I have understood many things not

so clear before. I have added a resource section within the cib.xml. The

cib.xml file appears now as

# cat /var/lib/heartbeat/crm/cib.xml
 <cib generated="true" admin_epoch="0" have_quorum="true" 
ignore_dtd="false" num_peers="2" cib_feature_revision="2.0" 
crm_feature_set="2.0" ccm_transition="2" 
dc_uuid="4b6c73b2-990e-4fcf-9c13-78c3c3648801" epoch="52" 
num_updates="1" cib-last-written="Tue Feb 16 16:39:36 2010">
   <configuration>
     <crm_config>
       <cluster_property_set id="cib-bootstrap-options">
         <attributes>
           <nvpair id="cib-bootstrap-options-dc-version" 
name="dc-version" value="2.1.4-node: 
aa909246edb386137b986c5773344b98c6969999"/>
         </attributes>
       </cluster_property_set>
     </crm_config>
     <nodes>
       <node id="4b6c73b2-990e-4fcf-9c13-78c3c3648801" 
uname="ws-mythtv-9" type="normal"/>
       <node id="05f71d5a-e249-4f9c-a7d5-0dcd954578de" 
uname="fabio-laptop" type="normal"/>
     </nodes>
     <resources>
       <primitive class="ocf" type="IPaddr2" provider="heartbeat" 
id="resource_ipaddr">
         <meta_attributes id="resource_ipaddr_meta_attrs">
           <attributes>
             <nvpair name="target_role" 
id="resource_ipaddr_metaattr_target_role" value="started"/>
           </attributes>
         </meta_attributes>
         <instance_attributes id="resource_ipaddr_instance_attrs">
           <attributes>
             <nvpair id="a513f03c-2c49-4226-b1d3-f151dbe4b643" name="ip"

value="192.168.2.154"/>
             <nvpair id="bd026c11-0560-4911-9cfa-1c4ebb534922" 
name="nic" value="eth0"/>
           </attributes>
         </instance_attributes>
       </primitive>
     </resources>
     <constraints/>
   </configuration>
 </cib>

The crm_mon command output is:

============
Last updated: Tue Feb 16 16:42:57 2010
Current DC: ws-mythtv-9 (4b6c73b2-990e-4fcf-9c13-78c3c3648801)
2 Nodes configured.
1 Resources configured.
============

Node: ws-mythtv-9 (4b6c73b2-990e-4fcf-9c13-78c3c3648801): online
Node: fabio-laptop (05f71d5a-e249-4f9c-a7d5-0dcd954578de): online

But  i cannot see the eth0:0 interface with IP= 192.168.2.154. What's 
wrong in your opinion? Can I monitor something else to understand what's

happening?
Forgive me for these trivial questions but I need some help to start up.
Thanks a lot in advance
Fabio

Andrew Beekhof ha scritto:
> On Mon, Feb 15, 2010 at 1:06 PM, fabio.anton...@kaskonetworks.it
> <fabio.anton...@kaskonetworks.it> wrote:
>   
>> Hi all
>> I'm a newbie of Linux-HA.
>> My final target is to setup a simple 2 nodes cluster with a only one
>> virtual IP address.
>> I have a couple of PCs running heartbeat 2.1.4-2 (Ubuntu 9.0.4).
>> The PCs are named
>> fabio-laptop and ws-mythtv-9
>> Their IP addresses are respectively
>> fabio-laptop: 192.168.2.10
>> ws-mythtv-9:  192.168.2.15
>>
>> My ha.cf file is
>>
>> autojoin any
>> udpport 694
>> bcast eth0
>> warntime 5
>> deadtime 15
>> initdead 60
>> keepalive 2
>> node fabio-laptop
>> node ws-mythtv-9
>> auto_failback off
>> debugfile /var/log/ha-debug
>> logfile /var/log/ha-log
>> # Logging
>> debug        1
>> coredumps    true
>> logfacility    daemon
>> crm respawn
>>
>> Of course this file has been replicated on both the PCs.
>>
>> My haresources is:
>>     
>
> haresources isn't used for crm based clusters (indicated by "crm
> respawn" in ha.cf)
> have a read of:
>
http://www.clusterlabs.org/mediawiki/images/7/7d/Configuration_Explained
_0.6.pdf
>
>   
>> fabio-laptop 192.168.2.154
>>
>> In other words I would like to have a virtual IP address
192.168.2.154
>> in high availability.
>> I run both the heartbeat daemons but I cannot see the eth0:0 assigned
to
>> the Active PC (fabio-laptop). Should I see the eth0:0 created at boot
>> time or not?
>> The hearbeat channel seems to be working because if I shutdown one of
>> the linux box (either fabio-laptop pr ws-mythtv-9) I see that the
remote
>> part detects such event. Anyway I cannot see the eth0:0 virtual
>> interface defined in any case.
>> Probably I have a basic setup problem. Have I to write some
additional
>> file or to provide some additional info to heartbeat and crm daemons?
>> Please let me know if you need some more details or log info.
>> Any help will be appreciated.
>> Regards
>>
>> fabio antonini
>>
>> --
>> Fabio Antonini PhD
>> SW Designer
>> Kasko Networks srl
>> Loc.Boschetto, zona ind.le di Pile
>> 67100 L'Aquila
>>
>> _______________________________________________
>> Linux-HA mailing list
>> Linux-HA@lists.linux-ha.org
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> See also: http://linux-ha.org/ReportingProblems
>>
>>     
> _______________________________________________
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
>
>
>   


-- 
Fabio Antonini PhD
SW Designer
Kasko Networks srl
Loc.Boschetto, zona ind.le di Pile
67100 L'Aquila

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to