[Linux-cluster] GFS and samba problem, again

sandra-llistes sandra-llistes at fib.upc.edu
Tue Oct 10 07:43:53 UTC 2006


Hi Abhi,

Thanks for the reply.
Please, Could you try to play a video clip from four or more windows 
simultaneously? sometimes with less than tree clients it can work, but 
for four or more always fails.
Could you give more information about your system? is Fedora or RHEL? 
what OS,samba,GFS version? Any special locking configuration in samba 
or linux kernel?

I had tested samba with GFS only mounted in one node, and samba hangs 
likewise, but GFS mounted with no_lock option in node1 works fine.

I download the lastest version for GFS2 and cluster with "cvs -d 
:pserver:cvs at sources.redhat.com:/cvs/cluster checkout cluster"and I'm 
trying to make it work in our test environment. I hope this works.
I don't know if I had said that we have Fedora 5 and not RHEL 
installed. I don't know if it can be some differences.

Also, I tried OCFS2 and works ok with this samba configuration, the 
problem is that doesn't support quotas.
Regards,

Sandra

Abhijith Das wrote:
> sandra-llistes wrote:
> 
>> Hi,
>>
>> I sent a mail a few days ago to this list related with GFS+samba 
>> problems.
>>
>> Since the, we have installed a sepparated test environment also with 
>> two linux servers where we  have tested a samba server with an 
>> exported share in GFS. The share is read-only and only one server is 
>> exporting it.
>>
>> When we try to access from a single windows client it works fine, but 
>> when we try to access to the same file from 2 or more windows clients 
>> simoultaneously, windows hangs and samba also does. This seems not to 
>> happen with concurrent access to different files or with linux clients.
>>
>> We've also tested to export the same share without GFS and in this 
>> case it works fine.
>>
>> It seems to be a locking problem with samba, GFS and windows clients. 
>> Does any of you have experienced similar problems? Do you have any 
>> suggestion about this?
>>
>> Following is the share configuration in smb.conf:
>>
>> [public]
>>   comment         = ShareGFS
>>   path            = /public
>>   writeable       = No
>>   read only       = Yes
>>   write list      = @admsamba
>>   force group     = admsamba
>>   create mask     = 0775
>>   directory mask  = 0775
>>   oplocks         = No
>>   locking = Yes
>>   strict locking = Yes
>> # I proved with locking/Strick locking=Yes and No. Always happens the 
>> same problem
>>
>> I attach some samba logs (Level 3).
>> Software Versions:
>>     Fedora 5
>>     Samba 3.0.23
>>     GFS  6.1.5
>>     kernel 2.6.17-1.2187_FC5
>>
>> Any help will be appreciated.
>>
>> Sandra Hernandez
> 
> Hi Sandra,
> I'm not very familiar with the locking of samba, but I did try the 
> scenario you described on my test cluster. I'm unable to reproduce your 
> problem. I have an identical smb.conf as you've pasted above. Accessing 
> (reading a txt file, or playing a video clip) from two windows clients 
> simultaneously works just fine without any glitches.
> If I understood it right, the test case you describe has one node in a 
> cluster exporting a single samba share over a GFS filesystem and you're 
> using multiple windows clients to access the same file in this share. 
> This is a fairly basic operation IMO and it is quite odd that you should 
> see this failure. Maybe you can try the CVS version of cluster suite 
> (cvs -d :pserver:cvs at sources.redhat.com:/cvs/cluster checkout -r RHEL4 
> cluster) to see if the problem persists. Also, I'd be interested in 
> knowing the behavior when you mount GFS on only one node (the one that's 
> exporting) and also when you use GFS with lock_nolock on a standalone 
> machine.
> Thanks,
> --Abhi




More information about the Linux-cluster mailing list