Re: NFS server broken for -current

From: Harald Schmalzbauer (h_at_schmalzbauer.de)
Date: 02/17/04

  • Next message: Dag-Erling Smørgrav: "Re: buildworld fails as non-root user"
    Date: Tue, 17 Feb 2004 20:36:57 +0100
    To: Dan Nelson <dnelson@allantgroup.com>
    
    
    

    Dan Nelson schrieb:
    > In the last episode (Feb 17), Harald Schmalzbauer said:
    >
    >>Kris Kennaway schrieb:
    >>
    >>>On Tue, Feb 17, 2004 at 04:30:26AM +0100, Harald Schmalzbauer wrote:
    >>>
    >>>>some weeks ago I found that when connecting from a linux client to
    >>>>-a current NFS server the connection "locks" up. Now I have decided
    >>>>to try again and I have a new box where I can do tests. This
    >>>>problem still exists for -current from 14.Feb.
    >>>>
    >>>>I saw that systat -vm still shows disk traffic (about 7Mb/s) while
    >>>>em0 (my NIC) only reports 5 interrupts. There's no traffic on the
    >>>>wire but disk is writing? (I'm sure there's no other process which
    >>>>could cause disk usage!) Also Sys usage is reported to be 44%!
    >>>>
    >>>>Let me know how I can help. NFS really should work again asap.
    >>>
    >>>http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/56461
    >>
    >>Oh, _very_ interesting.
    >>
    >>Does only FreeBSD > 5.1 use 16-byte cookies? I have a 4.9 box which
    >>works fine with Linux and if I remember correctly 5.1 also haven't had
    >>this incompatibility.
    >
    >
    > 4.x clients don't do locking at all. Lock requests always return
    > success without checking with the server. 4.x servers do handle client
    > locks, though.
    >
    > I don't think kern/56461 should get committed; the bug is in the Linux
    > kernel, and should be fixed there. At the very least the Linux kernel
    > should reject the locking request instead of simply dropping it.
    >
    > Anyhow, none of that applies to you; it only affects a FreeBSD client
    > trying to lock a file on a Linux server. You're going the other way
    > around, right? I'd say run strace on the Linux program and find out

    You are right. Seems I didn't read carefully enough.

    > what syscall it's hanging on, and run tcpdump or tethereal to determine
    > whether it's really an NFS request that's failing.
    >
    >
    >>But what about that mystiq disk access? It's not so funny to see my
    >>3ware controler (the LED) accessing disks while no process is running
    >>(shown) which would cause it.
    >
    >
    > Swapping?
    >

    Absolutely not. Now swap in use. No running userland process. Nothing.

    And like I said this problem only occurs with past 5.1 so I don't think
    debugging the linux box would help.
    How can I find out what the FreeBSD kernel really does when it claims to
    use 44% Sys and writes to disk?
    The LED on from my 3ware controller also flashes so there _is_ data
    written (or read?) but not from NFS over the wire.

    Very strange to me

    Thanks,

    -Harry

    
    



  • Next message: Dag-Erling Smørgrav: "Re: buildworld fails as non-root user"

    Relevant Pages

    • Re: 6.1 and NFS
      ... This is becoming a show stopper for us moving forward with FreeBSD and may require us moving to a different OS (Linux or Solaris, ... Well, Solaris has the best NFS implementation out there and includes a number of subtle workarounds in their server code to reduce the number of and/or impact of problems seen doing heterogeneous networking against clients running other operating systems, but frankly, rpc.lockd isn't significantly more stable there on Solaris than on FreeBSD. ... In other words, if you plan to use NFS filesharing, you should make every effort to utilize software which functions with the classic ".lock"file mechanism rather than depending on lockf/flock/fcntl -based locking working. ... If a process wants the lock, ...
      (freebsd-questions)
    • Re: Secured Linux box for Windows access
      ... On the client side, I can automatically remove temp files, harden up ... > struggling with the Linux side and its configuration. ... it is possible to use a VPN to secure your shares as tehy go ... distribution-specific guides to security. ...
      (Security-Basics)
    • Re: 2nd Request: HP NetServer LC II and Windows XP Pro
      ... installed Linux on it. ... Setting up a Linux file server for Windows ... Client is a small church. ... >(Ben Myers) wrote: ...
      (comp.sys.hp.hardware)
    • RE: [SLE] Red Carpet
      ... Looking for best free tool /open source solution for Linux operating system ... maintain package and patch repositories. ... All of the methods listed above save the manual one, including Red Carpet, ... and some sort of client. ...
      (SuSE)
    • Re: Langsame Performance beim Lesen von einem Linuxrechner
      ... Warum greifst von einem Linux Client auf einen Linux Server via SMB ... Beim Schreiben aufs NAS ist das was anderes. ...
      (microsoft.public.de.german.windowsxp.networking)