Return-Path: Received: from minna.local (1Cust184.tnt13.ber2.deu.da.uu.net [149.225.240.184]) by mail.linbit.com (LINBIT Mail Daemon) with ESMTP id 4C872142F8 for ; Mon, 23 Aug 2004 16:32:42 +0200 (CEST) Date: Mon, 23 Aug 2004 16:28:04 +0200 From: Lars Ellenberg To: drbd-dev@lists.linbit.com Subject: [Drbd-dev] gen_counts and primary --human Message-ID: References: <20040819110202.GO9601@marowsky-bree.de> <20040819113205.GP9601@marowsky-bree.de> <200408201452.52512.philipp.reisner@linbit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: Coordination of development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > Yet an other deficiency: > we still do not handle the gencounts correctly in this situation: > > S --- S > P --- S drbdsetup primary --human > now, N1 increments its human cnt, N2 only its connection count after > failure of N1, N2 will take over, maybe be primary for a whole week. > then N1 comes back, has the higher human count, and will > either [see above] (if N2 still is Primary) > or wipe out a week worth of changes (if N2 was demoted to Secondary > meanwhile). > > Oops :-( I'd suggest to ignore the --human flag when connected. It does not make sense in the connected case. lge