megamorot

Detecting File Changes On Freenas Seems To Have Issues

Recommended Posts

Hi,

 

I have a FreeNAS 9.2.0 computer setup with a jail containing btsync.

I wanted to test that btsync detects any additions of files via Samba/CIFS so a possible sync is made as soon as possible to other units connected to the share via btsync. I deliberately changed the "folder_rescan_interval" to 36000 (10 hours) to ensure that it wasn't the rescan that triggered the new sync.

After this I added a file via my samba share, but the added file isn't syned on the other units :-(.

In the btsync faq it says:

"When a file is added to the shared folder, the changes start syncing immediately (due to system peculiarities, sync on Mac OS X 10.6 may be delayed up to 10 minutes)".

Can this limitation be the same on FreeNAS?

Any ideas?

Share this post


Link to post
Share on other sites

Hi megamorot,

 

Unfortunately FreeBSD version of BTSync cannot track immediate changes on file system due to OS peculiarities. So, sync folders on FreeBSD are updated only during every full rescan interval, in your case - every 10 hours.

Share this post


Link to post
Share on other sites

Hi RomanZ,

Thanks for your information. Is it possible to get some more technical information about what exactly are the issues with FreeBSD and the immediate track changes feature in BTSync?

Share this post


Link to post
Share on other sites

FreeBSD does not provide an option to get directory change notifications like other OSes do. Therefore, the only way for BTSync to detect changes is a folder rescan.

Share this post


Link to post
Share on other sites

Hi,

Any update on this issue? Is there a workaround? I am having the same issue with running Sync in a FreeBSD 12 Jail.
Info: Folders are mounted into the jail using nullfs, and the everything is stored on ZFS pools.

Share this post


Link to post
Share on other sites

restart Sync or wait for periodic rescan (each 10 minutes by default). Rescan can be configured - "folder_rescan_interval" in power user settings. 

Share this post


Link to post
Share on other sites

Is this also true for CentOS 6.9?  My server with kernel 2.6.32-696.30.1.el6.x86_64 isn't getting filesystem notifications.  The filesystem type is ext4.  I'm running Sync 2.5.13, installed via yum.

Share this post


Link to post
Share on other sites
4 hours ago, Gane O'dwyer said:

@sbhouchen In general OS notification on Linux based devices work not really good and for this reason you have to wait a folder rescan intervak to be completed. But you can edit the value of the OS notifications as described here ->https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers

 

This worked -- thanks!!

Share this post


Link to post
Share on other sites

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.   Paste as plain text instead

  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.