Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* vi hangs
@ 2002-02-06  0:26 Scott Horton
  2002-02-18 19:52 ` Thomas Buettner
  2002-02-19 18:23 ` M.J. Rutter
  0 siblings, 2 replies; 3+ messages in thread
From: Scott Horton @ 2002-02-06  0:26 UTC (permalink / raw)


I have installed (from scratch) a few V5.1 and V5.1a machines.
Each of these machines has the same following problem:
When NFS mounting a filesystem (automount,autofs,hard)
from a NettApp, vi'ing an existing file hangs. The file data
eventually comes up in the xterm...about 10 minutes later.

trace produces the following:
.
.
dup (6) = 7        [hang point]
flock (6,LOCK_SH|LOCK_NB) = 0       [much later]

file comes up. In the xterm screen:
File opened by another process
--------------
If I disable NFS locking, things work as expected. 4.0X machines
work just fine. Any help would be appreciated.

Thanks




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: vi hangs
  2002-02-06  0:26 vi hangs Scott Horton
@ 2002-02-18 19:52 ` Thomas Buettner
  2002-02-19 18:23 ` M.J. Rutter
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Buettner @ 2002-02-18 19:52 UTC (permalink / raw)


I have nearly the same problem on a mixed 5.1/5.1A Environment but without
automount facilities.

First answer from Compaq Support was to check if the FQDN of the machines
have been set. Sometimes there were

timing-problems in mixed Version-Environments and in some cases i should fix
this by setting a FQDN.

I din't tested this so far, but maybe it's a hint for you (But I didn't
really believe it ;-)



Greetings

Tom



"Scott Horton" <scotthorton7@home.com> schrieb im Newsbeitrag
news:3C5FD02B.F9F8E29C@home.com...
> I have installed (from scratch) a few V5.1 and V5.1a machines.
> Each of these machines has the same following problem:
> When NFS mounting a filesystem (automount,autofs,hard)
> from a NettApp, vi'ing an existing file hangs. The file data
> eventually comes up in the xterm...about 10 minutes later.
>
> trace produces the following:
> .
> .
> dup (6) = 7        [hang point]
> flock (6,LOCK_SH|LOCK_NB) = 0       [much later]
>
> file comes up. In the xterm screen:
> File opened by another process
> --------------
> If I disable NFS locking, things work as expected. 4.0X machines
> work just fine. Any help would be appreciated.
>
> Thanks
>
>




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: vi hangs
  2002-02-06  0:26 vi hangs Scott Horton
  2002-02-18 19:52 ` Thomas Buettner
@ 2002-02-19 18:23 ` M.J. Rutter
  1 sibling, 0 replies; 3+ messages in thread
From: M.J. Rutter @ 2002-02-19 18:23 UTC (permalink / raw)


In article <3C5FD02B.F9F8E29C@home.com>,
Scott Horton  <scotthorton7@home.com> wrote:
>I have installed (from scratch) a few V5.1 and V5.1a machines.
>Each of these machines has the same following problem:
>When NFS mounting a filesystem (automount,autofs,hard)
>from a NettApp, vi'ing an existing file hangs. The file data
>eventually comes up in the xterm...about 10 minutes later.
>
>trace produces the following:
>.
>.
>dup (6) = 7        [hang point]
>flock (6,LOCK_SH|LOCK_NB) = 0       [much later]
>
>file comes up. In the xterm screen:
>File opened by another process
>--------------
>If I disable NFS locking, things work as expected. 4.0X machines
>work just fine. Any help would be appreciated.

A partial answer is that with 4.0X flock locks locally only, and
lockf/fcntl (which vi does not use) attempt to lock across NFS.
With 5.X, flock also attempts to lock across NFS. Hence the difference
in behaviour between 4.0X and 5.X (which is actually admitted to in
the flock man page).

As for what is broken with your NFS locking arrangements, it could
be almost anything...

-- 
MJR


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-02-19 18:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-06  0:26 vi hangs Scott Horton
2002-02-18 19:52 ` Thomas Buettner
2002-02-19 18:23 ` M.J. Rutter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox