From owner-freebsd-stable@FreeBSD.ORG Thu Apr 6 14:21:17 2006 Return-Path: X-Original-To: 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 0647916A41F for ; Thu, 6 Apr 2006 14:21:17 +0000 (UTC) (envelope-from vivek@khera.org) Received: from yertle.kcilink.com (yertle.kcilink.com [65.205.34.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3924043D83 for ; Thu, 6 Apr 2006 14:21:09 +0000 (GMT) (envelope-from vivek@khera.org) Received: from [192.168.7.103] (host-103.int.kcilink.com [192.168.7.103]) by yertle.kcilink.com (Postfix) with ESMTP id BAB8EB820 for ; Thu, 6 Apr 2006 10:21:08 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v749.3) In-Reply-To: <20060406081213.GA5578@garage.freebsd.pl> References: <440D74B3.3030309@vwsoft.com> <200603070939.30032.joao@matik.com.br> <54559.192.168.0.10.1141751042.squirrel@webmail.sd73.bc.ca> <20060316160813.GA15720@nowhere> <442033A2.2030208@rogers.com> <442043D0.6090206@centtech.com> <4432EA5E.3060003@rogers.com> <20060406081213.GA5578@garage.freebsd.pl> X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <5DB6F364-6FE2-4DB9-9D88-C7053868777F@khera.org> Content-Transfer-Encoding: 7bit From: Vivek Khera Date: Thu, 6 Apr 2006 10:21:07 -0400 To: stable@freebsd.org X-Mailer: Apple Mail (2.749.3) Cc: Subject: Re: gmirror on existing filesystem (was Fresh install on gmirror'ed disks?) 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, 06 Apr 2006 14:21:17 -0000 On Apr 6, 2006, at 4:12 AM, Pawel Jakub Dawidek wrote: > I can't give you an authoritative answer, because I don't know UFS > internals so well. All I know is that it (UFS) thinks the last > sector is > available and may want to use it at some point getting EIO then. Well, my ovservation from using "diskinfo -t -v" on my /dev/ad4 device and then on the /dev/mirror/gm0 device after the mirror create shows a slightly smaller mediasize. Now, whether the UFS knows it is smaller or not, I can't say, but the lower level of the OS is reporting a smaller media size. In any case, every time I partition a disk, fdisk always leaves a bunch of sectors hanging off the end. I presume that's where gmirror stores its data for whole-disk mirror... at least I'd hope!