From owner-freebsd-questions@FreeBSD.ORG Sun Aug 26 17:11:01 2007 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 74D8716A41A for ; Sun, 26 Aug 2007 17:11:01 +0000 (UTC) (envelope-from uchu.1@gaiahost.coop) Received: from biodiesel.gaiahost.coop (biodiesel.gaiahost.coop [64.95.78.120]) by mx1.freebsd.org (Postfix) with ESMTP id 55DCD13C465 for ; Sun, 26 Aug 2007 17:11:01 +0000 (UTC) (envelope-from uchu.1@gaiahost.coop) Received: from uchu.local (host-64-65-195-19.spr.choiceone.net [::ffff:64.65.195.19]) (AUTH: CRAM-MD5 uchu@gaiaweavers.org, SSL: TLSv1/SSLv3, 256bits, AES256-SHA) by biodiesel.gaiahost.coop with esmtp; Sun, 26 Aug 2007 13:00:58 -0400 id 0063C097.46D1B1CA.00000E61 Message-ID: <46D1B1C9.7060606@gaiahost.coop> Date: Sun, 26 Aug 2007 13:00:57 -0400 From: Charles Uchu Strader User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Increase Disk Size in a gmirror RAID1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: uchu.1@gaiahost.coop List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Aug 2007 17:11:01 -0000 Hello. This is my first post onto the list, so please correct me if this is not the correct place. The situation is I currently have a machine running gmirror RAID1 on two 36GB disks. That's all fine and dandy, except that those disks are running out of space (temporarily alleviated through an NFS mount to another machine). What I'd really like to do is upsize the disks on that machine so that it ended with two 73GB disks. The machine only has two drive bays. Does anyone have ideas on how to do this, with minimal downtime and ease? Here's the existing partition scheme for disk da0, which is part of the gm0 mirror: Part Mount Size Newfs Part da0sa1 / 512MB UFS2 Y da0s1b swap 4096MB SWAP da0s1d /var 4787MB UFS2+S Y da0s1e /tmp 512MB UFS2+S Y da0s1f /usr 6144MB UFS2+S Y da0s1g /web 18675MB UFS2+S Y The goal would be a result that adds the new space into the /web partition, or creates a new /web2 partition if adding into the the existing partition is not possible. So something like (noting /web size is not exact below): Part Mount Size Newfs Part da0sa1 / 512MB UFS2 Y da0s1b swap 4096MB SWAP da0s1d /var 4787MB UFS2+S Y da0s1e /tmp 512MB UFS2+S Y da0s1f /usr 6144MB UFS2+S Y da0s1g /web 48675MB UFS2+S Y What I've done so far is to forget da1 from the gm0 mirror, restart, and put the 73GB into drive bay two. But now I'm at bit lost at the process to follow to achieve my desired result. I'm thinking something like fdisk, bsdlabel, newfs on the new da1 73GB drive. Then dd or dump/restore from da0/gm0 to da1. Then shutdown, remove the 36GB da0, put in the second 73GB drive, boot and them get gmirror to sync things from the 73GB drive. I need assistance on how to issue those commands properly to achieve this result. I have a test machine I can do this on, so I will continue to learn/play in the meantime. Thanks, Charles Uchu