Testing the Cluster

Ok now we should be ready to go… Lets test it!!

On both servers start heartbeat service:

# service heartbeat start

on server1

[root@c6server1 ~]# ifconfig

eth0     Link encap:Ethernet HWaddr 08:00:27:95:AB:B1

         inet addr:10.0.0.1 Bcast:10.0.4.255 Mask:255.255.255.0

         inet6 addr: fe80::a00:27ff:fe95:abb1/64 Scope:Link

         UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

         RX packets:2189638 errors:0 dropped:0 overruns:0 frame:0

         TX packets:30442386 errors:0 dropped:0 overruns:0 carrier:0

         collisions:0 txqueuelen:1000

         RX bytes:188528923 (179.7 MiB) TX bytes:45853044392 (42.7 GiB)

eth0:0   Link encap:Ethernet HWaddr 08:00:27:95:AB:B1

         inet addr:10.0.0.100 Bcast:10.0.4.255 Mask:255.255.255.0

         UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

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:305 errors:0 dropped:0 overruns:0 frame:0

         TX packets:305 errors:0 dropped:0 overruns:0 carrier:0

         collisions:0 txqueuelen:0

         RX bytes:35012 (34.1 KiB) TX bytes:35012 (34.1 KiB)

[root@c6server1 ~]# df -h

Filesystem           Size Used Avail Use% Mounted on

/dev/mapper/vg_c6server1-lv_root

                     6.6G 905M 5.4G 15% /

tmpfs                 499M     0 499M   0% /dev/shm

/dev/sda1             485M   60M 401M 13% /boot

sunrpc                40G 176M   38G   1% /var/lib/nfs/rpc_pipefs

/dev/drbd0             40G 176M   38G   1% /drbd

 

Lets test the DRBD/NFS fail over now

 

You can shutdown server1… not a problem or simply stop heartbeat service:

On server1:

# service heartbeat stop

On server2:

[root@c6server2 ~]# ifconfig

eth0     Link encap:Ethernet HWaddr 08:00:27:8F:3B:50

         inet addr:10.0.0.2 Bcast:10.0.4.255 Mask:255.255.255.0

         inet6 addr: fe80::a00:27ff:fe8f:3b50/64 Scope:Link

       UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

         RX packets:30447253 errors:0 dropped:0 overruns:0 frame:0

         TX packets:2138369 errors:0 dropped:0 overruns:0 carrier:0

         collisions:0 txqueuelen:1000

         RX bytes:45799991579 (42.6 GiB) TX bytes:173195698 (165.1 MiB)

eth0:0   Link encap:Ethernet HWaddr 08:00:27:8F:3B:50

         inet addr:10.0.0.100 Bcast:10.0.4.255 Mask:255.255.255.0

         UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

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:208 errors:0 dropped:0 overruns:0 frame:0

         TX packets:208 errors:0 dropped:0 overruns:0 carrier:0

         collisions:0 txqueuelen:0

         RX bytes:23480 (22.9 KiB) TX bytes:23480 (22.9 KiB)

Be the First to Comment!