If you want an exact copy of a filesystem, you can use dd instead.<div><br></div><div>For example:</div><div>Say you have a file system that contain data only.</div><div>you can create a 'backup' of that filesystem using dd:</div>
<div>dd if=$SOURCEFILESYSTEM of=$DESTINATIONFILE</div><div>afterwards, you 'restore' the file system using</div><div>dd if=$SOURCEFILE of=DESTINATIONDRBDDEVICE</div><div>This is very basic dd, read the man pages for more options</div>
<div>For 'if' and 'of' any block device and file you can read from (if) and write to (of) can be used</div><div><br></div><div>Then you can use this image to restore to a drbd resource</div><div><div><br></div>
<div><div>Hope this helps.</div><div><br></div><div>Regards,</div><div><br></div><div>Serge Fonville<br><br><div class="gmail_quote">On Sat, Feb 7, 2009 at 4:47 PM, Bluntknife <span dir="ltr"><<a href="mailto:paul_rawlinson@msn.com">paul_rawlinson@msn.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d"><br>
<br>
<br>
On Sat, 7 Feb 2009 05:54:47 -0800 (PST)<br>
Bluntknife <<a href="mailto:paul_rawlinson@msn.com">paul_rawlinson@msn.com</a>> wrote:<br>
<br>
> I currently have 2 Ubuntu 8.10 servers and have successfully<br>
> installed and configured DRBD and a drbd.conf file...I think. The<br>
> service runs and when I type the cmd "drbdadm up r0" I see a<br>
> connection between the 2 servers stating that the DRBD connection is<br>
> established. The problem is the connection drops almost straight away<br>
> and I think it's because I am trying to synchronise my SDA1 partition.<br>
><br>
> I want my secondary server to be an exact clone of the primary and I<br>
> thought I could use DRBD for this.<br>
><br>
> Should it be possible to synchronise my primary partition (the boot<br>
> and system files)?<br>
<br>
>You can't 'mirror' partitions that's mounted. You have to create drbd<br>
>on top of /dev/sda1 and then create filesystem on /dev/drbdX and<br>
>mount /dev/drbdX, not /dev/sda1. Think of it as mdadm or lvm, where you<br>
>have to use upper level (/dev/mdX or /dev/mapper/X-Y). It's the same<br>
>logic, only here you have to use /dev/drbdX<br>
<br>
</div>Sorry if you have received multiple emails from this thread. I think I<br>
clicked reply directly to you Ante rather than just reply.<br>
<br>
Anyway...<br>
<br>
I think I understand what you are saying but I don't know where to go from<br>
here.<br>
Will I have to rebuild my servers because the filesystem has already been<br>
installed to the<br>
lower level sda1 partition?<br>
Or can the upper level partition be created on top off my existing sda1<br>
partition, preserving the server's files in order to be able to replicate<br>
them?<br>
<br>
Many thanks (and sorry again if you did receive multiple replies from this<br>
post Ante)<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://www.nabble.com/Can-DRBD-8-synchronise-SDA1--tp21887192p21889678.html" target="_blank">http://www.nabble.com/Can-DRBD-8-synchronise-SDA1--tp21887192p21889678.html</a><br>
</font><div class="Ih2E3d">Sent from the DRBD - User mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="Wj3C7c">drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
</div></div></blockquote></div><br></div></div></div>