From owner-freebsd-stable@FreeBSD.ORG Tue May 5 12:38:19 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D43EE1065676 for ; Tue, 5 May 2009 12:38:19 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 8FF8B8FC1F for ; Tue, 5 May 2009 12:38:19 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 9DE5319E043; Tue, 5 May 2009 14:38:14 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 804E819E044; Tue, 5 May 2009 14:38:12 +0200 (CEST) Message-ID: <4A003334.70807@quip.cz> Date: Tue, 05 May 2009 14:38:12 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: Chris H References: <20090505024800.tk0saqntsgk8kk8c@webmail.1command.com> <20090505101301.GA31143@intserv.int1.b.intern> <20090505050606.hkxc6cgl3k8ccgws@webmail.1command.com> In-Reply-To: <20090505050606.hkxc6cgl3k8ccgws@webmail.1command.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: GEOM_STRIPE: Cannot add disk da2c to st0 (error=17). X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2009 12:38:20 -0000 Chris H wrote: > Hello, and thank you for your reply... > > Quoting Holger Kipp : > [...] >> >> Can you check if you have any fdisk metadata on either of your disks? >> Especially as da0, da1, da2 are attached to st0 without problems, >> but then GEOM_STRIPE complains about da2c (which looks like a partition >> entry)... > > > I cheated, and went into sysinstall > custom > partition > > chose each of da0, da1, and da2 > > pressed "f" then "no" then "yes". Which forced a "dangerously" dedicated > disk. I also chose "w" on all occasions, and each time the response > indicated > Successfully written to disk. I then bailed out of sysinstall, then went > back, and deleted the partitions, and again, chose "w". Which also > indicated > "Successfully written to disk". I then bailed out of sysinstall. > Having felt the disks were all now clean, I proceeded with the command: > > gstripe label -v st0 /dev/da0 /dev/da1 /dev/da2 > > ...well, you know the rest of the story. :) > > Is this not a good (the best) direction to take? I recommend you to use dd if=/dev/zero of=/dev/da0 count=1000 dd if=/dev/zero of=/dev/da1 count=1000 dd if=/dev/zero of=/dev/da2 count=1000 to clear the begining of the disks. The next step should be to clear the few last sectors, where metadata of GEOM mirror, journal, stripe etc. are stored, so you end up with "clear disks" which you can use in whatever setup you want without problem with old data, partitions etc. Miroslav Lachman