RE: running cs on hosts with two NIC's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here's how I did it in a three node iSCSI cluster...

[root@l82bi121 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
172.23.189.121  l82bi121.lss.emc.com    l82bi121
172.23.189.212  l82bi212.lss.emc.com    l82bi212
172.23.189.36   l82bi036.lss.emc.com    l82bi036
10.10.10.36     node036.gfs     node036
10.10.10.121    node121.gfs     node121
10.10.10.212    node212.gfs     node212

This host also contains two other NICs being used for iSCSI
connectivity.

[root@l82bi121 ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:04:23:AC:84:E6
          inet addr:10.10.10.121  Bcast:10.10.10.255  Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:feac:84e6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1410177 errors:0 dropped:0 overruns:0 frame:0
          TX packets:698571 errors:0 dropped:0 overruns:0 carrier:0
          collisions:329 txqueuelen:100
          RX bytes:104886622 (100.0 MiB)  TX bytes:52137668 (49.7 MiB)
          Base address:0xa000 Memory:fc7c0000-fc7e0000

eth1      Link encap:Ethernet  HWaddr 00:04:23:AC:84:E7
          inet addr:51.51.51.121  Bcast:51.51.51.255  Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:feac:84e7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3254248 errors:0 dropped:0 overruns:0 frame:0
          TX packets:567156 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:274268921 (261.5 MiB)  TX bytes:70167976 (66.9 MiB)
          Base address:0xac00 Memory:fc7e0000-fc800000

eth2      Link encap:Ethernet  HWaddr 00:02:B3:EA:75:90
          inet addr:51.50.51.121  Bcast:51.50.51.255  Mask:255.255.255.0
          inet6 addr: fe80::202:b3ff:feea:7590/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1966589 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1969235 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:319932260 (305.1 MiB)  TX bytes:249523544 (237.9 MiB)
          Base address:0xb800 Memory:fc8c0000-fc8e0000

eth3      Link encap:Ethernet  HWaddr 00:02:B3:EA:75:91
          inet addr:172.23.189.121  Bcast:172.23.189.255
Mask:255.255.255.0
          inet6 addr: fe80::202:b3ff:feea:7591/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:60138714 errors:0 dropped:0 overruns:0 frame:0
          TX packets:69530472 errors:213 dropped:0 overruns:0
carrier:213
          collisions:2809411 txqueuelen:10
          RX bytes:5321507661 (4.9 GiB)  TX bytes:103854304295 (96.7
GiB)
          Base address:0xbc00 Memory:fc8e0000-fc900000

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:8456866 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8456866 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:581951659 (554.9 MiB)  TX bytes:581951659 (554.9 MiB)

Note the cluster node names...

[root@l82bi121 ~]# cat /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster config_version="9" name="gfs_iscsi">
        <fence_daemon post_fail_delay="0" post_join_delay="2"/>
        <clusternodes>
                <clusternode name="node212.gfs" votes="1">
                        <fence/>
                </clusternode>
                <clusternode name="node036.gfs" votes="1">
                        <fence/>
                </clusternode>
                <clusternode name="node121.gfs" votes="1">
                        <fence/>
                </clusternode>
        </clusternodes>
        <cman/>
        <fencedevices>
                <fencedevice agent="fence_manual" name="no_fence"/>
        </fencedevices>
        <rm>
                <failoverdomains/>
                <resources>
                        <clusterfs device="/dev/i_gfs/i_gfs_lv"
force_unmount="1" fsid="5149" fstype="gfs" mountpoint="/gfs_test"
name="iGFS" options="defaults"/>
                </resources>
        </rm>
</cluster>
[root@l82bi121 ~]#

Regards,
Wayne. 

-----Original Message-----
From: linux-cluster-bounces@xxxxxxxxxx
[mailto:linux-cluster-bounces@xxxxxxxxxx] On Behalf Of Sebastian Walter
Sent: Tuesday, April 24, 2007 6:49 AM
To: linux clustering
Subject:  running cs on hosts with two NIC's

Hello List,

I'd like to run the cluster suite on computers with two NIC's. One of 
them is configured as 10.2.1.1/16, tho other one is our public ip range.

I set up both the public addresses in /etc/hosts. Unfortunately, 
/proc/cluster/status states the private ip addresses instead of the 
public ones. How can I force cman to use the public addresses and 
therefore get the cluster being accessible for other hosts?

Thanks in advance!
Sebastian

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster


--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux