Page 1 of 1

VirtualDub + GlusterFS = Unable to open file

Posted: Tue Aug 20, 2013 5:13 pm
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: