[Drbd-dev] [PATCH] drbd: create new uuid even we dont have quorum

Rui Xu rui.xu at easystack.cn
Thu Mar 3 08:10:09 CET 2022


We cant skip creating new uuid, when we are making new uuid.

If there is an IO blocked by creating new uuid, but we found
we dont have quorum, then NEW_CUR_UUID will be cleared but
new uuid was not actually created.

After one peer online, we have enough quorum to continue IO, then this
IO will reach  primary and the online peer.

But if there is another peer join later, this peer will found same uuid, and will lose data.

Signed-off-by: Rui Xu <rui.xu at easystack.cn>
---
 drbd/drbd_sender.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drbd/drbd_sender.c b/drbd/drbd_sender.c
index 7238730..88d49d9 100644
--- a/drbd/drbd_sender.c
+++ b/drbd/drbd_sender.c
@@ -2360,7 +2360,7 @@ void drbd_check_peers_new_current_uuid(struct drbd_device *device)
 
 	drbd_check_peers(resource);
 
-	if (device->have_quorum[NOW] && drbd_data_accessible(device, NOW))
+	if (drbd_data_accessible(device, NOW))
 		drbd_uuid_new_current(device, false);
 }
 
-- 
1.8.3.1



More information about the drbd-dev mailing list