From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.able.be (gwb.able.be [194.78.97.254]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail09.linbit.com (LINBIT Mail Daemon) with ESMTPS id 55EB01055F5F for ; Thu, 7 Mar 2013 16:54:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by gw-master.mechelen.vasco.com (Postfix) with ESMTP id 00ABC18015 for ; Thu, 7 Mar 2013 16:54:37 +0100 (CET) Received: from itsj.localnet (tvb.mechelen.vasco.com [10.32.64.113]) by gw-master.mechelen.vasco.com (Postfix) with ESMTP id D862D17F35 for ; Thu, 7 Mar 2013 16:54:36 +0100 (CET) From: Tijs Van Buggenhout To: drbd-dev@lists.linbit.com Date: Thu, 07 Mar 2013 16:54:42 +0100 Message-ID: <1452163.IjCXaMLILp@itsj> In-Reply-To: <20130307093137.GA21005@soda.linbit> References: <1963827.4HPAHhzfUk@itsj> <20130307093137.GA21005@soda.linbit> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [Drbd-dev] DRBD 8.4.3 : create-md possibly broken for fixed sized (shared) meta devices Reply-To: Tijs Van Buggenhout List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thursday 07 March 2013 10:31:37 Lars Ellenberg wrote: > On Wed, Mar 06, 2013 at 03:24:36PM +0100, Tijs Van Buggenhout wrote: > > Hi, > > > > I recently installed drbd 8.4.3 packages and ran into problems when trying > > to create a drbd resource using fixed size drbd meta device ided by an > > index. Investigating further, it seems that when using a flexible meta > > disk, there is no problem whatsoever. > > I also used the same configuration file/set of commands on the previous > > version (8.4.2) for fixed size meta-disk, which worked without problems. > > > > The following excerpt from the console log shows how I first create a drbd > > resource (drbd0) with flexible meta disk (/dev/lv/drbd-meta-84). > > Afterwards I undo the configuration, and try to do the same for fixed > > drbd meta disk, which fails (every time). Then I roll back to the > > previous version of drbd utils/module, and try the setup with fixed drbd > > meta disk again, which succeeds. > > > > resource drbd0 { > > > > on master.domain.com { > > > > device /dev/drbd0; > > disk /dev/lv/data; > > address 172.16.1.179:7788; > > meta-disk /dev/lv/drbd-meta-84 [0]; > > > > (master.domain.com):~# dd if=/dev/zero of=/dev/lv/drbd-meta-84 > > bs=$[1024*1024] (master.domain.com):~# modprobe drbd > > (master.domain.com):~# cat /proc/drbd > > version: 8.4.3 (api:1/proto:86-101) > > GIT-hash: 89a294209144b68adb3ee85a73221f964d3ee515 build by root@build, > > 2013-03-05 15:10:01 > > (master.domain.com):~# drbdsetup new-resource drbd0 > > (master.domain.com):~# drbdsetup new-minor drbd0 /dev/drbd0 0 > > (master.domain.com):~# drbdadm create-md drbd0 -vvvvvvvvvv > > (master.domain.com):~# drbdadm attach drbd0 > > 0: Failure: (119) No valid meta-data signature found. > > > > ==> Use 'drbdadm create-md res' to initialize meta-data area. <== > > D'oh. > That is embarrassing. > > I wonder why the regression tests using "old style indexed fixed size > external meta data" have not been exercised. > > http://git.drbd.org/gitweb.cgi?p=drbd-8.4.git;a=commitdiff;h=82cf5feada2e4d0 > f536af5f6f377bd0f3fac1236 > > Thanks, Patch is working, thanks for the quick response/fix! Is a new release of drbd 8.4 series to be expected in the near future? Regards, Tijs