From owner-freebsd-questions Thu Mar 6 23: 6:57 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05EA737B401 for ; Thu, 6 Mar 2003 23:06:56 -0800 (PST) Received: from svmarshal.bytecraft.au.com (svmarshal.bytecraft.au.com [203.39.118.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FBEA43FBD for ; Thu, 6 Mar 2003 23:06:54 -0800 (PST) (envelope-from murraytaylor@bytecraftsystems.com) Received: from wombat.bytecraft.au.com (Not Verified[203.39.118.3]) by svmarshal.bytecraft.au.com with MailMarshal (v5,0,3,78) id ; Fri, 07 Mar 2003 18:07:54 +1100 Received: from mjtdev1.dand06.au.bytecraft.au.com (unknown [10.0.17.42]) by wombat.bytecraft.au.com (Postfix) with ESMTP id 0AF303E37; Fri, 7 Mar 2003 18:06:51 +1100 (EST) From: Murray Taylor Organization: Bytecraft Systems To: "Matthew Emmerton" , "Murray Taylor" , Subject: Re: Growing / shrinking a file system Date: Fri, 7 Mar 2003 18:06:50 +1100 User-Agent: KMail/1.5 Cc: References: <200303071654.41171.murraytaylor@bytecraftsystems.com> <026001c2e46f$28529a00$1200a8c0@gsicomp.on.ca> In-Reply-To: <026001c2e46f$28529a00$1200a8c0@gsicomp.on.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200303071806.50511.murraytaylor@bytecraftsystems.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks for the answers Matt -- even though they weren't the ones i was hoping for.... On Fri, 7 Mar 2003 17:02, Matthew Emmerton wrote: > I've found growfs and looked at tunefs--- is there a utility to shrink a > partition so that I can give the space to another one No. > operator@redback(/sbin)ttyp1 > df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/ad0s1a 97M 41M 48M 46% / > /dev/ad0s1f 17G 1.8G 14G 11% /usr > /dev/ad0s1e 19M 7.9M 9.9M 44% /var > procfs 4.0K 4.0K 0B 100% /proc > > This is the current disk stats ... NB this disk was setup using auto sizing > from the install CD (poss miscalculation??) Auto-sizing is not perfect for everyone, especially people running large mail servers or database servers which require lots of space in /var. > We need to reallocate space from ad0s1f and give it to ad0s1e > preferably with out rebuilding the machine. > > I am thinking of paxing /var to /usr/var, then unmounting /var > and symlinking /usr/var to /var as an interim step What is your main consumer of space in /var? One trick I've often done is create a /usr/var2 directory, move stuff from /var into /usr/var2 (such as /var/log and /var/mail) and then symlink the directories from /var over to /usr/var2. > But I would like them to remain on separate better sized slices Then your only choice is to backup, re-splice and restore. -- Matt Emmerton ************************************************************************ This Email has been scanned for Viruses by MailMarshal. ************************************************************************ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message