<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On 17 Dec 2016 1:07 pm, "Jasmin J." <<a href="mailto:jasmin@anw.at">jasmin@anw.at</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
I have a machine (A) with a RAID1 and a BBU. On top of a partition of this RAID<br>
is LVM and then DRBD 8.4.<br>
<br>
The other machine (B), which is the DRBD mirror for the former mentioned<br>
partition, has a normal SATA disk. I try to use Protocol A, so it makes sense<br>
to configure disk-barrier and disk-flushes different on machine A (quick) and<br>
B (slower).<br>
<br>
Here is my config:<br>
resource vm-100-disk-root {<br>
net {<br>
# allow-two-primaries;<br>
after-sb-0pri discard-zero-changes;<br>
after-sb-1pri discard-secondary;<br>
after-sb-2pri disconnect;<br>
}<br>
disk {<br>
no-disk-barrier;<br></blockquote></div></div></div><div dir="auto">This is 8.3 syntax</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
}<br>
volume 0 {<br>
device /dev/drbd0;<br>
meta-disk internal;<br>
}<br>
on serverA {<br>
# LVM on top of RAID1<br>
disk /dev/vg_vm_disks_A/vm_100_disk<wbr>_root;<br>
address <a href="http://10.1.0.1:7788" rel="noreferrer" target="_blank">10.1.0.1:7788</a>;<br>
# we have a BBU on the RAID controller, so no flushing<br>
# necessary<br>
no-disk-flushes;<br></blockquote></div></div></div><div dir="auto">This one too</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
}<br>
on serverB {<br>
# /dev/sdc1 normal SATA disk<br>
disk /dev/vg_vm_disks_A/vm_100_disk<wbr>_root;<br>
address <a href="http://10.1.0.2:7788" rel="noreferrer" target="_blank">10.1.0.2:7788</a>;<br>
# this is a local disk without battery and cache<br>
disk-flushes;<br>
}<br>
}<br>
<br>
But this gives:<br>
$ drbdadm adjust vm-100-disk-root<br>
drbd.d/vm_100_disk_root.res:22<wbr>: Parse error: 'disk | device | address |<br>
meta-disk | flexible-meta-disk' expected, but got 'no-disk-flushes<br></blockquote></div></div></div><div dir="auto">Hence drbd complains. I leave it to you to fin the correct syntax in the 8.4 conf manual.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So it seems this is the wrong syntax to describe what I want.<br>
<br>
Can someone explain if it is possible to define different "disk-flushes"<br>
options to different hosts/disks with another syntax?<br>
If the answer is yes, how can I do this?<br>
If the answer is no, is there a technical reason or simply "not required till<br>
now and therefore not implemented"?<br>
<br>
BR,<br>
Jasmin<br>
______________________________<wbr>_________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com" target="_blank">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" rel="noreferrer" target="_blank">http://lists.linbit.com/mailma<wbr>n/listinfo/drbd-user</a><br>
</blockquote></div><br></div></div></div>