From owner-freebsd-stable@FreeBSD.ORG Thu Jan 19 19:27:42 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C351516A41F for ; Thu, 19 Jan 2006 19:27:42 +0000 (GMT) (envelope-from ler@lerctr.org) Received: from lerami.lerctr.org (lerami.lerctr.org [192.147.25.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DCFF43D49 for ; Thu, 19 Jan 2006 19:27:42 +0000 (GMT) (envelope-from ler@lerctr.org) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lerami; d=lerctr.org; b=R37Y2O+jgJPwt6cghTwV6M0vIsFGW+G8zMC/MvE+5S1YhDMmEqFKYQ8uC/7C6+7NENR8xVD2UFd9rKsnqwInD6C5T6//XR7BWrNZSKS4MmvvOOsma3z/hikfjcQZ1odi2/tlJMlR3ku5EQDgX5Vygpj2k0wJMNBwx3I4lMYnpSs=; Received: from 64-132-13-2.gen.twtelecom.net ([64.132.13.2]:57786 helo=LROSENMAC8010P) by lerami.lerctr.org with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.60) (envelope-from ) id 1EzfRa-0007jy-QW; Thu, 19 Jan 2006 13:27:41 -0600 From: "Larry Rosenman" To: "'Craig Boston'" , Date: Thu, 19 Jan 2006 13:27:38 -0600 Message-ID: <00e701c61d2e$68938fc0$0a0a0a0a@aus.pervasive.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20060119175608.GA911@nowhere> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Thread-Index: AcYdIbmAdg9YZLy8Qfu3KwhCc3vCRwADIplg X-Spam-Score: -4.4 (----) X-LERCTR-Spam-Score: -4.4 (----) X-Spam-Report: (-4.4 points, 5.0 required) ALL_TRUSTED=-1.8 BAYES_00=-2.599 DK_POLICY_SIGNSOME=0.001 X-LERCTR-Spam-Report: (-4.4 points, 5.0 required) ALL_TRUSTED=-1.8 BAYES_00=-2.599 DK_POLICY_SIGNSOME=0.001 DomainKey-Status: no signature Cc: Subject: RE: Gmirror'd SWAP: no dump? 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: Thu, 19 Jan 2006 19:27:42 -0000 Craig Boston wrote: > On Thu, Jan 19, 2006 at 02:53:42PM +0000, Thomas Hurst wrote: >>> IIRC I had the problem that 'gmirror insert' without '-h' not always >>> inserted the slice specified by the entire block device (e.g. >>> /dev/ad4s1 vs. /dev/ad4). Apparently there is some auto detection >>> code and/or gmirror cannot differ correctly, but that's just a >>> guess. Specifing '-h' fixed it in my case. >> >> As I understand it, gmirror writes its metadata on the last sector of >> the provider; when tasting devices it will look at the last sector of >> ad4, find the metadata and use that as the provider for your mirror; >> you can either hardcode the provider name there to override it, or >> make the slice 1 sector smaller so gmirror tastes ad4, finds >> nothing, then goes on to taste ad4s1 correctly. > > This was fixed for most cases by adding the size of the provider to > the metadata. ad4 should be a different size than ad4s1 as the > partition table has to go somewhere... > > Looks like it was fixed in HEAD in Feb 2005, and MFC'd to 5.x in > March. Shouldn't have ever been a problem for 6.x release. > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/geom/mirror/g_mirror.c#rev1.19 .2.8 > Hrm. With using the method for slices as specified on the ~rse page, I got repeatable lockups. With specifying the entire disk, it works as normal, but no dump device. Suggestions on how to enable dump, **AND** reliable boot would be appreciated. LER -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893