Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-13-2009, 01:07 AM   #1
LQ Newbie
Registered: Jan 2009
Location: Australia
Posts: 1

Rep: Reputation: 0
CTDB + SAMBA + LUSTRE Window Share File Locking


I'm having an issue with file locking whist using lustre+ctdb+samba

My Lustre Setup
3 oss
3 Clients each with ctdb and samba services running.

All servers and clients running Centos 5 - Kernal 2.6.19-92
All servers and clients with Lustre 1.6.6
ctdb 3.0
Samba 3.2.1

CTDB Configuration:

./configure --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib/ctdb



/etc/ctdb/public_addresses eth0


SAMBA Configuration

./configure --with-ctdb=/etc/ctdb --with-cluster-support --enable-pie=no --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib/samba --with-privatedir=/share/mnt/ctdb --with-lockdir=/usr/local/var/ctdb --with-piddir=/var/run --with-swatdir=/usr/share/swat --with-logfilebase=/var/log/samba --with-configdir=/etc/samba

Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[filepool]"
Processing section "[printers]"
Loaded services file OK.
Press enter to see a dump of your service definitions

workgroup = MYGROUP
server string = Samba Server Version %v
passdb backend = tdbsam
use mmap = No
clustering = Yes
idmap backend = tdb2
fileid:mapping = fsname
ea support = Yes
cups options = raw

comment = The Shared Area
path = /mnt/lustre
read only = No
create mask = 0777
directory mask = 0777

All lustre clients have been mounted with the '-o flock' option.

Everything from a linux prospective is working fine, my linux clients can read/write to files on the file share and file locking is active.

From a window share prospective clients can read/write to files on the file share but file locking is not active.

The only errors I can find from samba logs are:

[2009/01/11 02:50:25, 3] Locking/locking.c:fetch_share_mode_unlocked(857)
fill_share_mode_lock failed
[2009/01/11 02:50:25, 10] smbd/statcache.c:stat_cache_lookup(235)
stat_cache_lookup: lookup failed for name [SG]
[2009/01/11 02:50:33, 5] lib/util_sock.c:read_socket_with_timeout(928)
read_socket_with_timeout: blocking read. EOF from client.
[2009/01/11 02:50:33, 3] smbd/process.c:smbd_process(2027)
receive_message_or_smb failed: NT_STATUS_END_OF_FILE, exiting

Has anyone dealt with a similar set-up and can assist with the file locking from a ctdb+samba environment ?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CTDB Samba Deployment lqtim Linux - Newbie 1 02-26-2009 02:28 AM
SAMBA and file locking triley Linux - General 0 11-06-2008 09:12 AM
Samba + File locking HeReigns Linux - Server 0 06-20-2007 05:00 PM
Samba File share locking problem Adam_equip Linux - Software 3 07-14-2004 09:14 AM
File locking over Samba rtaft Linux - Software 0 12-30-2003 11:02 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration