From owner-freebsd-questions@FreeBSD.ORG Fri Jul 10 05:59:31 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 17BE610656C8 for ; Fri, 10 Jul 2009 05:59:31 +0000 (UTC) (envelope-from gentoo@tmgcon.com) Received: from tmgcon.com (tmgcon.com [204.202.11.250]) by mx1.freebsd.org (Postfix) with ESMTP id 030178FC0C for ; Fri, 10 Jul 2009 05:59:30 +0000 (UTC) (envelope-from gentoo@tmgcon.com) Received: from kea.localnet (60-234-243-205.bitstream.orcon.net.nz [60.234.243.205]) (authenticated bits=0) by tmgcon.com (8.13.6.20060614/8.13.6) with ESMTP id n6A5wlNW082096; Fri, 10 Jul 2009 17:58:48 +1200 (NZST) From: Tom Munro Glass To: Anton Shterenlikht Date: Fri, 10 Jul 2009 17:58:45 +1200 User-Agent: KMail/1.11.4 (Linux/2.6.29-gentoo-r5; KDE/4.2.4; i686; ; ) References: <200907101012.56788.gentoo@tmgcon.com> <20090709225246.GA91508@mech-cluster238.men.bris.ac.uk> In-Reply-To: <20090709225246.GA91508@mech-cluster238.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907101758.46002.gentoo@tmgcon.com> 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: Fri, 10 Jul 2009 05:59:31 -0000 On Fri, 10 Jul 2009 10:52:46 Anton Shterenlikht wrote: > 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" ? Did you mean "gpart list gm0"? This gives: gpart: No such geom: gm0 I'm not sure that gpart is supported by the GENERIC kernel - should I have the GEOM_PART_MBR option set, it isn't currently. Regards Tom