[Linux-cluster] Network Bonding in Clustered Environment ??

Kaloyan Kovachev kkovachev at varna.net
Wed Dec 30 14:02:22 UTC 2009


On Wed, 30 Dec 2009 08:32:56 -0500, michael.lense wrote 
> Red Hat Linux-Clustering  
>    
>    
> I am currently setting up a two node cluster for a Database Environment… 
>    
> I have Network Bonding setup on the two nodes and was reading in one
document that Red Hat uses eth0 as the default heartbeat… 
>    
> Is there something I need to do to have it setup to us a certain bond0.xxx
VLan ?? and if so how would I do this ?? 

All you need to do is to use a hostname in cluster.conf which points to an IP
belonging to that interface: if in 192.168.15.0/24 then bond0.215 will be used

>    
> bond0     Link encap:Ethernet  HWaddr 00:26:B9:34:46:0B 
>           inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link 
>           UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1 
>           RX packets:205491095 errors:0 dropped:0 overruns:0 frame:0 
>           TX packets:213210619 errors:0 dropped:0 overruns:0 carrier:0 
>           collisions:0 txqueuelen:0 
>           RX bytes:95394558805 (88.8 GiB)  TX bytes:173234191604 (161.3 GiB) 
>    
> bond0.211 Link encap:Ethernet  HWaddr 00:26:B9:34:46:0B 
>           inet addr:10.195.27.5  Bcast:10.195.27.31  Mask:255.255.255.224 
>           inet6 addr: fe80::226:b9ff:fe34:460b/64 Scope:Link 
>           UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1 
>           RX packets:200489472 errors:0 dropped:0 overruns:0 frame:0 
>           TX packets:213200258 errors:0 dropped:0 overruns:0 carrier:0 
>           collisions:0 txqueuelen:0 
>           RX bytes:90408105703 (84.1 GiB)  TX bytes:171522012810 (159.7 GiB) 
>    
> bond0.211:1 Link encap:Ethernet  HWaddr 00:26:B9:34:46:0B 
>           inet addr:10.195.27.16  Bcast:10.195.27.31  Mask:255.255.255.224 
>           UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1 
>    
> bond0.212 Link encap:Ethernet  HWaddr 00:26:B9:34:46:0B 
>           inet addr:135.108.71.5  Bcast:135.108.71.31  Mask:255.255.255.224 
>           inet6 addr: fe80::226:b9ff:fe34:460b/64 Scope:Link 
>           UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1 
>           RX packets:523160 errors:0 dropped:0 overruns:0 frame:0 
>           TX packets:10850 errors:0 dropped:0 overruns:0 carrier:0 
>           collisions:0 txqueuelen:0 
>           RX bytes:79853140 (76.1 MiB)  TX bytes:2559699 (2.4 MiB) 
>    
> bond0.212:1 Link encap:Ethernet  HWaddr 00:26:B9:34:46:0B 
>           inet addr:135.108.71.16  Bcast:135.108.71.31  Mask:255.255.255.224 
>           UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1 
>    
> bond0.213 Link encap:Ethernet  HWaddr 00:26:B9:34:46:0B 
>           inet addr:192.168.65.5  Bcast:192.168.65.31  Mask:255.255.255.224 
>           inet6 addr: fe80::226:b9ff:fe34:460b/64 Scope:Link 
>           UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1 
>           RX packets:367458 errors:0 dropped:0 overruns:0 frame:0 
>           TX packets:938 errors:0 dropped:0 overruns:0 carrier:0 
>           collisions:0 txqueuelen:0 
>           RX bytes:63975254 (61.0 MiB)  TX bytes:39788 (38.8 KiB) 
>    
> bond0.213:1 Link encap:Ethernet  HWaddr 00:26:B9:34:46:0B 
>           inet addr:192.168.65.16  Bcast:192.168.65.31  Mask:255.255.255.224 
>           UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1 
>    
> bond0.215 Link encap:Ethernet  HWaddr 00:26:B9:34:46:0B 
>           inet addr:192.168.15.5  Bcast:192.168.15.255  Mask:255.255.255.0 
>           inet6 addr: fe80::226:b9ff:fe34:460b/64 Scope:Link 
>           UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1 
>           RX packets:39936 errors:0 dropped:0 overruns:0 frame:0 
>           TX packets:17 errors:0 dropped:0 overruns:0 carrier:0 
>           collisions:0 txqueuelen:0 
>           RX bytes:7984970 (7.6 MiB)  TX bytes:1106 (1.0 KiB) 
>    
> eth0      Link encap:Ethernet  HWaddr 00:26:B9:34:46:0B 
>           UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1 
>           RX packets:106617306 errors:0 dropped:0 overruns:0 frame:0 
>           TX packets:106605309 errors:0 dropped:0 overruns:0 carrier:0 
>           collisions:0 txqueuelen:1000 
>           RX bytes:49644091276 (46.2 GiB)  TX bytes:86616008153 (80.6 GiB) 
>           Interrupt:225 Memory:d6000000-d6012100 
>    
> eth1      Link encap:Ethernet  HWaddr 00:26:B9:34:46:0B 
>           UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1 
>           RX packets:98873789 errors:0 dropped:0 overruns:0 frame:0 
>           TX packets:106605310 errors:0 dropped:0 overruns:0 carrier:0 
>           collisions:0 txqueuelen:1000 
>           RX bytes:45750467529 (42.6 GiB)  TX bytes:86618183451 (80.6 GiB) 
>           Interrupt:233 Memory:d8000000-d8012100 
>    
> lo        Link encap:Local Loopback 
>           inet addr:127.0.0.1  Mask:255.0.0.0 
>            inet6 addr: ::1/128 Scope:Host 
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1 
>           RX packets:63014709 errors:0 dropped:0 overruns:0 frame:0 
>           TX packets:63014709 errors:0 dropped:0 overruns:0 carrier:0 
>           collisions:0 txqueuelen:0 
>           RX bytes:4440888070 (4.1 GiB)  TX bytes:4440888070 (4.1 GiB) 
>    
> # cat /etc/cluster/cluster.conf 
> <?xml version="1.0"?> 
> <cluster alias="echpdb" config_version="46" name="echpdb"> 
>         <fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/> 
>         <clusternodes> 
>            <clusternode name="echpdb2.dcd.convergys.com" nodeid="1" votes="1"> 
>                <fence> 
>                   <method name="1"> 
>                       <device name="echpdb2-drac"/> 
>                   </method> 
>                </fence> 
>            </clusternode> 
>            <clusternode name="echpdb1.dcd.convergys.com" nodeid="2" votes="1"> 
>                <fence> 
>                   <method name="1"> 
>                      <device name="echpdb1-drac"/> 
>                   </method> 
>                </fence> 
>            </clusternode> 
>         </clusternodes> 
>         <cman expected_votes="1" two_node="1"/> 
>         <fencedevices> 
>            <fencedevice agent="fence_drac" ipaddr="10.195.27.70"
login="root" name="echpdb1-drac" passwd="calvin"/> 
>            <fencedevice agent="fence_drac" ipaddr="10.195.27.71"
login="root" name="echpdb2-drac" passwd="calvin"/> 
>         </fencedevices> 
>         <rm> 
>            <failoverdomains> 
>                <failoverdomain name="echpdb" nofailback="1" ordered="1"
restricted="1"> 
>                   <failoverdomainnode name="echpdb2.dcd.convergys.com"
priority="2"/> 
>                   <failoverdomainnode name="echpdb1.dcd.convergys.com"
priority="1"/> 
>                </failoverdomain> 
>            </failoverdomains> 
>            <resources> 
>                <script file="/etc/cluster/echpdb/echpdb.ksh" name="ECHP"/> 
>            </resources> 
>            <service autostart="0" domain="echpdb" exclusive="0"
name="echpdb" recovery="relocate"> 
>                <script ref="ECHP"/> 
>            </service> 
>         </rm> 
> </cluster> 
> # 
>    
> Thanks 
> Mike 
>  




More information about the Linux-cluster mailing list