From owner-freebsd-questions@FreeBSD.ORG Fri Jan 14 09:24:08 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF4631065670 for ; Fri, 14 Jan 2011 09:24:08 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id B59858FC1E for ; Fri, 14 Jan 2011 09:24:08 +0000 (UTC) Received: from PortaPegIII (hydra.fletchermoorland.co.uk [78.33.209.59]) (authenticated bits=0) by hercules.mthelicon.com (8.14.3/8.14.3) with ESMTP id p0E9O4n2014001; Fri, 14 Jan 2011 09:24:05 GMT (envelope-from ken@mthelicon.com) From: "Pegasus Mc Cleaft" To: , References: <000301cbb307$49788810$dc699830$@com> <4d30101e.UerCiI6ZYMfbsVlm%perryh@pluto.rain.com> In-Reply-To: <4d30101e.UerCiI6ZYMfbsVlm%perryh@pluto.rain.com> Date: Fri, 14 Jan 2011 09:24:08 -0000 Message-ID: <002601cbb3cc$cce32690$66a973b0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acuzya/VmJPh3QEyT3itTY45hqdjCAAArC9g Content-Language: en-gb X-Spam-Status: No, score=0.9 required=15.0 tests=BAYES_00,DOS_OUTLOOK_TO_MX, FSL_HELO_NON_FQDN_1 autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hercules.mthelicon.com Cc: swegill@gmail.com, freebsd-questions@freebsd.org Subject: RE: httpd-modsec2_debug.log: Operation not permitted 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: Fri, 14 Jan 2011 09:24:09 -0000 >> ... I believe rm (-f) still requires *SOME* free space on a device >> to delete something. That being said, do you have more then 50G >> free elsewhere on the system? Say /home (/usr/home)? If you do, mv >> the file from /var/log to /usr/home. This would effectively delete >> it from /var/log and free up it's space ... > >Er, had you considered that mv, when the target and source are on >different filesystems, does a cp followed by an rm? If rm requires >free space -- which I very much doubt on UFS unless a snapshot >exists -- the rm step of the mv is going to run into exactly the >same problem that the standalone rm runs into. If this is the case, what about just using truncate to set the file size to zero? truncate -s 0K httpd-modsec2_debug.log Or cat /dev/null > httpd-modsec2_debug.log Best regards, Peg