[Bug 384481] New: Can't lock file on NFS from openSUSE-11.0
https://bugzilla.novell.com/show_bug.cgi?id=384481 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c383390 Summary: Can't lock file on NFS from openSUSE-11.0 Product: openSUSE 11.0 Version: Beta 1 Platform: All OS/Version: openSUSE 11.0 Status: NEW Severity: Blocker Priority: P5 - None Component: Kernel AssignedTo: nfbrown@novell.com ReportedBy: pmladek@novell.com QAContact: kernel-maintainers@forge.provo.novell.com Blocks: 383390 Found By: --- OpenOffice.org behaves a strange way on openSUSE-11.0, see the bug #383390. It went out that the locking over NFS does not work as expected. OOo uses fcntl F_SETLK to get the lock. I'll attach small testcase that does the locking the OOo way. I'll also attach two strace logs showing the different behavior on openSUSE-11.0. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c1 --- Comment #1 from Petr Mladek <pmladek@novell.com> 2008-04-28 13:08:31 MST --- Created an attachment (id=210952) --> (https://bugzilla.novell.com/attachment.cgi?id=210952) Testcase. You might try the following steps: gcc test-lock.c echo hello >~/test.txt /a.out ~/test.txt -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c2 --- Comment #2 from Petr Mladek <pmladek@novell.com> 2008-04-28 13:10:35 MST --- Created an attachment (id=210953) --> (https://bugzilla.novell.com/attachment.cgi?id=210953) strace from 10.3 The locking did not work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c3 --- Comment #3 from Petr Mladek <pmladek@novell.com> 2008-04-28 13:13:40 MST --- Created an attachment (id=210954) --> (https://bugzilla.novell.com/attachment.cgi?id=210954) strace from SLED10-SP1 I actually just booted SLED10-SP1 on the same machine. Then I chrooted into the 11.0 system and started exactly the same binary on exactly the same file from exactly the same nfs server. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c4 Petr Mladek <pmladek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #210953|0 |1 is obsolete| | --- Comment #4 from Petr Mladek <pmladek@novell.com> 2008-04-28 13:21:02 MST --- Created an attachment (id=210955) --> (https://bugzilla.novell.com/attachment.cgi?id=210955) strace from 11.0 Urgh, please ignore the strace from 10.3. It was strace from 11.0. I just mentioned wrong version in the file name and comment :-( It works on 10.3 the same way like on 11.0. Only 11.0 does not work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User nfbrown@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c5 Neil Brown <nfbrown@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |pmladek@novell.com --- Comment #5 from Neil Brown <nfbrown@novell.com> 2008-04-28 18:44:26 MST ---
From the trace, the problem is that on OpenSUSE-11 you are getting the error 'ENOLCK' when trying to get a lock.
If there server is known to work correctly (as seems to be the case), this suggests that 'statd' isn't running on your OpenSUSE-11 client. Please check is statd is running: ps axgu | grep statd rpcinfo -p ls -lR /var/lib/nfs Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c6 Petr Mladek <pmladek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |coolo@novell.com Status|NEEDINFO |NEW Info Provider|pmladek@novell.com | --- Comment #6 from Petr Mladek <pmladek@novell.com> 2008-04-29 03:46:52 MST --- Good catch, rpc.statd really was not running on 11.0: root@golem:/> ps axgu | grep statd root 3273 0.0 0.0 2288 792 pts/2 S+ 11:39 0:00 grep statd root@golem:/> rpcinfo -p program verz proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100021 1 tcp 50936 nlockmgr 100021 3 tcp 50936 nlockmgr 100021 4 tcp 50936 nlockmgr I wonder if it might be somewhat related to the new installation image magic. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c7 --- Comment #7 from Petr Mladek <pmladek@novell.com> 2008-04-29 03:48:41 MST --- Created an attachment (id=211089) --> (https://bugzilla.novell.com/attachment.cgi?id=211089) output from ls -lR /var/lib/nfs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 Petr Mladek <pmladek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #211089|application/text |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 Petr Mladek <pmladek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #211089|application/octet-stream |application/text mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c8 --- Comment #8 from Petr Mladek <pmladek@novell.com> 2008-04-29 03:53:51 MST --- OOo and the locking works correctly after I started "rpc.statd --no-notify" by hand. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User gregkh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c9 Greg Kroah-Hartman <gregkh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #9 from Greg Kroah-Hartman <gregkh@novell.com> 2008-04-29 09:48:27 MST --- Ok, closing out, this is not a kernel bug... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c10 --- Comment #10 from Petr Mladek <pmladek@novell.com> 2008-04-29 10:22:36 MST --- I agree that it is not a kernel bug but we still need to find why rpc.statd was not running => REOPENING There is a note in /etc/init.d/nfs that statd should get started by mount.nfs when needed. Also the rpcinfo output looks suspicious. I am not expert in this area, so I am not sure what to check, ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c11 Petr Mladek <pmladek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | --- Comment #11 from Petr Mladek <pmladek@novell.com> 2008-04-29 10:23:00 MST --- really REOPEN -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User gregkh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c12 Greg Kroah-Hartman <gregkh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|nfbrown@novell.com |bnc-team-screening@forge.provo.novell.com Status|REOPENED |NEW Component|Kernel |Basesystem QAContact|kernel-maintainers@forge.provo.novell.com |qa@suse.de --- Comment #12 from Greg Kroah-Hartman <gregkh@novell.com> 2008-04-29 10:36:58 MST --- reassigning to a different group then, as this isn't a kernel issue... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c13 Petr Mladek <pmladek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nfbrown@novell.com --- Comment #13 from Petr Mladek <pmladek@novell.com> 2008-04-29 12:32:41 MST --- Added Neil to CC because he maintains nfs-client. /etc/init.d/nfs and mount.nfs are part of this package, ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |nfbrown@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User nfbrown@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c14 Neil Brown <nfbrown@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |pmladek@novell.com --- Comment #14 from Neil Brown <nfbrown@novell.com> 2008-05-01 21:32:59 MST --- Statd should be started when you first mount an NFS filesystem. The mount.nfs program will run /usr/sbin/start-statd Could you please check that this script is installed and executable? If you kill statd, then run /usr/sbin/start-statd does statd start? Thanks, -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c15 Petr Mladek <pmladek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|pmladek@novell.com | --- Comment #15 from Petr Mladek <pmladek@novell.com> 2008-05-02 10:12:05 MST --- Everything seems to be fine. /usr/sbin/start-statd is on the system and is executable. If I kill statd and run start-statd, statd is started again. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User nfbrown@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c16 Neil Brown <nfbrown@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |pmladek@novell.com --- Comment #16 from Neil Brown <nfbrown@novell.com> 2008-05-04 05:55:42 MST --- So maybe mount isn't running start-statd like it should... Can you kill statd, unmount the NFS filesystem, then mount it again and see if statd gets started? Can you tell me more about the NFS filesystem that is causing problems. Is it automounted, or mounted by /etc/fstab, or mounted by hand? What are the mount options? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c17 Petr Mladek <pmladek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|pmladek@novell.com | --- Comment #17 from Petr Mladek <pmladek@novell.com> 2008-05-05 09:36:10 MST --- I tried to mount it via yast and it did not start statd. I tried it by hand "mount -t nts nfs.suse.cz:/home /home" and it did not start statd as well. I did not use any special mount options. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User nfbrown@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c19 Neil Brown <nfbrown@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #19 from Neil Brown <nfbrown@novell.com> 2008-05-06 00:07:03 MST --- OK, I've figured it out. There are two quite separate branches of code in mount.nfs. One performs the mount using the 'old style' binary data structure to pass options to the kernel. The other uses the 'new style' text string to pass options to the kernel. The code for checking and starting statd was only in the 'old style' branch. I have commited a patch to STABLE which moves that code into common code. I'll attach the patch for completeness. It has been sent upstream. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User nfbrown@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c20 --- Comment #20 from Neil Brown <nfbrown@novell.com> 2008-05-06 00:07:51 MST --- Created an attachment (id=212522) --> (https://bugzilla.novell.com/attachment.cgi?id=212522) Patch to start statd properly -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User kendy@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c21 Jan Holesovsky <kendy@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mmeeks@novell.com --- Comment #21 from Jan Holesovsky <kendy@novell.com> 2008-05-12 08:54:54 MST --- *** Bug 385289 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=385289 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User pmladek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c22 Petr Mladek <pmladek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #22 from Petr Mladek <pmladek@novell.com> 2008-05-16 03:59:29 MST --- It works for me on 11.0-beta2 => FIXED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=384481 User kendy@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=384481#c23 Jan Holesovsky <kendy@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mabrand@mabrand.nl --- Comment #23 from Jan Holesovsky <kendy@novell.com> 2008-07-01 02:03:05 MDT --- *** Bug 221193 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=221193 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com