Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi,
I use drbd with heartbeat and expose an iscsi target.
I am on debian 7.
I use xenserver on 3 hosts :
- host1 : one VM, SAN0
- host2 : one VM SAN1
- host3 : one VM vm1
on host1 and host2, I install with success drbd, heartbeat and iscsi. When
I stop heartbeat on host1, host2 becomes primary and exposes the iscsi
target.
host3 uses only iscsi device.
When I stop heartbeat on host1, vm1 becomes unavailable. I have several
errors like :
buffer i/o error on device logical block
It is impossible to control the machine again.
Here is the configuration file of drbd :
resource res0 {
protocol C;
device /dev/drbd0;
disk /dev/VG0/LVDATA0;
meta-disk internal;
startup {
degr-wfc-timeout 15;
wfc-timeout 30;
}
disk {
on-io-error detach;
}
handlers {
split-brain "/usr/lib/drbd/notify-split-brain.sh root";
}
net {
# Après la détection du split brain, aucun primaire détecté, et un des
serveurs n'a fait aucune modification : répliquer les modifications sur ce
serveur
after-sb-0pri discard-zero-changes;
# Après un split brain, un primaire détecté : le secondary est
systématiquement la split brain victim
after-sb-1pri discard-secondary;
# Après un split brain, 2 primary détectés : déconnexion
after-sb-2pri disconnect;
}
syncer {
verify-alg sha1;
rate 100M;
}
on SAN00 {
address 10.40.30.16:7788; # adresse ip et port d'écoute
}
on SAN01 {
address 10.40.30.17:7788; # adresse ip et port d'écoute
}
}
haresources for heartbeat :
SAN00 IPaddr::10.40.10.15/24/eth1 drbddisk::res0 iscsitarget
Do you have any ideas ?
Thanks,
Arnaud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20150917/5b08fbc3/attachment.htm>