Re: Unable to delete files on ZFS volume

From: Daniel O'Connor <doconnor_at_gsoft.com.au>
Date: Sun, 21 Jun 2009 11:27:37 +0930
On Sun, 21 Jun 2009, Scot Hetzel wrote:
> On Sat, Jun 20, 2009 at 12:36 PM, Mister 
Olli<mister.olli_at_googlemail.com> wrote:
> > Hi,
> >
> > after filling up a ZFS volume until the last byte, I'm unable to
> > delete files, with error 'No space left on the device'.
>
> I had this problem once, and was able to solve it by using:
>
> cat /dev/null > /path/to/file/to/remove
>
> This truncated the file to 0, and then I was able to remove it.

BTW there is the truncate utility - it would have the same effect but 
truncate is simpler to run via sudo ;)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Received on Sat Jun 20 2009 - 23:58:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:50 UTC