Problem/Justification
Create a switch or checkbox that enables Avid Media Composer Bin Locking
Impact
(How is this feature going to impact all TrueNAS users? What are the benefits and advantages? Are there disadvantages?)
This feature will make it easy for non-techie video editors to configure their system to work with Avid Media composer. Benefit is easy of use; advantage is TrueNas is more economical compared to Avid Nexis storage NAS products..
User Story
Create either a checkbox or button to “enable Avid Media composer bin locking”
How Bin Locking Works
Media Composer uses a file-based locking mechanism. When an editor opens a bin, Avid creates lock files (typically with .lck extensions) in the same directory as the bin file. These lock files prevent other editors from opening the same bin in read-write mode simultaneously. The system relies on the underlying file system and network protocol to properly handle these lock operations - essentially using advisory file locking.
Safety with TrueNAS SMB
Using Media Composer with TrueNAS over SMB can work, but there are important considerations:
Potential issues:
-
SMB locking behavior can vary depending on the SMB version and configuration. Avid officially supports specific configurations, and deviations can lead to lock file corruption or “false locks” that persist even after bins are closed.
-
Network interruptions can leave stale lock files that require manual cleanup.
-
Some SMB configurations don’t properly support the oplocks (opportunistic locks) that Avid relies on.
Best practices for TrueNAS SMB:
-
Use SMB3 or later
-
Disable oplocks on the share (
oplocks = noin smb.conf or via TrueNAS UI) -
Enable strict locking (
strict locking = yes) -
Consider using
vfs objects = fruit streams_xattrif you have Mac clients -
Ensure AFP is not being used simultaneously on the same share
Many facilities successfully run Avid over SMB