lkml.org 
[lkml]   [2015]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 00/10] Zero out devices instead of initial full sync
Date
Full sync for drbd initial usually take a long time, especically
when network become the bottleneck the syncing. Simply skip the
full sync with "--clear-bitmap" may not the perfect solution
for all the cases. So this patches can be used to zero out
devices locally instead of a full sync,two make consistent block
device. This approach can be useful when lack of network bandwidth
to sync.

The patches add one new option "--zap-devices" to "new-current-uuid"
to zero out devices. Besides the change of drbd, also need to modify
drbd-utils for the flag.

All patches are compiled/tested against SLES12.

Signed-off-by: Nick Wang <nwang@suse.com>
CC: Philipp Reisner <philipp.reisner@linbit.com>
CC: Lars Ellenberg <lars.ellenberg@linbit.com>
CC: drbd-dev@lists.linbit.com
CC: linux-kernel@vger.kernel.org

drbd/drbd_int.h | 9 +++++
drbd/drbd_main.c | 42 ++++++++++++++++++++-
drbd/drbd_nl.c | 42 ++++++++++++++++++++-
drbd/drbd_protocol.h | 1 +
drbd/drbd_receiver.c | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++
drbd/linux/drbd_genl.h | 1 +
6 files changed, 191 insertions(+), 3 deletions(-)

--
1.8.4.5



\
 
 \ /
  Last update: 2015-06-10 10:21    [W:0.122 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site