From owner-freebsd-questions@FreeBSD.ORG Thu Jul 9 22:52:51 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7E521065673 for ; Thu, 9 Jul 2009 22:52:51 +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 661A68FC16 for ; Thu, 9 Jul 2009 22:52:51 +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 1MP2Tw-0003rG-FR; Thu, 09 Jul 2009 23:52:50 +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 1MP2Tv-0000Yf-DU; Thu, 09 Jul 2009 23:52:47 +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 n69MqkJY092470; Thu, 9 Jul 2009 23:52:46 +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 n69MqkX1092469; Thu, 9 Jul 2009 23:52:46 +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: Thu, 9 Jul 2009 23:52:46 +0100 From: Anton Shterenlikht To: Tom Munro Glass Message-ID: <20090709225246.GA91508@mech-cluster238.men.bris.ac.uk> References: <200907101012.56788.gentoo@tmgcon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200907101012.56788.gentoo@tmgcon.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Score: -1.2 X-Spam-Level: - Cc: freebsd-questions@freebsd.org Subject: Re: How to add a slice and partition to a mirror X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2009 22:52:51 -0000 On Fri, Jul 10, 2009 at 10:12:56AM +1200, Tom Munro Glass wrote: > I have a FreeBSD 7.2 system that had two 37GB mirrored SCSI drives. These > contained a single slice filling the disk with separate partitions for swap, > /, /var, /usr and /home. > > Yesterday one of the drives had a catastrophic failure - no problem, the > system still worked on one drive as it is supposed to. I have purchased two > new 74GB drives because I need more space. > > With just the working 37GB drive connected, I ran: > > # gmirror forget gm0 > > Then I connected one of the new 74GB drives and ran: > > # gmirror insert gm0 /dev/da1 > > and the mirror rebuilt itself correctly, but of course only half of the new > drive is being used. > > I've now removed the 37GB drive and run "gmirror forget gm0" again and the > system is running on the new half used 74GB drive. > > How do I define a new slice and partition to fill the second half of this > drive? what is the output of "gpart gm0" ? -- 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