VirtualDub + GlusterFS = Unable to open file

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

VirtualDub + GlusterFS = Unable to open file

Post by peter_b »

[PROBLEM]
Trying to open AVI files with VirtualDub over Samba over GlusterFS mountpoint returns the following error message:
"Cannot read from file "xxx.avi": The process cannot access the file because another process has locked a portion of the file."
Other applications can open the file (e.g. VLC), but it seems that VirtualDub's locking behavior doesn't play well with a default GlusterFS setup.
Opening the same file directly from the GlusterFS "bricks" mountpoints over Samba, works fine.


[SOLUTION]
GlusterFS shared over Samba obviously has similar properties like sharing NFS.
The solution is to disable strict locking in Samba's global section in "/etc/samba/smb.conf"

Code: Select all

[global]
strict locking = no
Thanks to the thread [Samba] The process cannot access the file because another process has locked a portion of the file on "fixunix.com".

References:
Post Reply