[DRBD-user] Truck replication

jay b tech_j at hotmail.com
Tue Nov 10 20:18:16 CET 2009

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.



Truck replication page: http://www.drbd.org/users-guide/users-guide.html 
For dump /restore part: http://www.drbd.org/users-guide/s-resizing.html 

What I am trying to achieve:
~~~~~~~~~~~~~~~~~~
I have 2 node setup (primary/secondary), each node have ~4TB disk, and rest of the hardware configuration is exactly the same.   I want this setup so that in a fail over scenario where secondary can be promoted to primary.  I am using Truck replication because I want to avoid initial sync time, which in our case takes more than 12hrs.

> > takes place. Any idea what could be causing this,
> You ;)
Glad if this is the case :)

Basically, steps that I mentioned earlier were for secondary node only. 

> > drbdadm detach res
> why?
Because if resource is attached we cannot restore metadata (metadata dump from primary) .

> > ${drbdmeta_cmd/dump-md/restore-md} /var/testmeta
> 
> why?
Basically it is delivering "drbdmeta 1 v08 /dev/sdb3 internal restore-md /var/testmeta" command to restore meta on this secondary node (sorry for including extra bash commands). So the idea is that when both nodes connect they are UpToDate/UpToDate.

Let me know if there is something wrong with this approach.


Thanks much,
Jay


> Date: Tue, 10 Nov 2009 16:10:44 +0100
> From: lars.ellenberg at linbit.com
> To: drbd-user at lists.linbit.com
> Subject: Re: [DRBD-user] Truck replication
> 
> On Mon, Nov 09, 2009 at 10:26:07PM +0000, jay b wrote:
> > 
> > 
> > Hi All:
> > 
> > I am hitting a strange behavior during truck replication (so far it
> > has occurred to one machine out of 10).  I have two machines node1 and
> > node2, and I am restoring metadata on node2.  Whenever I do the
> > following (as mentioned on truck replication page) resynchronization
> > takes place. Any idea what could be causing this,
> 
> You ;)
> 
> > any clues to debug such issues?  
> > 
> > drbdsetup 1 new-current-uuid --clear-bitmap
> 
> fine.
> 
> > drbdadm detach res
> 
> why?
> 
> > drbdmeta_cmd=$(drbdadm -d dump-md res)
> 
> why?
> 
> > drbdadm detach res 
> 
> why?
> 
> > ${drbdmeta_cmd/dump-md/restore-md} /var/testmeta
> 
> why?
> 
> 
> May I ask
>  * what are you trying to achieve?
>  * which "truck replication page" are you referring to?
> 
> -- 
> : Lars Ellenberg
> : LINBIT | Your Way to High Availability
> : DRBD/HA support and consulting http://www.linbit.com
> 
> DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
> __
> please don't Cc me, but send to list   --   I'm subscribed
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
 		 	   		  
_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
http://go.microsoft.com/?linkid=9691816
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20091110/e0715e2f/attachment.htm>


More information about the drbd-user mailing list