From owner-freebsd-geom@FreeBSD.ORG Sat Jan 27 23:03:46 2007 Return-Path: X-Original-To: freebsd-geom@FreeBSD.ORG Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 68FE316A402 for ; Sat, 27 Jan 2007 23:03:46 +0000 (UTC) (envelope-from mythtv@logic-q.nl) Received: from amsfep17-int.chello.nl (amsfep17-int.chello.nl [62.179.120.12]) by mx1.freebsd.org (Postfix) with ESMTP id AB7CD13C48D for ; Sat, 27 Jan 2007 23:03:45 +0000 (UTC) (envelope-from mythtv@logic-q.nl) Received: from mail.logic-q.nl ([89.98.181.67]) by amsfep15-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20070127224521.BTXC1787.amsfep15-int.chello.nl@mail.logic-q.nl> for ; Sat, 27 Jan 2007 23:45:21 +0100 Received: from localhost (localhost.logic-q.nl [127.0.0.1]) by mail.logic-q.nl (Postfix) with ESMTP id 0F6EE1171B for ; Sat, 27 Jan 2007 23:19:29 +0100 (CET) X-Virus-Scanned: amavisd-new at logic-q.nl Received: from mail.logic-q.nl ([127.0.0.1]) by localhost (mail.logic-q.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PLtdJAmqO2IK for ; Sat, 27 Jan 2007 23:19:28 +0100 (CET) Received: from kotsbak (kotsbak [192.168.0.149]) by mail.logic-q.nl (Postfix) with SMTP id A5499116E3 for ; Sat, 27 Jan 2007 23:19:28 +0100 (CET) From: "Hansa" To: "freebsd geom" Date: Sat, 27 Jan 2007 23:19:35 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Importance: Normal Cc: Subject: gmirror slices? 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: Sat, 27 Jan 2007 23:03:46 -0000 Currently ad4 contains 3 slices: ad4s1 swap, / and /var ad4s2 /usr ad4s3 /home I wan't to mirror ad4s1 and ad4s2. I want to stripe ad4s3. Below is my current slice setup. Offset Size(ST) End Name PType Desc Subtype Flags 0 63 62 - 12 unused 0 63 12578832 12578894 ad4s1 8 freebsd 165 12578895 147814065 160392959 ad4s2 8 freebsd 165 160392960 425706435 586099394 ad4s3 8 freebsd 165 586099395 15309 586114703 - 12 unused 0 Before I continue setting up the mirror I want to make sure I've setup my slices correctly. Reading the gmirror man page it states that the gmirror utility uses on-disk metadata (stored in the provider's last sector) to store all needed information. Since I'm no expert in understanding disk structures I'm not sure what the above means. In my case I think I should create the folowing slice setup: ad4s1 must end at 12578893 instead of 12578894. The next slice should begin at 12578895 and end at 160392958 creating the space to store metadata. Can someone please confirm?