<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">No idea about the performance or why
you want to use this set-up, but a simple test shows that it does
work:<font face="Courier New, Courier, monospace"><br>
<br>
# Test on same host<br>
lvcreate -n drbd_one_data -L 1GiB vg1<br>
lvcreate -n drbd_one_meta -L 128M vg1<br>
<br>
lvcreate -n drbd_two_data -L 1GiB vg1<br>
lvcreate -n drbd_two_meta -L 128M vg1<br>
<br>
# Create resources<br>
drbdsetup new-resource one<br>
drbdsetup new-resource two<br>
<br>
# Init metadata<br>
drbdmeta --force /dev/drbd0 v08 /dev/vg1/drbd_one_meta 0
create-md<br>
drbdmeta --force /dev/drbd0 v08 /dev/vg1/drbd_one_meta 0
apply-al<br>
<br>
drbdmeta --force /dev/drbd1 v08 /dev/vg1/drbd_two_meta 0
create-md<br>
drbdmeta --force /dev/drbd1 v08 /dev/vg1/drbd_two_meta 0
apply-al<br>
<br>
# Minor numbers<br>
drbdsetup new-minor one /dev/drbd0 0<br>
drbdsetup new-minor two /dev/drbd1 0<br>
<br>
# Attach disks<br>
drbdsetup attach /dev/drbd0 /dev/vg1/drbd_one_data
/dev/vg1/drbd_one_meta 0<br>
drbdsetup attach /dev/drbd1 /dev/vg1/drbd_two_data
/dev/vg1/drbd_two_meta 0<br>
<br>
# Set-up connections<br>
drbdsetup connect one localhost:5000 localhost:5001 --verify-alg
sha1<br>
drbdsetup connect two localhost:5001 localhost:5000 --verify-alg
sha1<br>
<br>
# Make one primary<br>
drbdsetup primary /dev/drbd0 --force<br>
<br>
cat /proc/drbd:<br>
<br>
version: 8.4.3 (api:1/proto:86-101)<br>
srcversion: F97798065516C94BE0F27DC <br>
0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C
r-----<br>
ns:1048576 nr:0 dw:0 dr:1049312 al:0 bm:64 lo:0 pe:0 ua:0
ap:0 ep:1 wo:f oos:0<br>
1: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C
r-----<br>
ns:0 nr:1048576 dw:1048576 dr:0 al:0 bm:64 lo:0 pe:0 ua:0
ap:0 ep:1 wo:f oos:0<br>
</font><br>
On 06/19/2014 10:34 AM, Csanad Novak wrote:<br>
</div>
<blockquote cite="mid:etPan.53a2a0ac.6b8b4567.dc@Csanads-iMac.local"
type="cite">
<style>body{font-family:Helvetica,Arial;font-size:13px}</style>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Alexey,</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Unfortunately
you won’t get answer for this question, no matter how hard you
are trying. Let me guess: you’d like it because Amazon EC2? I’ve
read trough the documentation, asked this question on various
forums, including the company engineers, but the usual answer
is:</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">- Hey, that
would be RAID.</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">An other
standard answer is goes like Bret’s answer: why would you want
this. But even after you are telling why you would want it,
there will be no solid answer at all.</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">So my solution
is:</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Create a
network interface alias with an other IP address and you can
sync the two block device on the same host.</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Cheers </div>
<div id="bloop_sign_1403166435121954048" class="bloop_sign"><span
style="font-family:helvetica,arial;font-size:13px"></span>-- <br>
Csanad Novak<br>
<span>Sent with Airmail</span></div>
<br>
<p style="color:#000;">On 19 June 2014 at 8:24:42 pm, Bret Mette (<a
moz-do-not-send="true" href="mailto:bret.mette@dbihosting.com">bret.mette@dbihosting.com</a>)
wrote:</p>
<blockquote type="cite" class="clean_bq"><span>
<div>
<div>
<title></title>
<div dir="ltr">I am curious why you would want to use DRBD
for that
task? Isn't that a little overkill? There are other
means to do
that which certainly have less overhead and are easier
to
configure.
<div><br>
</div>
<div><br>
</div>
<div>- Bret</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, Jun 18, 2014 at 4:23
PM, Alexey
Orishko <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:alexey.orishko@gmail.com"
target="_blank">alexey.orishko@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi
all,<br>
<br>
I got recently across DRBD and it looks like a cool
stuff.<br>
I wonder if someone could clarify for me if it is
possible to<br>
configure DRBD to sync one block device to another
block device on
the<br>
same host?<br>
<br>
Regards,<br>
Alexey<br>
_______________________________________________<br>
drbd-user mailing list<br>
<a moz-do-not-send="true"
href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
<a moz-do-not-send="true"
href="http://lists.linbit.com/mailman/listinfo/drbd-user"
target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
</blockquote>
</div>
<br>
</div>
_______________________________________________
<br>
drbd-user mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</a>
<br>
</div>
</div>
</span></blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>
<br>
</body>
</html>