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