<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <style>
body, td, div, p, span{
font-family: Trebuchet MS, Verdana, Sans, MS Sans Serif;
font-size: 12px;
}
#small_print{
padding-top: 3px;
font-family: Trebuchet MS,Verdana,Sans,MS Sans Serif;
font-weight: bold;
font-size: 11px;
color: #20558a;
}
#logo{
padding-top: 10px;
}
code,pre,tt{
font-size: 13px;
}
  </style>
</head>
<body moz_template="id1" bgcolor="#ffffff" text="#000000">
<table border="0" cellpadding="0" cellspacing="0" width="698">
  <tbody>
    <tr>
      <td align="justify">Hi,<br>
      <br>
I'm having an issue with file locking whist using lustre+ctdb+samba<br>
      <br>
My Lustre Setup<br>
mds/mgs<br>
3 oss<br>
3 Clients each with ctdb and samba services running.<br>
      <br>
All servers and clients running Centos 5 - Kernal 2.6.19-92<br>
All servers and clients with Lustre 1.6.6<br>
ctdb 3.0<br>
Samba 3.2.1<br>
      <br>
CTDB Configuration:<br>
      <br>
./configure --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib/ctdb<br>
      <br>
/etc/sysconfig/ctdb<br>
      <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: "Courier New";">CTDB_RECOVERY_LOCK="/share/mnt/recovery"<o:p></o:p><br>
CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses<o:p></o:p><br>
CTDB_MANAGES_SAMBA=yes<o:p></o:p></span><span
 style="font-family: "Courier New";"><br>
CTDB_LOGFILE=/var/log/log.ctdb<br>
      </span></p>
      <p class="MsoNormal" style="">/etc/ctdb/public_addresses<br>
      </p>
      <p class="MsoBodyText"><span
 style="font-size: 10pt; font-family: "Courier New";" lang="EN-GB">192.168.3.200/24
eth0<o:p></o:p></span></p>
/etc/ctdb/nodes<br>
      <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: "Courier New";">192.168.3.173<o:p></o:p><br>
192.168.2.3<o:p></o:p><br>
192.168.1.3<o:p></o:p></span></p>
SAMBA Configuration<br>
      <p class="MsoNormal" style="">./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</p>
Load smb config files from /etc/samba/smb.conf<br>
Processing section "[homes]"<br>
Processing section "[filepool]"<br>
Processing section "[printers]"<br>
Loaded services file OK.<br>
Server role: ROLE_STANDALONE<br>
Press enter to see a dump of your service definitions<br>
 <br>
[global]<br>
        workgroup = MYGROUP<br>
        server string = Samba Server Version %v<br>
        passdb backend = tdbsam<br>
        use mmap = No<br>
        clustering = Yes<br>
        idmap backend = tdb2<br>
        fileid:mapping = fsname<br>
        ea support = Yes<br>
        cups options = raw<br>
 <br>
[filepool]<br>
        comment = The Shared Area<br>
        path = /mnt/lustre<br>
        read only = No<br>
        create mask = 0777<br>
        directory mask = 0777<br>
 <br>
All lustre clients have been mounted with the '-o flock' option.<br>
      <br>
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.<br>
      <br>
>From a window share prospective clients can read/write to files on the
file share but file locking is not active.<br>
      <br>
The only errors I can find from samba logs are:<br>
      <br>
[2009/01/11 02:50:25,  3]
locking/locking.c:fetch_share_mode_unlocked(857)<br>
  fill_share_mode_lock failed <br>
[2009/01/11 02:50:25, 10] smbd/statcache.c:stat_cache_lookup(235)<br>
  stat_cache_lookup: lookup failed for name [SG]<br>
[2009/01/11 02:50:33,  5] lib/util_sock.c:read_socket_with_timeout(928)<br>
  read_socket_with_timeout: blocking read. EOF from client.   <br>
[2009/01/11 02:50:33,  3] smbd/process.c:smbd_process(2027)<br>
  receive_message_or_smb failed: NT_STATUS_END_OF_FILE, exiting  <br>
      <br>
Has anyone dealt with a similar set-up and can assist with the file
locking from a ctdb+samba environment ? <br>
      <br>
<!--name-->Darren George<!--name--><br>
<!--job-->Linux Server Administrator<!--job--></td>
    </tr>
    <tr>
      <td id="logo"> <img
 alt="Patersons Asia PTE Ltd.20 Science Park Road, #01-04/05 Teletech Park, Singapore Science Park II, Singapore 117674. http://www.patersons.net/ Tel: +65 6403 5900"
 src="cid:part1.00070909.06080104@sg.patersons.net" height="86"
 width="720"></td>
    </tr>
    <tr>
      <td id="small_print" align="justify">CONFIDENTIALITY: This e-mail
and any attachment is confidential. If you
are not the intended recipient or you receive this e-mail in error,
please notify the sender immediately and do not disclose the contents
to another person or take or print copies or use it for any other
purpose, but delete it immediately.<br>
VIRUSES: We offer no guarantees that this e-mail or any attachment will
be received error or virus free and accept no responsibility whatever
in this regard.<br>
SECURITY: This transmission is not guaranteed as secure. We do not
accept liability for any errors or omissions in the contents of this
e-mail which results from this transmission.<br>
Registered in England under number 3579805. Registered address as above
      </td>
    </tr>
  </tbody>
</table>
</body>
</html>