Unable to delete files on ZFS volume

Daniel O'Connor doconnor at gsoft.com.au
Sun Jun 21 01:58:13 UTC 2009


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20090621/87ff3142/attachment.pgp


More information about the freebsd-current mailing list