From owner-freebsd-questions@FreeBSD.ORG Fri Oct 3 20:08:31 2003 Return-Path: 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 0E27A16A4B3 for ; Fri, 3 Oct 2003 20:08:31 -0700 (PDT) Received: from zim.0x7e.net (zim.0x7e.net [203.38.184.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2395943FE5 for ; Fri, 3 Oct 2003 20:08:30 -0700 (PDT) (envelope-from listone@deathbeforedecaf.net) Received: from goo.0x7e.net ([203.38.184.164] helo=goo) by zim.0x7e.net with smtp (Exim 3.36 #1) id 1A5cmC-000B1Q-00; Sat, 04 Oct 2003 12:38:12 +0930 Message-ID: <008501c38a24$df7999d0$a4b826cb@goo> From: "Rob" To: "Redmond Militante" , "Robert Huff" References: <20031003140043.GB80565@darkpossum><16253.38542.950331.910140@jerusalem.litteratus.org> <20031003161333.GA894@darkpossum> Date: Sat, 4 Oct 2003 12:39:05 +0930 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 cc: freebsd-questions@freebsd.org Subject: Re: var partition is too small X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2003 03:08:31 -0000 [ sorry about not quoting - braindead mail client ] Moving a filesystem on a live server is *never* a risk-free activity. If you intend to do this, use tar(1) or dump(8) instead of cp(1) - they will deal with special files and other unusual conditions. But if you haven't done this often enough to be confident, I wouldn't start with a production server. Look at the -a option to newsyslog(8) - this allows you to put archived files in a different directory to the live ones. For example, I've modified /etc/crontab so that the newsyslog line reads 0 * * * * root newsyslog -a archives This means that all the archived logs will end up in /var/log/archives. If you create this directory as a symlink to a larger filesystem, then /var only has to hold the current logs. (Do this before changing the crontab, otherwise newsyslog will create the directory for you.)