November 23, 2014, 04:00:03 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: heartbeat error  (Read 2660 times)

Offline call_krushna

  • New Member
  • Posts: 1
heartbeat error
« on: July 03, 2012, 09:45:49 AM »
Hi Team,

    I am configuring nfs clustering . I have configured with drbd and heartbeat.

DRBD is working fine . Same data is replicated in both the server .

but while starting heartbeat service getting below error

#service heartbeat start

Starting High-Availability services: IPaddr[4579]: INFO:  Resource is stopped
Done.

Below are the details

vi /etc/hearbeat/haresource


NFSCLUSTER1 IPaddr::10.0.1.150/24/eth0 drbddisk::nfs Filesystem::/dev/drbd0::/srv/data::ext3 nfs-kernel-server



vi /etc/hosts

127.0.0.1 localhost
10.0.1.148 NFSCLUSTER1
10.0.1.38 NFSCLUSTER2

vi /etc/drbd.conf

# You can find an example in  /usr/share/doc/drbd.../drbd.conf.example

include "drbd.d/global_common.conf";
include "drbd.d/*.res";
resource nfs {
protocol C;
handlers { pri-on-incon-degr "halt -f"; }
startup {
degr-wfc-timeout 120; ## 2 minutes.
}
disk {
on-io-error detach;
}
net {
}
syncer {
rate 10M;
al-extents 257;
}
on NFSCLUSTER1 {
device /dev/drbd0;
disk /dev/lv0/lvm0; # Data partition on server 1
address 10.0.1.148:7788; #IP address on server 1
meta-disk /dev/xvdg1[0]; # Metadata for DRBD on server 1
}
on NFSCLUSTER2 {
device /dev/drbd0; #
disk /dev/lv0/lvm0; # Data partition on server 2
address 10.0.1.38:7788; # IP address on server 2
meta-disk /dev/xvdg1[0]; # Metadata for DRBD on server 1 2
}
}


Any help is highly appreciable .

Regards