[DRBD-user] heartbeat + DRBD can't auto mount and start service

Nguy Tan Phuc phucnt at atvn.com.vn
Thu Jul 26 05:13:50 CEST 2007

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi All
I'm newcomer of heartbeat + DRBD.I don't clear drbddisk option in 
/etc/ha.d/haresources,It can't automatic mount and start service postfix but 
manual (typing command) is started
It auto mount and start serive postfix when before I started service drbd 
and heartbeat,
When node1 is primary dead,node 2 is secondary must auto mount and start 
service postfix
Can you hep me !!!
Thanks

on node1 (/etc/ha.d/haresources) 172.33.34.252 Virtual IP
   node1 IPaddr::172.33.34.252/32/eth0 drbddisk::postfix Filesystem::/dev/drbd0::/opt::ext3::defaults postfix

on node2 (/etc/ha.d/haresources) 172.33.34.252 Virtual IP
   node2 IPaddr::172.33.34.252/32/eth0 drbddisk::postfix Filesystem::/dev/drbd0::/opt::ext3::defaults postfix


on node1 and node2
/etc/drbd.conf
global {
# we want to be able to use up to 2 drbd devices
minor-count 2;
dialog-refresh 1; # 5 seconds
}

resource postfix {
protocol C;
incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 2 ; exit 1";

on node1 {
device /dev/drbd0;
disk /dev/hda3;
address 172.33.34.248:7788;
meta-disk internal;
}

on node2 {
device /dev/drbd0;
disk /dev/hda2;
address 172.33.34.250:7788;
meta-disk internal;
}

disk {
on-io-error detach;
}

net {
max-buffers 2048;
ko-count 4;
on-disconnect reconnect;
}

syncer {
rate 10M;
group 1;
al-extents 257; # must be a prime number
}

startup {
wfc-timeout 0;
degr-wfc-timeout 10; # 2 minutes.
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20070726/938675bf/attachment.htm>


More information about the drbd-user mailing list