ports/154930: ZFS: cannot delete/unlink file from full volume -> ENOSPC
mandree at FreeBSD.org
Mon Feb 21 09:30:09 UTC 2011
>Synopsis: ZFS: cannot delete/unlink file from full volume -> ENOSPC
>Arrival-Date: Mon Feb 21 09:30:08 UTC 2011
>Originator: Matthias Andree
FreeBSD apollo.emma.line.org 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #61: Tue Feb 15 23:03:47 CET 2011 root at apollo.emma.line.org:/usr/obj/usr/src/sys/GENERIC amd64
On a 100% full ZFS volume, deleting files is not possible and results in ENOSPC (no space on device). I suppose this is due to the write-ahead logging nature.
Workaround: truncate files to be deleted to make room for the logs.
Suggestion: consider implicitly truncating a file to be deleted if there is not sufficient disk space to delete the file otherwise.
More information about the freebsd-ports-bugs