I'm running native ZFS on Ubuntu 11.10 with 2x2 TB drives in a mirrored setup. The ZFS file system is mounted directly in Ubuntu and not through NFS or something like that, the permissions are set too 777.

My problem is that when I delete a file it would disappear as you'd expect but when I type zfs list it's still reporting used space as if the file was still there. I've wait a couple of hours and I'm currently running a scrub to see if that fixes it but that shouldn't be necessary, should it?

link|improve this question
Got any snaps in place? – Chopper3 Nov 16 '11 at 13:16
Yeah, serverfault.com/questions/160912/… seems to cover it. – David Bullock Nov 16 '11 at 14:03
No, I don't have any snapshots or compression on that particular dataset but I've found the solution so I'll answer my own question. Thank you for your help though! – Henric Nov 16 '11 at 15:26
feedback

1 Answer

up vote 2 down vote accepted

The answer is pretty ridiculous I guess; it turned out that Ubuntu moved the files to .Trash1000 but wouldn't allow the Recycle Bin to empty the .trash-folders on my ZFS datasets. I'm guessing this is a permissions issue or something since my ZFS datasets are mounted with root and then I ran chmod 777 on all of them to allow for my user to use them.

Anyways, deleting the .Trash1000 folder fixed the "problem".

link|improve this answer
Please accept this answer when you are able – Iain Nov 17 '11 at 9:44
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.