Date: Fri, 14 Jan 2011 09:24:08 -0000 From: "Pegasus Mc Cleaft" <ken@mthelicon.com> To: <perryh@pluto.rain.com>, <xaero@xaerolimit.net> Cc: swegill@gmail.com, freebsd-questions@freebsd.org Subject: RE: httpd-modsec2_debug.log: Operation not permitted Message-ID: <002601cbb3cc$cce32690$66a973b0$@com> In-Reply-To: <4d30101e.UerCiI6ZYMfbsVlm%perryh@pluto.rain.com> References: <AANLkTimk-EXkEKQ80QVBg5utpbt3SU1LK_eAvSfk6Skt@mail.gmail.com> <000301cbb307$49788810$dc699830$@com> <AANLkTik%2Bsb96kA=R8Bv5uSSc7ZeC-JSDYJb9%2BQhQ=oE5@mail.gmail.com> <AANLkTin4-BwqtaxC1Qy0dABKOGj4Y5XyjM7SiDmSSkeT@mail.gmail.com> <AANLkTi=qMBswOhgJH5=uucHcXH7LwrtwZHSz_pTdJF7O@mail.gmail.com> <AANLkTi=ume7fwpV91VuzCMkv5krVhdAdGjO6Wb%2B6AJL3@mail.gmail.com> <AANLkTimkY0mNB%2BDyX0kd_7KxfoPy2ccUTAH361LLQoBa@mail.gmail.com> <AANLkTi=jWTWY-tjrOV8GEZyPWGL6iPEQpvckBnMKwBPx@mail.gmail.com> <4d30101e.UerCiI6ZYMfbsVlm%perryh@pluto.rain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>> ... 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002601cbb3cc$cce32690$66a973b0$>