Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

Kernel change notify = No needed for NFS/SMB shared access

Description

Use Case

Have /mnt/tank/testshare dataset shared to Linux clients (Ubuntu 22.04.03) using NFS and MacOS clients (Ventura 13.5.2) using SMB. Expected behavior is that when a Linux user adds or removes a a file on NFS mount point, that the change is quickly reflected in MacOS on the mounted SMB volume.

Expected Behavior

When a user updates the NFS share (creates, delete, or rename a file or directory) the change is reflected on the MacOS client in mounted SMB share.

Observed Behavior

The MacOS client does not see the updates from Linux NFS clients until the share is unmounted and remounted again. Occasionally, a user is able to exit the folder on MacOS and open it again to see the refreshed data, but this is not reliable.

In TrueNAS 13, the /usr/local/etc/smb4.conf file has set Kernel change notify = No. If this is changed to Yes, then MacOS SMB clients pick up changes from Linux NFS clients as expected. The original issue with Kernel change notify appears to be related to prior issue in FreeBSD 9.2.1.3 found in the Forums here https://www.truenas.com/community/threads/kernel-change-notify-yes.45379/post-307334

Request for fix

Provide a recommended solution to the expected behavior that does not require users to manually refresh MacOS SMB shares to see changes.

Problem/Justification

None

Impact

None

Activity

Show:

Scott M Russell September 21, 2023 at 2:37 PM

Per the requested fix, I don’t need this exact settings. I’m looking for the right settings that allow for MacOS SMB clients to see changes from Linux NFS clients without MacOS users having to manually refresh the share.

Andrew Walker September 21, 2023 at 2:32 PM

Changing this parameter will still cause fd exhaustion. Use SCALE if you need this feature.

Scott M Russell September 21, 2023 at 2:27 PM

Note the title of this issue has a typo. It should have been Kernel change notify = Yes is the needed to meet the expected behavior.

Automation for Jira September 21, 2023 at 2:23 PM

Thank you for submitting this TrueNAS Bug Report! So that we can quickly investigate your issue, please attach a Debug file and any other information related to this issue through our secure and private upload service below. Debug files can be generated in the UI by navigating to System -> Advanced -> Save Debug.

https://ixsystems.atlassian.net/servicedesk/customer/portal/15/group/37/create/153

Not to be Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Impact

Medium

Components

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created September 21, 2023 at 2:23 PM
Updated February 27, 2025 at 9:14 PM
Resolved September 21, 2023 at 2:32 PM