From owner-freebsd-geom@FreeBSD.ORG Sat Jan 27 23:03:45 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 1B71116A401 for ; Sat, 27 Jan 2007 23:03:45 +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 5D8F213C48A for ; Sat, 27 Jan 2007 23:03:44 +0000 (UTC) (envelope-from mythtv@logic-q.nl) Received: from mail.logic-q.nl ([89.98.181.67]) by amsfep14-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20070127223052.HATZ664.amsfep14-int.chello.nl@mail.logic-q.nl> for ; Sat, 27 Jan 2007 23:30:52 +0100 Received: from localhost (localhost.logic-q.nl [127.0.0.1]) by mail.logic-q.nl (Postfix) with ESMTP id 2347B115C5 for ; Sat, 27 Jan 2007 23:30:52 +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 X5ebWZMXG4gE for ; Sat, 27 Jan 2007 23:30:51 +0100 (CET) Received: from kotsbak (kotsbak [192.168.0.149]) by mail.logic-q.nl (Postfix) with SMTP id B3408114A6 for ; Sat, 27 Jan 2007 23:30:51 +0100 (CET) From: "Hansa" To: "freebsd geom" Date: Sat, 27 Jan 2007 23:30:58 +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: How to 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:45 -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?