httpd-modsec2_debug.log: Operation not permitted

Pegasus Mc Cleaft ken at mthelicon.com
Fri Jan 14 09:24:09 UTC 2011


>> ... 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



More information about the freebsd-questions mailing list