From owner-freebsd-geom@FreeBSD.ORG Sat Jan 27 23:02:10 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 DFFA116A400 for ; Sat, 27 Jan 2007 23:02:10 +0000 (UTC) (envelope-from mythtv@logic-q.nl) Received: from amsfep16-int.chello.nl (amsfep16-int.chello.nl [62.179.120.11]) by mx1.freebsd.org (Postfix) with ESMTP id 29D9813C487 for ; Sat, 27 Jan 2007 23:02:09 +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 <20070127222841.BDHR1787.amsfep15-int.chello.nl@mail.logic-q.nl> for ; Sat, 27 Jan 2007 23:28:41 +0100 Received: from localhost (localhost.logic-q.nl [127.0.0.1]) by mail.logic-q.nl (Postfix) with ESMTP id 164701172B for ; Fri, 26 Jan 2007 19:54:08 +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 X5QHROZ+0IYb for ; Fri, 26 Jan 2007 19:54:07 +0100 (CET) Received: from kotsbak (kotsbak [192.168.0.149]) by mail.logic-q.nl (Postfix) with SMTP id AAF5611651 for ; Fri, 26 Jan 2007 19:54:07 +0100 (CET) From: "No Mail" To: Date: Fri, 26 Jan 2007 19:54:11 +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 Subject: How do I 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:02:11 -0000 Currently ad4 contains 3 partitions: 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: my last partition on ad4s1 must end at 12578893 instead of 12578894. The next partition should begin at 12578895 and end at 160392958 creating the space to store metadata. Can someone please confirm?