From owner-freebsd-questions@FreeBSD.ORG Mon Mar 3 17:55:33 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 03FA0106566C for ; Mon, 3 Mar 2008 17:55:33 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 60CEC8FC17 for ; Mon, 3 Mar 2008 17:55:32 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m23HskVi018121; Mon, 3 Mar 2008 17:54:46 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.4.4 smtp.infracaninophile.co.uk m23HskVi018121 Authentication-Results: smtp.infracaninophile.co.uk; dkim=hardfail (SSP) header.i=unknown Message-ID: <47CC3B66.40902@infracaninophile.co.uk> Date: Mon, 03 Mar 2008 17:54:46 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.12 (X11/20080302) MIME-Version: 1.0 To: Jeffery Swan References: <20080303151000.4183D1F50B1@ws1-2.us4.outblaze.com> In-Reply-To: <20080303151000.4183D1F50B1@ws1-2.us4.outblaze.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Mon, 03 Mar 2008 17:54:46 +0000 (GMT) X-Virus-Scanned: ClamAV 0.92.1/6094/Mon Mar 3 16:15:09 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Expanding file system 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, 03 Mar 2008 17:55:33 -0000 Jeffery Swan wrote: > The problem is, df only reports back the original 905 Gig. It seems that > the RAID controller did migrate my data but left the additional space > "raw". What I need to know how to do now is extend my original partition > (slice) to include the newly added space without loosing data. You need to do three things in this order. i) update the disk partition table to match the new size of your composite drive. Essentially so long as your partition starts at the same place, you can move the partition end point to increase the size without massive breakage[*]. Use fdisk(8) to do this. ii) Update the partition table using bsdlabel(8). The same caveats apply about adding space at the end of a partition only. iii) Extend the UFS filesystem to fill up the newly available space. Use growfs(8) to do this. This is a job with a reasonably high risk of some mis-step destroying your data, so make very sure you have good backups before you begin. Cheers, Matthew [*] Ummm... assuming you're using the traditional partition / slice thing. If you're using gpt(8) then I'm not actually at all clear on how you would go about something like this. -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW