Prev: [Samba] [FIXED on Debian] Re: ads_sasl_spnego_krb5_bind failed: Program lacks support for encryption type [SEC=UNCLASSIFIED]
Next: WINS corruption alleged
From: Volker Lendecke on 19 Feb 2010 12:10 On Fri, Feb 19, 2010 at 07:33:48AM +0100, Janez Kosmrlj wrote: > We have a strange file locking problem and i hope someone can help. We use > some CentOS 5 servers, which use samba 3.0.33, to share files of a java > application to clients. Clients are mostly CentOS 5 (same version as the > server), but there are a few legacy windows clients (the reason why we use > samba and not nfs). And now the problem. When our developer uploads a new > jar file to the server via scp (or via local cp command) we encountered a > problem. As soon as the server has the new file the Linux client (windows > not yet tested) is seeing a corrupt file. And this state continues until the > share gets remounted on the client. This was working before where we had a > fedora core 4 servers and only windows clients, but now we are in the > process of upgrading the servers and introducing Linux on the client side. > > You can also simulate the problem if you open a text file on a Linux client > with tail -f and then change the file on the server locally. The file the > client sees is corrupted until the share gets remounted. > > First thing. As these are remote locations and there is a lot of them, it is > not possible to upload files via smb (we would like to make rpm packages for > the application and the app will be distributed via yum). > > We tried various permutations of the parameters kernel oplocks, posix locks, > oplocks, level2 oplocks, ... but nothing seems to work. We also tried to use > a newer samba version (3.4.5). Can you try to mount with -o directio? Not sure this will help, but it might be worth a try. Volker
From: Ernesto Silva on 19 Feb 2010 15:30 > > Can you try to mount with -o directio? Not sure this will > help, but it might be worth a try. > > Volker > Hi, there is also another parameter similar to directio, I don't know the difference but seems more radical, it's "forcedirectio". I have been using it on linux clients which mounts a samba share or a w2k share. Best regards, Ernesto. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
From: Janez Kosmrlj on 22 Feb 2010 04:20 On Sun, Feb 21, 2010 at 8:46 PM, Janez Kosmrlj <postnalista(a)googlemail.com>wrote: > > > On Fri, Feb 19, 2010 at 9:23 PM, Ernesto Silva <erniesilva(a)gmail.com>wrote: > >> Can you try to mount with -o directio? Not sure this will >>> help, but it might be worth a try. >>> >>> Volker >>> >> >> Hi, there is also another parameter similar to directio, I don't know the >> difference but seems more radical, it's "forcedirectio". I have been using >> it on linux clients which mounts a samba share or a w2k share. >> >> Best regards, >> Ernesto. >> > > > I think we tried -o, but i will check it again. I will also giwe > forcedirectio a try. > > Any other ideas. > It looks like forcedirectio is the right way to go. I tried it with the text file tests, that i mentioned before and for now it looks OK. All i have to do now is to test it with real life jar files and java. I will report to this list as soon as i get any results. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
From: Janez Kosmrlj on 1 Mar 2010 10:10 On Mon, Feb 22, 2010 at 10:18 AM, Janez Kosmrlj <postnalista(a)googlemail.com>wrote: > > > On Sun, Feb 21, 2010 at 8:46 PM, Janez Kosmrlj <postnalista(a)googlemail.com > > wrote: > >> >> >> On Fri, Feb 19, 2010 at 9:23 PM, Ernesto Silva <erniesilva(a)gmail.com>wrote: >> >>> Can you try to mount with -o directio? Not sure this will >>>> help, but it might be worth a try. >>>> >>>> Volker >>>> >>> >>> Hi, there is also another parameter similar to directio, I don't know the >>> difference but seems more radical, it's "forcedirectio". I have been using >>> it on linux clients which mounts a samba share or a w2k share. >>> >>> Best regards, >>> Ernesto. >>> >> >> >> I think we tried -o, but i will check it again. I will also giwe >> forcedirectio a try. >> >> Any other ideas. >> > It looks like forcedirectio is the right way to go. I tried it with the > text file tests, that i mentioned before and for now it looks OK. All i have > to do now is to test it with real life jar files and java. > > I will report to this list as soon as i get any results. > > > Hi, Unfortunately forcedirectio is not the solution i hoped it would be. When i preform the above mentioned text file test everything looks OK, but when we try to work with real life .jar files then we get "mmap failed for CEN and END part of zip file" from the Java application. Is there someone with a better solution. Thanx anyway to Ernesto and Volker for the help. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
From: Janez Kosmrlj on 8 Mar 2010 07:50
On Mon, Mar 1, 2010 at 4:03 PM, Janez Kosmrlj <postnalista(a)googlemail.com>wrote: > > > On Mon, Feb 22, 2010 at 10:18 AM, Janez Kosmrlj < > postnalista(a)googlemail.com> wrote: > >> >> >> On Sun, Feb 21, 2010 at 8:46 PM, Janez Kosmrlj < >> postnalista(a)googlemail.com> wrote: >> >>> >>> >>> On Fri, Feb 19, 2010 at 9:23 PM, Ernesto Silva <erniesilva(a)gmail.com>wrote: >>> >>>> Can you try to mount with -o directio? Not sure this will >>>>> help, but it might be worth a try. >>>>> >>>>> Volker >>>>> >>>> >>>> Hi, there is also another parameter similar to directio, I don't know >>>> the difference but seems more radical, it's "forcedirectio". I have been >>>> using it on linux clients which mounts a samba share or a w2k share. >>>> >>>> Best regards, >>>> Ernesto. >>>> >>> >>> >>> I think we tried -o, but i will check it again. I will also giwe >>> forcedirectio a try. >>> >>> Any other ideas. >>> >> It looks like forcedirectio is the right way to go. I tried it with the >> text file tests, that i mentioned before and for now it looks OK. All i have >> to do now is to test it with real life jar files and java. >> >> I will report to this list as soon as i get any results. >> >> >> Hi, > Unfortunately forcedirectio is not the solution i hoped it would be. When i > preform the above mentioned text file test everything looks OK, but when we > try to work with real life .jar files then we get "mmap failed for CEN and > END part of zip file" from the Java application. > > Is there someone with a better solution. Thanx anyway to Ernesto and Volker > for the help. > update. For now it looks like fakeoplocks=yes in smb.conf is the solution. Also the audit service on the client has to be turned off. We have to do some further testing, but this looks like it is it for now. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba |