Leonard Degollado
2012-May-24 17:52 UTC
[Samba] GPFS on Linux exported via Samba to Windows Clients, locking issue
I have a 3-node GPFS on Linux Cluster (3.4.0-12) with Samba 3.6.5 The problem is with file locking across the Cluster. Windows Client-1 maps the GPFS directory-1 from GPFS node-1 and initiates a Write of File-1 Windows Client-2 maps the GPFS directory-1 from GPFS node-2 and should only have READ access but not Modify/Delete/Rename access to File-1. However, Windows Client-2 is able to Modify, Delete and Rename File-1 instead of being prevented by the locks. If both Windows Clients (1 and 2) both map to GPFS node-1, the locking mechanism works as designed. Client-2 can Read but cannot Modify/Delete/Rename File-1. What are all the required parameters that should be specified in the smb.conf file to enable the locking to work across the GPFS Cluster when various Clients map to different nodes? I have defined and tested every smb locking parameter combination without any success. Leonard
steve
2012-May-26 07:45 UTC
[Samba] GPFS on Linux exported via Samba to Windows Clients, locking issue
On 24/05/12 19:52, Leonard Degollado wrote:> > I have a 3-node GPFS on Linux Cluster (3.4.0-12) with Samba 3.6.5 > The problem is with file locking across the Cluster. > Windows Client-1 maps the GPFS directory-1 from GPFS node-1 and initiates a > Write of File-1 > Windows Client-2 maps the GPFS directory-1 from GPFS node-2 and should only > have READ access but not Modify/Delete/Rename access to File-1. > > However, Windows Client-2 is able to Modify, Delete and Rename File-1 > instead of being prevented by the locks. > > If both Windows Clients (1 and 2) both map to GPFS node-1, the locking > mechanism works as designed. Client-2 can Read but cannot > Modify/Delete/Rename File-1. > What are all the required parameters that should be specified in the > smb.conf file to enable the locking to work across the GPFS Cluster when > various Clients map to different nodes? > > I have defined and tested every smb locking parameter combination without > any success. > > > > LeonardHi Leanard It seems to be program dependent. We can only get file locking to work with libreoffice, office 2010, gimp and inkscape. Anything else, and the file can be opened rw by anyone, even if it is open elsewhere. I wonder why file locking only works with certain programs? Cheers, Steve
Andrew Bartlett
2012-May-28 09:06 UTC
[Samba] GPFS on Linux exported via Samba to Windows Clients, locking issue
On Thu, 2012-05-24 at 13:52 -0400, Leonard Degollado wrote:> I have a 3-node GPFS on Linux Cluster (3.4.0-12) with Samba 3.6.5 > The problem is with file locking across the Cluster. > Windows Client-1 maps the GPFS directory-1 from GPFS node-1 and initiates a > Write of File-1 > Windows Client-2 maps the GPFS directory-1 from GPFS node-2 and should only > have READ access but not Modify/Delete/Rename access to File-1. > > However, Windows Client-2 is able to Modify, Delete and Rename File-1 > instead of being prevented by the locks. > > If both Windows Clients (1 and 2) both map to GPFS node-1, the locking > mechanism works as designed. Client-2 can Read but cannot > Modify/Delete/Rename File-1. > What are all the required parameters that should be specified in the > smb.conf file to enable the locking to work across the GPFS Cluster when > various Clients map to different nodes? > > I have defined and tested every smb locking parameter combination without > any success.Are you using CTDB? https://wiki.samba.org/index.php/CTDB_Setup#IBMs_GPFS_filesystem -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org