From owner-freebsd-questions@FreeBSD.ORG Sat Jun 11 14:08:45 2005 Return-Path: X-Original-To: questions@freebsd.org 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 4B0F216A41F for ; Sat, 11 Jun 2005 14:08:45 +0000 (GMT) (envelope-from david+dated+1118930923.31ff0f@skytracker.ca) Received: from 3s1.com (3s1.com [209.161.205.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8D4543D1F for ; Sat, 11 Jun 2005 14:08:44 +0000 (GMT) (envelope-from david+dated+1118930923.31ff0f@skytracker.ca) Received: from 3s1.com (localhost [127.0.0.1]) by 3s1.com (8.12.8p1/8.12.8) with ESMTP id j5BE8h39074591 for ; Sat, 11 Jun 2005 10:08:43 -0400 (EDT) (envelope-from david+dated+1118930923.31ff0f@skytracker.ca) Received: (from david@localhost) by 3s1.com (8.12.8p1/8.12.8/Submit) id j5BE8h08074590 for questions@freebsd.org; Sat, 11 Jun 2005 10:08:43 -0400 (EDT) (envelope-from david+dated+1118930923.31ff0f@skytracker.ca) X-Authentication-Warning: 3s1.com: david set sender to david+dated+1118930923.31ff0f@skytracker.ca using -f Received: by 3s1.com (tmda-sendmail, from uid 1000); Sat, 11 Jun 2005 10:08:42 -0400 (EDT) Date: Sat, 11 Jun 2005 10:08:42 -0400 To: ptitoliv , questions@freebsd.org Message-ID: <20050611140842.GA71820@skytracker.ca> References: <42AAEA6B.9030602@frenchsuballiance.cjb.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42AAEA6B.9030602@frenchsuballiance.cjb.net> User-Agent: Mutt/1.4.2.1i X-Delivery-Agent: TMDA/1.0.2 (Bold Forbes) From: David Banning Cc: Subject: Re: Resizing /var 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: Sat, 11 Jun 2005 14:08:45 -0000 On Sat, Jun 11, 2005 at 03:43:07PM +0200, ptitoliv wrote: > Hello everybody, > > I have a big problem on a FreeBSD 5.3 Box. It is an hosted server > installed by an hosting service. But I didn't know what they smoke when > they have installed the system but they sized the /var filesystem only > to 200 MB which is not sufficient for my needs. > > I used an emergency solution which was to transfer some datas on /usr > like databases but I am afraid that the problem will come back. So I am > asking here if there is any solution to transfer free space from ./usr > to /var. > > But there are some constraints : > > - I have no free unpartitioned space available > - I can't format any partition because and I can't loose datas I ran into the same problem. I just symlinked to /usr for the following directories; lrwxr-xr-x 1 root wheel 11 Feb 10 00:05 db -> /usr/var/db lrwxrwxr-x 1 root mail 9 Nov 24 2003 mail -> /usr/mail lrwxr-xr-x 1 root wheel 11 Aug 26 2003 spool -> /usr/spool/ I don't know what risks I am running here, but I have been running this way for years - when I purchase a new drive I will creat a larger /var and copy all from the old drive. Considering how cheap drives are, that may be your easiest solution.