From owner-freebsd-current@FreeBSD.ORG Wed Jul 1 12:20:22 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 051531065672; Wed, 1 Jul 2009 12:20:22 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id B10FB8FC16; Wed, 1 Jul 2009 12:20:21 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from isis.bris.ac.uk ([137.222.10.63]) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1MLynR-0004kf-8p; Wed, 01 Jul 2009 13:20:20 +0100 Received: from mech-cluster238.men.bris.ac.uk ([137.222.187.238]) by isis.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1MLynQ-0007iz-Gc; Wed, 01 Jul 2009 13:20:16 +0100 Received: from mech-cluster238.men.bris.ac.uk (localhost.men.bris.ac.uk [127.0.0.1]) by mech-cluster238.men.bris.ac.uk (8.14.3/8.14.3) with ESMTP id n61CKF90063010; Wed, 1 Jul 2009 13:20:15 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster238.men.bris.ac.uk (8.14.3/8.14.3/Submit) id n61CKF5g063009; Wed, 1 Jul 2009 13:20:15 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster238.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Wed, 1 Jul 2009 13:20:15 +0100 From: Anton Shterenlikht To: "James R. Van Artsdalen" , freebsd-ia64@freebsd.org, freebsd-current@freebsd.org Message-ID: <20090701122015.GA62937@mech-cluster238.men.bris.ac.uk> References: <20090625110253.GA31443@mech-cluster238.men.bris.ac.uk> <10FCC74D-6D46-4112-AD89-BBB4C5933957@mac.com> <20090701105649.GA62596@mech-cluster238.men.bris.ac.uk> <4A4B4FFE.7010400@jrv.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A4B4FFE.7010400@jrv.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Score: -1.2 X-Spam-Level: - Cc: Marcel Moolenaar , Anton Shterenlikht Subject: Re: gmirror per partition. Was: Re: gmirror gm0 destroyed on shutdown; GPT corrupt X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2009 12:20:22 -0000 On Wed, Jul 01, 2009 at 07:01:02AM -0500, James R. Van Artsdalen wrote: > Anton Shterenlikht wrote: > > Like this? > > > > # gmirror label -vb round-robin root /dev/da0p2 > > gmirror: Can't store metadata on /dev/da0p2: Operation not permitted. > > # > > > > Is there a filesystem already mounted from da0p2? yes, da0 is the disk on which I installed the system. > Use gmirror label immediately after using gpart to create da0p2 then > always use /dev/mirror/root as the device after that, never da0p2, ie > > # gpart add -b 162 -s 1048576 -t freebsd-ufs ad0 wow! gpart is never mentioned in the handbook, neither in GEOM, nor in gvinum chapter. Is the handbook a bit out of date? > # gmirror label -vb round-robin root /dev/da0p2 > > # newfs /dev/mirror/root > > The examples from the gpart and gmirror man pages worked for me. are you using ia64? many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423