From owner-freebsd-questions@FreeBSD.ORG Sat Jun 11 14:13:44 2005 Return-Path: X-Original-To: freebsd-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 B8F4F16A41C for ; Sat, 11 Jun 2005 14:13:44 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41F5343D53 for ; Sat, 11 Jun 2005 14:13:44 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.157.226]) by ezekiel.daleco.biz (8.13.1/8.13.1) with ESMTP id j5BEDfhr076089; Sat, 11 Jun 2005 09:13:42 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <42AAF172.3030908@daleco.biz> Date: Sat, 11 Jun 2005 09:13:06 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050607 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ptitoliv References: <42AAEA6B.9030602@frenchsuballiance.cjb.net> In-Reply-To: <42AAEA6B.9030602@frenchsuballiance.cjb.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org 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:13:44 -0000 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 > >Is there any solution with some BSD tools in order to solve this problem ? > >Thank you for your answers > >Best Regards, >Ptitoliv > > Not a "solution", per se, but I've been able to run servers a long time with symlinks from /var/foo to /usr/var/foo, and so on. /var/log is a particularly good candate IMO, but I see no reason that you couldn't try it with most any subfolder(s). The problem there is that it'd be best to do the symlinking when the box was in single-user, and I doubt you have console access in the situation you describe. In should be possible, depending on the box's application, to kill the daemon(s) using said folder, mv the data to /usr, create the symlink and restart the daemon(s), but it's maybe a little touchy, as I said, depending on what you're moving and how many customers it would affect, etc. HTH, Kevin Kinsey DaleCo, S.P.