Linux NFS development
 help / color / mirror / Atom feed
From: Andrew Ryan <andrewr@collab.net>
To: Todd Weaver <todd@m2n.com>
Cc: nfs@lists.sourceforge.net
Subject: Re: some programs hang when run over nfs.
Date: Tue, 09 Apr 2002 17:54:13 -0700	[thread overview]
Message-ID: <3CB38D35.16746195@collab.net> (raw)
In-Reply-To: Pine.LNX.4.33.0204091719490.18654-100000@minstrel.m2n.com

Todd Weaver wrote:

>
> I can run programs such as nautilus, staroffice, openoffice as a local
> user just fine. However, if I try to run any of the above programs as a
> nis user who's home directory is an nfs mount, that program will hang.
>
> for example (staroffice):
> todd@ws04~ $ strace -f /usr/local/office/program/soffice
> [snip]
> [pid   589] open("/home/t/todd/.sversionrc", O_RDONLY) = 3
> [pid   589] fcntl(3, F_GETFD)           = 0
> [pid   589] fcntl(3, F_SETFD, FD_CLOEXEC) = 0
> [pid   589] fcntl(3, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}

I've seen software hang doing a fcntl(F_SETLKW) on an NFS-mounted file when lockd
was not running or was firewalled off. Essentially the client is asking for a
lock on a file -- which it never gets -- and the app waits forever for lockd to
respond.

I would check that lockd is running on the client and server, with rpcinfo -p,
and that it is not firewalled off.



andrew


_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2002-04-10  0:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-10  0:29 some programs hang when run over nfs Todd Weaver
2002-04-10  0:54 ` Andrew Ryan [this message]
2002-04-10  1:08   ` Todd Weaver
2002-04-10  1:25   ` Todd Weaver
2002-04-10  3:11     ` Andrew Ryan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CB38D35.16746195@collab.net \
    --to=andrewr@collab.net \
    --cc=nfs@lists.sourceforge.net \
    --cc=todd@m2n.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox