From owner-freebsd-stable@FreeBSD.ORG Tue Feb 21 09:58:33 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 D4E7716A420 for ; Tue, 21 Feb 2006 09:58:33 +0000 (GMT) (envelope-from eivind@aminor.no) Received: from vimes.aminor.no (vimes.aminor.no [213.187.177.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67AF943D45 for ; Tue, 21 Feb 2006 09:58:33 +0000 (GMT) (envelope-from eivind@aminor.no) Received: from [10.0.0.102] (bergen.nextgentel.net [217.13.1.24]) by vimes.aminor.no (Postfix) with ESMTP id D7013170A4 for ; Tue, 21 Feb 2006 10:58:31 +0100 (CET) Message-ID: <43FAE446.4090807@aminor.no> Date: Tue, 21 Feb 2006 10:58:30 +0100 From: Eivind Olsen User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: gmirror is confusing me, will I be bitten by the last-sector-use? 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, 21 Feb 2006 09:58:33 -0000 Hello. I've just configured a server to use gmirror (using FreeBSD 6.1b2). I followed the tutorial on http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html and did it install-time. Then I read in the gmirror(8) man-page that gmirror uses the last sector of the provider to store metadata. My mirror consists of two IDE-disks/consumers (ad0 and ad3), both showing a mediasize of "250059350016 (233G)" in "gmirror list". The provider is shown as having a mediasize of 250059349504. Sectorsize = 512. Now, how can I check whether my current partitions will cause trouble with the metadata-sector or not? I've done some searching on the net, but I'm still a bit confused. If I understand correctly, the consumers ad0/ad2 span 488397168 sectors (mediasize/sectorsize), and the mirror/gm0 spans 488397167 sectors. Here's the output from bsdlabel: vimes# bsdlabel /dev/mirror/gm0s1 # /dev/mirror/gm0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 6291456 0 4.2BSD 2048 16384 28552 b: 4194304 6291456 swap c: 488392002 0 unused 0 0 # "raw" part, don't edit d: 41943040 10485760 4.2BSD 2048 16384 28552 e: 2097152 52428800 4.2BSD 2048 16384 28552 f: 31457280 54525952 4.2BSD 2048 16384 28552 g: 31457280 85983232 4.2BSD 2048 16384 28552 h: 370951490 117440512 4.2BSD 2048 16384 28552 So, the "h" partition, which is the last one, has offset=117440512 and size=370951490, and if I add those together I get 488392002. Does this mean that my "h" partition ends at 488392001 (right before 488392002), and I'm still several sectors away from the metadata? Or am I misunderstanding things here? -- Regards / Hilsen Eivind Olsen