From owner-freebsd-questions@FreeBSD.ORG Mon Jun 9 16:08:36 2008 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 4144D106566C for ; Mon, 9 Jun 2008 16:08:36 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from a.cs.okstate.edu (a.cs.okstate.edu [139.78.113.1]) by mx1.freebsd.org (Postfix) with ESMTP id 2639C8FC1A for ; Mon, 9 Jun 2008 16:08:35 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from [127.0.0.1] (localhost [127.0.0.1]) by a.cs.okstate.edu (Postfix) with ESMTP id D5180154C2E; Mon, 9 Jun 2008 11:08:34 -0500 (CDT) Message-ID: <484D5581.9080608@cs.okstate.edu> Date: Mon, 09 Jun 2008 11:08:33 -0500 From: Reid Linnemann User-Agent: Thunderbird 2.0.0.6 (X11/20070926) MIME-Version: 1.0 To: "B. Cook" References: <228F7E24-AFA2-4BD6-91B6-D610380C789A@poughkeepsieschools.org> In-Reply-To: <228F7E24-AFA2-4BD6-91B6-D610380C789A@poughkeepsieschools.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: gmirror and resizing partitions.. 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: Mon, 09 Jun 2008 16:08:36 -0000 Written by B. Cook on 06/09/08 10:23>> > Hello all, > > I have a FreeBSD 7 machine that I am running gmirror on (ad4 and ad6). > > there is an /exports and /home that need to be resized. > > (right now they each are about 55G and /home needed to have been 100G > and exports 10G) > > what do I need to do to fix this. > > I am assuming break the mirror, fdisk the /exports and /home then remake > them, and then rebuild the mirror.. > > right? > > What do I need to do with as little impact on the running server as > possible.. as many services are already configured on this box and it's > running :P > > (of course.. ) > > Thanks in advance, > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" What I would do is break the mirror, then resize the partitions and newfs them on one disk. Then dump|restore the data from the other disk to your new partitions, and recreate the mirror with the newly resized disk and insert the other disk into that mirror. That disk should then rebuild with the new partitioning. Of course, you can only do this while the mirror is unused. So you're going to have to have some degree of downtime on those filesystems. You can minimize the downtime by killing the mirror and remounting the filesystems direct from one disk while you work on repartitioning the other. You may want to mount read-only, however, as the dump|restore may take a significant amount of time and you wouldn't want to lose any data that may be written to the other disk while you're busy copying from it. When you've built the new mirror with the repartitioned disk and dump|restored to it (don't forget the -L option on dump), remount the partitions from the new mirror and then insert the second disk. That's what I'd do, anyhow.