[Pacemaker] does adding a second ring actually work with cman?

Brian J. Murrell brian at interlinx.bc.ca
Mon Dec 16 16:28:30 UTC 2013


So, I was reading:

https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Cluster_Administration/s2-rrp-ccs-CA.html

about adding a second ring to one's CMAN configuration.  I tried to add
a second ring to my configuration without success.

Given the example:

# ccs -h clusternet-node1-eth1 --addalt clusternet-node1-eth1 clusternet-node1-eth2

I'm assuming that clusternet-node1-eth2 is a name that resolves to the
IP address of the interface to add as the second ring?  Otherwise I see
no way that the ccs command is supposed to know which (of possibly many)
interfaces to use for the second ring.

That didn't seem to work for me in any case:

# ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 52:54:00:05:A7:08  
          inet addr:10.128.0.206  Bcast:10.128.7.255  Mask:255.255.248.0
          inet6 addr: fe80::5054:ff:fe05:a708/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4662465 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1555036 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:520360401 (496.2 MiB)  TX bytes:171863479 (163.9 MiB)

# grep 10.128.0.206 /etc/hosts
10.128.0.206    lotus-5vm8-ring1
# hostname
lotus-5vm8
# ccs -f /etc/cluster/cluster.conf --addalt $(hostname) $(hostname)-ring1
# ccs -f /etc/cluster/cluster.conf --getconf
<cluster config_version="8" name="foo2">  
    <fence_daemon/>  
    <clusternodes>    
        <clusternode name="lotus-5vm8" nodeid="1">      
            <fence>        
                <method name="pcmk-redirect">          
                    <device name="pcmk" port="lotus-5vm8"/>          
                </method>        
            </fence>      
            <altname name="lotus-5vm8-ring1"/>      
        </clusternode>    
    </clusternodes>  
    <cman/>  
    <fencedevices>    
        <fencedevice agent="fence_pcmk" name="pcmk"/>    
    </fencedevices>  
    <rm>    
        <failoverdomains/>    
        <resources/>    
    </rm>  
</cluster>
# corosync-objctl  | grep ring
totem.interface.ringnumber=0

So is there something I am misunderstanding or is this not actually
working?  The node I was trying this on is EL6.4.

Cheers,
b.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20131216/ecba192a/attachment-0003.sig>


More information about the Pacemaker mailing list