From owner-freebsd-stable@FreeBSD.ORG Sat Mar 24 22:20:53 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4D2C416A402 for ; Sat, 24 Mar 2007 22:20:53 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id EF34313C45B for ; Sat, 24 Mar 2007 22:20:52 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.13.8/jtpda-5.4) with ESMTP id l2OM0lHx081459 for ; Sat, 24 Mar 2007 23:00:47 +0100 (CET) X-Ids: 166 Received: by parthe.lpthe.jussieu.fr (Postfix, from userid 10096) id 01F1ABF684; Sat, 24 Mar 2007 23:00:45 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on parthe.lpthe.jussieu.fr X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id 51874BF682 for ; Sat, 24 Mar 2007 23:00:45 +0100 (CET) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id 4D9F480; Sat, 24 Mar 2007 23:00:45 +0100 (CET) Date: Sat, 24 Mar 2007 23:00:45 +0100 From: Michel Talon To: freebsd-stable@freebsd.org Message-ID: <20070324220045.GA15059@lpthe.jussieu.fr> Mail-Followup-To: Michel Talon , freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (shiva.jussieu.fr [134.157.0.166]); Sat, 24 Mar 2007 23:00:47 +0100 (CET) X-Virus-Scanned: ClamAV 0.88.7/2921/Sat Mar 24 14:52:12 2007 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at shiva.jussieu.fr with ID 46059F8F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! Subject: Re: bsdlabel blues again 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: Sat, 24 Mar 2007 22:20:53 -0000 Volker said: > As I've done this procedure twice yesterday and once more today, > I've double and triple checked everything but I'm running into one > single problem: > > partition c extends past end of unit and doesn't start at 0. I think you should run bsdlabel on the mirror, not on the raw partitions or disks. Then you will have no more problem of the above type, only the innocuous following one: gms1 is a mirror of ad0s1 and ad4s1: asmodee% bsdlabel mirror/gms1 # /dev/mirror/gms1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 524272 16 4.2BSD 2048 16384 32768 b: 2097152 524288 swap c: 32766992 0 unused 0 0 # "raw" part, d: 524288 2621440 4.2BSD 2048 16384 32776 e: 524288 3145728 4.2BSD 2048 16384 32776 f: 29096970 3670016 4.2BSD 2048 16384 28552 asmodee% bsdlabel ad0s1 # /dev/ad0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 524272 16 4.2BSD 2048 16384 32768 b: 2097152 524288 swap c: 32766992 0 unused 0 0 # "raw" part, d: 524288 2621440 4.2BSD 2048 16384 32776 e: 524288 3145728 4.2BSD 2048 16384 32776 f: 29096970 3670016 4.2BSD 2048 16384 28552 bsdlabel: partition c doesn't cover the whole unit! bsdlabel: An incorrect partition c may cause problems for standard system utilities asmodee% bsdlabel ad4s1 # /dev/ad4s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 524272 16 4.2BSD 2048 16384 32768 b: 2097152 524288 swap c: 32766992 0 unused 0 0 # "raw" part, d: 524288 2621440 4.2BSD 2048 16384 32776 e: 524288 3145728 4.2BSD 2048 16384 32776 f: 29096970 3670016 4.2BSD 2048 16384 28552 bsdlabel: partition c doesn't cover the whole unit! bsdlabel: An incorrect partition c may cause problems for standard system utilities I think the difference is the last sector of the partition on which geom writes its configuration. -- Michel TALON