Jump to content

File Sync isn't occuring from unraid desk unless "ls -l" on Virtual Machine VirtioFs


Recommended Posts

Hi everyone,

 

I set up a little test scenario below that illustrates the symptoms of what I am experiencing,

 

So I have the following criteria

  • Virtiofs Mode for "/mnt/user/Backup/Logs/" => "logs"
  • fstab entry of "logs /mnt/logs virtiofs ro,relatime,sync 0 0"
  • Full rwe on the test file

 

I executed the commands back and forth from left to right.

  1. root "ls -l" to display the current directory on unraid os
  2. alexander "ls -l" to display current directory on the virtual machine
  3. root "cat testfile" to display the content of the file on unraid
  4. alexander "cat testfile" to display the content of the file on the virtual machine
  5. root "sudo nano testfile" and append a string in nano
  6. root "cat testfile" to display the new content after nano modify
  7. alexander "cat testfile" still has the old content of the file
  8. alexander "ls -l" which relists the directory and refreshes some cache
  9. alexander "cat testfile" now has the new content from unraid drive.

 

image.thumb.png.fdbcaa77fc153ebcd50a2870377938f8.png

 

I have tried this routine numerous times and it seems to always to have the old file until I do "ls -l" or some background process that I am not aware of refreshes the file. So far the only thing that will for sure refresh the file is "ls -l", I could consistently "cat testfile" for 10+ runs and it won't change until a "ls -l" was ran, then it changed instantly.

 

One of the things that I thought might be an issue was if the share was on a cache pool, but upon checking it is disabled for my "Backup" share.

image.thumb.png.26315a8fc3de8f76a2d013f06e293be4.png

 

Any help would be greatly appreciated!! Thank you!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...