From owner-freebsd-geom@FreeBSD.ORG Tue Apr 8 21:55:58 2008 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 648CF1065680 for ; Tue, 8 Apr 2008 21:55:58 +0000 (UTC) (envelope-from nonsolosoft@diff.org) Received: from smtpout30.attiva.biz (smtpout30.attiva.biz [85.37.16.8]) by mx1.freebsd.org (Postfix) with ESMTP id EDCA68FC14 for ; Tue, 8 Apr 2008 21:55:48 +0000 (UTC) (envelope-from nonsolosoft@diff.org) Received: from FBCMFE02B06.fbc.local ([192.168.30.94]) by smtpout30.attiva.biz with Microsoft SMTPSVC(6.0.3790.1830); Tue, 8 Apr 2008 23:55:27 +0200 Received: from lap.diff.org ([79.38.40.19]) by FBCMFE02B06.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 8 Apr 2008 23:55:27 +0200 Message-ID: <47FBE9CC.6050903@diff.org> Date: Tue, 08 Apr 2008 23:55:24 +0200 From: Ferruccio Zamuner User-Agent: Thunderbird 2.0.0.6 (X11/20071020) MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 08 Apr 2008 21:55:27.0136 (UTC) FILETIME=[412F7200:01C899C3] Subject: disklabel and gm0 (gmirror) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2008 21:55:58 -0000 # disklabel /dev/mirror/gm0 # /dev/mirror/gm0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2089984 79 4.2BSD 0 0 0 b: 2910000 2090063 unused 0 0 c: 463459122 63 unused 0 0 # "raw" part, don't edit d: 10000000 5000063 4.2BSD 0 0 0 e: 10000000 15000063 4.2BSD 0 0 0 f: 15000000 25000063 4.2BSD 0 0 0 g: 423459058 40000063 4.2BSD 0 0 0 partition c: partition extends past end of unit disklabel: partition c doesn't start at 0! disklabel: partition c doesn't cover the whole unit! disklabel: An incorrect partition c may cause problems for standard system utilities # gmirror list Geom name: gm0 State: COMPLETE Components: 3 Balance: split Slice: 8192 Flags: NONE GenID: 0 SyncID: 2 ID: 3991481480 Providers: 1. Name: mirror/gm0 Mediasize: 237291069952 (221G) Sectorsize: 512 Mode: r5w5e6 Consumers: 1. Name: ad6s1 Mediasize: 237291070464 (221G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 2 ID: 3276824044 2. Name: ad10s1 Mediasize: 237291070464 (221G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 2 ID: 1289844737 3. Name: ad12s1 Mediasize: 237291070464 (221G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 2 ID: 1706660870 237291069952 / 512 (mirror/gm0 Mediasize / sector size) 463459121 (the size that gm0c should be) 423459058 + 40000063 (gm0g size + gm0g offset) 463459121 (gm0 size) How can I fix it? disklabel -e /dev/mirror/gm0 setting gm0c offset = 0 setting gm0c size = 463459121 gives following warning and not change these values: partition c: partition extends past end of unit disklabel: partition c doesn't start at 0! disklabel: partition c doesn't cover the whole unit! disklabel: An incorrect partition c may cause problems for standard system utilities Thank you in advance, \fer