From owner-freebsd-isp Mon Sep 24 21:54:35 2001 Delivered-To: freebsd-isp@freebsd.org Received: from wari.semo.net (216-41-128-73.semo.net [216.41.128.73]) by hub.freebsd.org (Postfix) with SMTP id CF24C37B435 for ; Mon, 24 Sep 2001 21:54:32 -0700 (PDT) Received: (qmail 4815 invoked from network); 25 Sep 2001 04:54:06 -0000 Received: from mail.sheltonbbs.com (206.196.109.2) by 216-41-128-73.semo.net with SMTP; 25 Sep 2001 04:54:06 -0000 Received: (qmail 21031 invoked from network); 25 Sep 2001 04:58:36 -0000 Received: from unknown (HELO 216-41-137-20.semo.net) (216.41.137.20) by mail.sheltonbbs.com with SMTP; 25 Sep 2001 04:58:36 -0000 Date: Mon, 24 Sep 2001 23:54:04 -0500 (CDT) From: Butch Evans X-Sender: root@216-41-137-20.semo.net To: Freebsd-ISP Subject: couple of questions Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org First of all, I want to add another disk to my server. I will use this disk exclusively for log files. As you know, the logs can grow quite large, so I wonder about the block size. Is it better to use a larger than 8192 block size? Pros and cons would be helpful. Next, I will be moving my existing logfiles to this disk. Is something like the following a good plan (new disk will be mounted as /var/logs): mv -R /var/log/* /var/logs mv /var/log /var/log.old ln -sf /var/logs /var/log Is there a better method? I don't mind losing a few lines of log entries during the move, I am just concerned about unknown side effects. On a side note...does anyone have a script to clean the entries in an apache log of the junk requests from the Code Red and Nimda worm? This is something I will be using in my daily maint script until the storm starts to pass. I am more familiar with perl than awk or sed (or other scripting languages), so please send in that language, if possible. TIA -- Butch Evans http://www.ChristInVerse.com/ http://www.HeIsComingSoon.com/ (in the works) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message