5

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?

knorrhane
  • 113
  • 1
  • 2
  • 10

1 Answers1

2

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".

user9517
  • 115,471
  • 20
  • 215
  • 297
knorrhane
  • 113
  • 1
  • 2
  • 10
  • 1
    `chmod 777`: nonononono! Never ever run `chmod 777`. It is practically never required! Not even for "testing purposes". If the file is readable, then it's readable. If it's writable by the `user` or `group` that need to write to it, then it's writable. There is absolutely zero need to give everyone write permissions, and forgetting to `chmod` it back to something sane is exactly how multinationals get hacked. Just don't do it. Ever. I wrote [an introduction of Unix permissions](http://stackoverflow.com/a/35895436/660921). Please read it! – Martin Tournoij Mar 13 '16 at 06:01