I recently switched my disk pool to mergerfs. Now I realized that the recycle bin stopped working on my smb shares.
SW-Status:
openmediavault/stoneburner uptodate 2.1.20
openmediavault-unionfilesystems/stoneburner uptodate 2.3
What I did to reproduce:
- Create shared folder on mergerfs pool
- Give permissions to a user through a group
- Create samba share on this shared folder.
- Enable recycle bin
- Enable inherited permissions
- Log in using smb from Windows 7 client
- Create a file on the share
- Delete the file
Expected behavior: File moved to share/.recycle/username/file.xyz
Actual behavior: share/.recycle/username is created, but stays empty.
Why I think this has sth. to do with mergerfs? When I create an analog share directly on a disk and not on the pool, the file is correctly moved to the recycle bin as expected. To give all the details: The disk on which I created the direct share is still part of the pool. However, I am not very experienced with OMV so I do not rule out a general misconfiguration.
Second non-deterministic deletion issue:
While analyzing the issue above I sometimes I had the issue with files not being deleted at all. I observed this the last time even on the not-pool share. The deleted file disappeared on the client side while it was actually never deleted on the server. If you refresh the client's view the file is still present. I then restarted the smb daemon and out of a sudden the file was moved to the .recycle bin. I was not able to reproduce this scenario deterministically.