<br><font size=2><tt>M. Ellenberg</tt></font>
<br>
<br><font size=2 face="sans-serif">I have a problem with DRBD</font>
<br>
<br><font size=2 face="sans-serif">This is the scenario.</font>
<br><font size=2 face="sans-serif">We are using samba on the linux box
getting replicate thru drbd</font>
<br>
<br><font size=2 face="sans-serif">They are using a 10MB line betwwen the
2 machines they are in different town.</font>
<br>
<br><font size=2 face="sans-serif">When the user copy a 500mb file on the
PRIMARY linux server and drbd is up on both node</font>
<br><font size=2 face="sans-serif">il look like the copy get timed out
and lost contact with the PRIMARY linux box.</font>
<br>
<br><font size=2 face="sans-serif">The change I did to try to fix this
was </font>
<br><font size=2 face="sans-serif">first changing the protocole from C
to A</font>
<br><font size=2 face="sans-serif">and change the sndbuf-size from the
default to 512K</font>
<br>
<br><font size=2 face="sans-serif">Look like those changes didnt make a
diference</font>
<br><font size=2 face="sans-serif">The only way I know right now to fix
the problem is to get the secondary node down</font>
<br>
<br><font size=2 face="sans-serif">When the primary is in the state Primary/Unknown
the copy of files work great</font>
<br><font size=2 face="sans-serif">but I dont have replication anymore.</font>
<br>
<br><font size=2 face="sans-serif">Heres a part of the drbd.conf ( it include
only one replicated partition the others are a exact copy of resource drbd0,
except for the /dev the disk and meta-disk parameters) and </font>
<br><font size=2 face="sans-serif">I have also include the drbdsetup /dev/drbd0
show command ( to let you see how drbd see the parameters set) :</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">DRBD.CONF</font>
<br>
<br><font size=2 face="sans-serif">global {</font>
<br><font size=2 face="sans-serif"> minor-count
4;</font>
<br><font size=2 face="sans-serif"> dialog-refresh
600;</font>
<br><font size=2 face="sans-serif">}</font>
<br><font size=2 face="sans-serif">resource drbd0 {</font>
<br><font size=2 face="sans-serif"> protocol
A;</font>
<br><font size=2 face="sans-serif"> incon-degr-cmd
"/bin/true";</font>
<br><font size=2 face="sans-serif"> syncer {</font>
<br><font size=2 face="sans-serif">
rate 70M;</font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif"> net {</font>
<br><font size=2 face="sans-serif">
sndbuf-size 512k;</font>
<br>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif"> on smb-mtl01
{</font>
<br><font size=2 face="sans-serif">
device /dev/drbd0;</font>
<br><font size=2 face="sans-serif">
disk /dev/mapper/VGPrivate_orion-LVPrivate_orion;</font>
<br><font size=2 face="sans-serif">
address 10.10.1.3:7789;</font>
<br><font size=2 face="sans-serif">
meta-disk /dev/sdh1[0];</font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif"> on smb-sjo01
{</font>
<br><font size=2 face="sans-serif">
device /dev/drbd0;</font>
<br><font size=2 face="sans-serif">
disk /dev/mapper/VGPrivate_orion-LVPrivate_orion;</font>
<br><font size=2 face="sans-serif">
address 10.10.2.66:7789;</font>
<br><font size=2 face="sans-serif">
meta-disk /dev/sde1[0];</font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">------------------------------------------------------------------------------------------------------------------</font>
<br>
<br><font size=2 face="sans-serif">drbdsetup /dev/drbd0 show</font>
<br>
<br>
<br><font size=2 face="sans-serif">Lower device: 253:02 (dm-2)</font>
<br><font size=2 face="sans-serif">Meta device: 08:113 (sdh1)</font>
<br><font size=2 face="sans-serif">Meta index: 0</font>
<br><font size=2 face="sans-serif">Disk options:</font>
<br><font size=2 face="sans-serif">Local address: 10.10.1.3:7789</font>
<br><font size=2 face="sans-serif">Remote address: 10.10.2.66:7789</font>
<br><font size=2 face="sans-serif">Wire protocol: A</font>
<br><font size=2 face="sans-serif">Net options:</font>
<br><font size=2 face="sans-serif"> timeout = 6.0 sec (default)</font>
<br><font size=2 face="sans-serif"> connect-int = 10 sec (default)</font>
<br><font size=2 face="sans-serif"> ping-int = 10 sec (default)</font>
<br><font size=2 face="sans-serif"> max-epoch-size = 2048 (default)</font>
<br><font size=2 face="sans-serif"> max-buffers = 2048 (default)</font>
<br><font size=2 face="sans-serif"> sndbuf-size = 524288</font>
<br><font size=2 face="sans-serif"> ko-count = 0 (default)</font>
<br><font size=2 face="sans-serif">Syncer options:</font>
<br><font size=2 face="sans-serif"> rate = 71680 KB/sec</font>
<br><font size=2 face="sans-serif"> group = 0 (default)</font>
<br><font size=2 face="sans-serif"> al-extents = 127 (default)</font>
<br>
<br><font size=2 face="sans-serif">I'm almost sure I need to set others
paramater to improve the performance of drbd on the primary node</font>
<br><font size=2 face="sans-serif">or maybe tune the one I got.</font>
<br>
<br><font size=2 face="sans-serif">Since Im a little lost in all this I
hope you can help me out</font>
<br>
<br><font size=2 face="sans-serif">Thanks !</font>
<br>
<br><font size=2 face="sans-serif">Claude Pelletier<br>
Serti Informatique Inc.<br>
Courriel/Email : cpelletier@serti.com<br>
Téléphone/Phone : (514) 493-1909<br>
Télécopieur/Fax : (514) 493-3575<br>
</font>