Apache OpenOffice (AOO) Bugzilla – Issue 18189
NFS lock problem under Linux
Last modified: 2004-03-19 10:35:15 UTC
I've enabled file locking by setting the variable SAL_ENABLE_FILE_LOCKING=1 export SAL_ENABLE_FILE_LOCKING into program/soffice, and I've tried to get access to file shared into an NFS area. There are no possibility to open any file. It seems that the lock mechanism doesn't work. Infact if I mount the NFS area with nolock option all works. Apart the possibility that two users can work on the same file at the same moment... Situation: Server Linux RedHat 7.3 with nfs-utils-0.3.3 kernel 2.4.18 Client Mandrake 9.1 with nfs-utils-clients-1.0.1 kernel 2.4.21 Regards Davide
ATR: Hi, Thorsten, one for you. Please have a look.
TM->ddozza: Did you enable the file-locking entries in the ./soffice - start script in the office installation directory (where OpenOffice has been installed) by removing the hash-marks in front of the two lines ? If you do so, file-locking should work (the second one who tries to open the same file, only gets it readonly).
Please, read carefully my first post! I think it's quite clear. Yes, I definitely do enable. I have set file locking by enabling into ./soffice located into installation directory.... Moreover I've controlled all file permissions in order to be sure. SAL_ENABLE_FILE_LOCKING=1 export SAL_ENABLE_FILE_LOCKING The problem is that if I enable file locking I can't open any file on NFS mounted area !!! Neither in read only!!! In order to get access I've to mount NFS with nolock option enabled. This is very annoying and dangerous because: - Normally NFS areas are directly managed by sysadm so I can't ask them to disable such feature - If the same area is exported via SMB to windows client there is no way to manage lock file between SMB and NFS. So interoperaction became dangerous. I'm a disposal in order to do any test. I think this bug is very critic. Davide
Are the locking daemon as well as the stat daemons running on NFS client as well as server ?
Uhm... There is really a strange behavior. It seems that lockd dies as I open the first file. If I restart lockd and statd I can open the first file. Then I can't open any file anymore. Let me do some other tests. Davide
It seems a problem connected with the NFS releases we are using in our configuration. Infact the server RH 7.2 uses nfs-utils 0.3.3 while clients Mandrake 9.1 nfs-utils 1.0. They seems that are incompatible to each other. So I can't confirm the issue. Davide
.