{"action":"created","issue":{"url":"https://api.github.com/repos/trapexit/mergerfs/issues/253","repository_url":"https://api.github.com/repos/trapexit/mergerfs","labels_url":"https://api.github.com/repos/trapexit/mergerfs/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/trapexit/mergerfs/issues/253/comments","events_url":"https://api.github.com/repos/trapexit/mergerfs/issues/253/events","html_url":"https://github.com/trapexit/mergerfs/issues/253","id":139656741,"number":253,"title":"File copy errors","user":{"login":"phatdawg","id":8282772,"avatar_url":"https://avatars.githubusercontent.com/u/8282772?v=3","gravatar_id":"","url":"https://api.github.com/users/phatdawg","html_url":"https://github.com/phatdawg","followers_url":"https://api.github.com/users/phatdawg/followers","following_url":"https://api.github.com/users/phatdawg/following{/other_user}","gists_url":"https://api.github.com/users/phatdawg/gists{/gist_id}","starred_url":"https://api.github.com/users/phatdawg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phatdawg/subscriptions","organizations_url":"https://api.github.com/users/phatdawg/orgs","repos_url":"https://api.github.com/users/phatdawg/repos","events_url":"https://api.github.com/users/phatdawg/events{/privacy}","received_events_url":"https://api.github.com/users/phatdawg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-09T18:10:23Z","updated_at":"2016-03-09T22:06:55Z","closed_at":null,"body":"I am having some difficulties, I have set up a VM with 5 20GB drives and a boot drive. I have followed the instructions on how to set up Snapraid, then the Mergerfs setup. The pool is set up correctly and I can see it over my Samba share.\r\n\r\nMy fstab\r\n/mnt/data/* /mnt/pool fuse.mergerfs category.create=eplfs,defaults,allow_other,minfreespace=1G,fsname=mergerfsPool 0 00\r\n\r\ndf -h\r\nFilesystem Size Used Avail Use% Mounted on\r\nudev 986M 0 986M 0% /dev\r\ntmpfs 201M 5.2M 195M 3% /run\r\n/dev/sda1 7.8G 2.3G 5.1G 32% /\r\ntmpfs 1001M 0 1001M 0% /dev/shm\r\ntmpfs 5.0M 0 5.0M 0% /run/lock\r\ntmpfs 1001M 0 1001M 0% /sys/fs/cgroup\r\nmergerfsPool 80G 33G 43G 44% /mnt/pool\r\n/dev/sdc1 20G 18G 902M 96% /mnt/data/disk2\r\n/dev/sdb1 20G 46M 19G 1% /mnt/data/disk1\r\n/dev/sdd1 20G 15G 4.4G 78% /mnt/data/disk3\r\n/dev/sdf1 20G 18G 1.9G 91% /mnt/parity/disk5\r\n/dev/sde1 20G 44M 19G 1% /mnt/data/disk4\r\ntmpfs 201M 0 201M 0% /run/user/1000\r\n\r\nfiles copy fine to the Samba share, but when the drive is running low on space it will fill up to 100% then stop. about 30sec later Windows will give a error trying to copy file message and ask to retry, If I hit Retry it will then tell me that the file exists and do I want to overwrite. when I select overwrite the file will try to copy again, I then notice that the file on the server has moved to the drive with the correct amout of free space and completes successfully.\r\n\r\nI would assume that it would check to see if the free space exists before it started copying the file, But it appears that it does not.\r\n\r\nI have also tried to copy direct from the CLI, it looks like the same thing happens where it will fill up the drive to 100% but the file will then move to the correct drive with the free space necessary.\r\n\r\nI have set the xattr user.mergerfs.moveonenospc true ./.mergerfs,  If this is set to false, windows will fail the copy saying there is not enough free space, when i hit retry if will try to copy to the same drive again and fail. this will repeat over and over."},"comment":{"url":"https://api.github.com/repos/trapexit/mergerfs/issues/comments/194530861","html_url":"https://github.com/trapexit/mergerfs/issues/253#issuecomment-194530861","issue_url":"https://api.github.com/repos/trapexit/mergerfs/issues/253","id":194530861,"user":{"login":"phatdawg","id":8282772,"avatar_url":"https://avatars.githubusercontent.com/u/8282772?v=3","gravatar_id":"","url":"https://api.github.com/users/phatdawg","html_url":"https://github.com/phatdawg","followers_url":"https://api.github.com/users/phatdawg/followers","following_url":"https://api.github.com/users/phatdawg/following{/other_user}","gists_url":"https://api.github.com/users/phatdawg/gists{/gist_id}","starred_url":"https://api.github.com/users/phatdawg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phatdawg/subscriptions","organizations_url":"https://api.github.com/users/phatdawg/orgs","repos_url":"https://api.github.com/users/phatdawg/repos","events_url":"https://api.github.com/users/phatdawg/events{/privacy}","received_events_url":"https://api.github.com/users/phatdawg/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T22:06:55Z","updated_at":"2016-03-09T22:06:55Z","body":"I have a feeling that Windows is not giving mergerfs enough time to move the file to a drive with the correct amount of space.  \r\n\r\nbasically i am copying a 6gb file from my desktop to a shared samba directory in the pool.  Then renaming the file on my desktop and copying the same file again to the shared samba directory. I do this just as a test to fill the drive to see what happens when a drive gets filled.  I am doing this on a test server that i set up in a VM to see if Mergerfs will work for me.  \r\n\r\nI guess that because eplfs finds that there is more that the 1GB minfreespace (4gb free) it will always try and copy the 6GB file to that drive first.\r\n\r\nI have tried without Samba and it does work as expected. I monitor the free drive space, I see the drive fill up then I see another drive start to fill and the first drive releases the space that was taken up by the transfer.\r\n\r\nIs there other information that i can give you as to my setup?  If this is a limitation i can understand."}}