From owner-freebsd-questions@FreeBSD.ORG Thu Jul 2 17:54:09 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 B9B9D106564A for ; Thu, 2 Jul 2009 17:54:09 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [83.235.67.32]) by mx1.freebsd.org (Postfix) with ESMTP id 27A1B8FC08 for ; Thu, 2 Jul 2009 17:54:08 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from atomic.dyndns.org (athedsl-4493768.home.otenet.gr [94.71.93.208]) by rosebud.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id n62Hs6H3027946; Thu, 2 Jul 2009 20:54:06 +0300 Message-ID: <4A4CF43E.1080706@otenet.gr> Date: Thu, 02 Jul 2009 20:54:06 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.21 (X11/20090414) MIME-Version: 1.0 To: pepe References: In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: replacing harddisks 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, 02 Jul 2009 17:54:10 -0000 pepe wrote: > I have gmirror of two 200GB disks where I have whole /usr f my freebsd 7.2 > system. root, /var and /boot are on other disk, but I need to replace those > both disks with bigger ones now. To get bigger /usr. So what I'm wondering > now is if there is way to take one disk out of mirror (geom) and add bigger. > So it would be one 200g and one 640g. If you add the 640G in the 200G mirror, it will be used as a 200G. > And after sync replace other 200g with > 640g so there would be two 640g disks. What I don't know is if mirror would > still be original 200g or can I get it working full 640g this way? Or do I > need to do it some harder way? Like adding both disks, creating mirror of > them, copy original mirror with dd to new one and then removing old disks? > > There are probably a couple of way to achieve this, but I would add the new disk as a standalone one, copy (rather dump) contents from the array to it, disconnect the older array, create a gmirror on the new disk, and finally connect the second new disk and resync. You don't need to add both new disks at the same time (you may not even have enough sata connectors) and you don't even have to leave both of the original mirror disks connected while copying the data. It will still work the same if the original array is degraded.