From owner-freebsd-stable@FreeBSD.ORG Fri Jun 30 13:15:38 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C678616A664 for ; Fri, 30 Jun 2006 13:15:38 +0000 (UTC) (envelope-from joao.barros@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2C8343DA2 for ; Fri, 30 Jun 2006 12:50:05 +0000 (GMT) (envelope-from joao.barros@gmail.com) Received: by py-out-1112.google.com with SMTP id b36so630533pyb for ; Fri, 30 Jun 2006 05:50:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ete8H2ABh/SWaLR+V1hNYFJZxuYfMd7gr2vmHidU5XvNHJnVKsTTffY4fU26lFMKTXiXYSYPuE/WW8n19O/8yj+cakAkW5ahXNHad/OaV8LS118FzmTTqt4D/4WTedTsT4MfLxspHdYvrE8ecKqIwoZEbK9XN/gzg9T3daknS7I= Received: by 10.35.84.16 with SMTP id m16mr471749pyl; Fri, 30 Jun 2006 05:50:05 -0700 (PDT) Received: by 10.35.117.14 with HTTP; Fri, 30 Jun 2006 05:50:04 -0700 (PDT) Message-ID: <70e8236f0606300550j51b553b6y7bf5ba0b63be6025@mail.gmail.com> Date: Fri, 30 Jun 2006 13:50:04 +0100 From: "Joao Barros" To: "Morten A. Middelthon" In-Reply-To: <20060630063843.GA54234@freenix.no> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060630063843.GA54234@freenix.no> Cc: stable@freebsd.org, questions@freebsd.org Subject: Re: Adjusting partition size with disklabel X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 13:15:39 -0000 On 6/30/06, Morten A. Middelthon wrote: > Hi, > > long story short, I have a partition on a RAID5 array which after an accident > where I had to rebuild the array became smaller than it originally was. Here's > the original size: > > amrd1: 1430505MB (2929674240 sectors) RAID 5 (degraded) > > and the new size after the rebuild: > > amrd1: 1430400MB (2929459200 sectors) RAID 5 (optimal) > > Is it possible to use 'bsdlabel -e' to shrink the partition down to a size > which will fit the new size of the array? > To my knowledge, you can only growfs(8) them, not shrink them. References: http://www.freebsd.org/cgi/man.cgi?query=growfs&apropos=0&sektion=0&manpath=FreeBSD+6.1-RELEASE&format=html -- Joao Barros