<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sorry for another post, it's something i'm working on quite actively.<br>
<br>
So the problem then appears to be when a DRBD peer gets rebooted when
the mount is in use i.e. having a file transferred to it - the system
gets hard-rebooted (no shutdown actions are run). Shall I assume this
is a kernel error or something that's been dealt with and raise a bug
with the Ubuntu-server team to port a version > 8.0.11?<br>
<br>
Henri Cook wrote:
<blockquote cite="mid:48C2C4B1.9080607@theplayboymansion.net"
type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
An off-list respondent suggested that I post my drbd.conf - I dont'
have any reboot options in there (that are being used) - but I may be
missing something. (Below)<br>
<br>
Please note that reboot-sane (a custom reboot script) emails me, writes
to a file, waits 2 seconds, then reboots the system and is NOT being
called in the situation I describe (that's what i originally thought
was happening)<br>
<br>
#<br>
# drbd.conf<br>
# <br>
<br>
skip {<br>
<br>
}<br>
<br>
global {<br>
# minor-count 64;<br>
# dialog-refresh 5; # 5 seconds<br>
usage-count yes;<br>
}<br>
<br>
common {<br>
syncer { rate 60M; }<br>
protocol C;<br>
}<br>
<br>
resource shared {<br>
<br>
handlers {<br>
pri-on-incon-degr "echo 'DRBD: Inconsistent - Rebooting.' >>
/var/log/drbd.log ; /usr/local/sbin/reboot-sane";<br>
pri-lost-after-sb "echo 'DRBD: A split brain situation occured.
This node lost. Rebooted' >> /var/log/drbd.log ;
/usr/local/sbin/reboot-sane";<br>
local-io-error "echo 'DRBD: A local IO error occurred, rebooting.'
>> /var/log/drbd.log ; /usr/local/sbin/reboot-sane";<br>
pri-lost "echo 'DRBD: Pri-lost, check log files.'
>> /var/log/drbd.log ; /usr/local/sbin/reboot-sane";<br>
<br>
outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater -t 5 -r shared
-p dean"; # NB: The machine we're on now is torvil, the -p option here
is different on the other host<br>
<br>
<br>
split-brain "echo 'DRBD: A split-brain situation occurred and was
resolved successfully.' >> /var/log/drbd.log";<br>
}<br>
<br>
startup {<br>
wfc-timeout 15;<br>
<br>
degr-wfc-timeout 30;<br>
<br>
# In case you are using DRBD for GFS/OCFS2 you want that the<br>
# startup script promotes it to primary. Nodenames are also<br>
# possible instead of "both".<br>
become-primary-on both;<br>
}<br>
<br>
disk {<br>
on-io-error detach;<br>
<br>
fencing resource-only;<br>
}<br>
<br>
net {<br>
<br>
# timeout 60; # 6 seconds (unit = 0.1 seconds)<br>
# connect-int 10; # 10 seconds (unit = 1 second)<br>
# ping-int 10; # 10 seconds (unit = 1 second)<br>
# ping-timeout 5; # 500 ms (unit = 0.1 seconds)<br>
<br>
# max-buffers 2048;<br>
<br>
# unplug-watermark 128;<br>
<br>
# max-epoch-size 2048;<br>
<br>
ko-count 4;<br>
<br>
allow-two-primaries;<br>
<br>
cram-hmac-alg "sha256";<br>
shared-secret "w405FDS^%tngpDSFg^";<br>
<br>
after-sb-0pri discard-older-primary;<br>
after-sb-1pri discard-secondary;<br>
after-sb-2pri call-pri-lost-after-sb;<br>
<br>
rr-conflict call-pri-lost;<br>
<br>
}<br>
<br>
syncer {<br>
al-extents 257;<br>
}<br>
<br>
on torvil {<br>
device /dev/drbd0;<br>
disk /dev/md4;<br>
address 10.0.0.2:7788;<br>
meta-disk /dev/md5[0];<br>
}<br>
<br>
on dean {<br>
device /dev/drbd0;<br>
disk /dev/md4;<br>
address 10.0.0.3:7788;<br>
meta-disk /dev/md5[0];<br>
}<br>
}<br>
<br>
<br>
<br>
Henri Cook wrote:
<blockquote cite="mid:48C25924.7020206@theplayboymansion.net"
type="cite">
<pre wrap="">Please, can anyone help? This is severely affecting my setup
If I start say, an FTP file transfer to my drbd /shared directory on
node A, then reboot node B which is the other machine in the
Primary-Primary configuration DRBD on node A register's a NetworkFailure
which appears to trigger a reboot action - I can't find anywhere to
define this behaviour, i'd very much like to stop the reboot happening.
So to confirm behaviour, during a transfer to A onto /shared, if I
reboot B as soon as A loses the connection to B, A reboots also -
cripping the pair.
Henri
_______________________________________________
drbd-user mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</a>
</pre>
</blockquote>
<font color="#000099" face="Trebuchet MS" size="2"><span
style="font-size: 10pt; font-family: Verdana; color: navy;"
lang="EN-GB"><st1:place w:st="on"><st1:country-region w:st="on"></st1:country-region></st1:place></span></font><br>
<font color="#000099" face="Trebuchet MS"><br>
</font><br>
<br>
Henri Cook wrote:
<blockquote cite="mid:48C25924.7020206@theplayboymansion.net"
type="cite">
<pre wrap="">Please, can anyone help? This is severely affecting my setup
If I start say, an FTP file transfer to my drbd /shared directory on
node A, then reboot node B which is the other machine in the
Primary-Primary configuration DRBD on node A register's a NetworkFailure
which appears to trigger a reboot action - I can't find anywhere to
define this behaviour, i'd very much like to stop the reboot happening.
So to confirm behaviour, during a transfer to A onto /shared, if I
reboot B as soon as A loses the connection to B, A reboots also -
cripping the pair.
Henri
_______________________________________________
drbd-user mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</a>
</pre>
</blockquote>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
drbd-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a>
<a class="moz-txt-link-freetext" href="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</a>
</pre>
</blockquote>
</body>
</html>