Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp511729pxb; Fri, 22 Apr 2022 05:59:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpqddk/NFGc3UEYpZU/4mfmjM/39EngCcsoppp7veoPFxEqihCeercBFLjzevC3a/hkmgd X-Received: by 2002:a17:906:a219:b0:6e4:86a3:44ea with SMTP id r25-20020a170906a21900b006e486a344eamr4145591ejy.385.1650632342911; Fri, 22 Apr 2022 05:59:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650632342; cv=none; d=google.com; s=arc-20160816; b=Gzfa4vYfTZaATBTbkuj3ghYxF6NB7QBJa5LbsX1iBB3ApEXQkkw9OL03Y/yp25K21N 3kli9Ii/7hVkjm966rUjx8XXwUfxTqpoMqIFBRWdezd9QYn/ywrB8MbuY2+fFBZxFAcI /VUwA1+CtQ6tPeDvuoOGUIYcOpD1noCkhEjABvwJv+0It/Du5gut8ufFyr4vuMCnu3m0 TYb6FfKSqqFt0p/yTW+d5fe18Cy2AcTSvovwRUzyeXxg57aES5xolTBZwQIVV8xnSw2J fskRyLArk5Elrg+/b0A49Mt1w/Skm1IXbDIfj7UpfHVg9BysolTN41ncROhDtJyqHWf8 aL5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-filter; bh=8rjCESDZ1zhQpxH517VEatEoglorD2vDbqPTvIg7oqw=; b=WlB7qGKPDRb/604ve1vSeKoZEZBnER2D2W77W5LumLw1JXvd2+Wi6QbYQjhY/ADcz+ J3tc+d0u0kBChUo1HAwaju/iR1Y8FTN9NPk5KEyxk31+UXk97GbjarVU0hadx/1Zs36A WSuYjlF1NjTGt+GoBPceC7otJmIZDIP/SGZjDnnIguBwuVlFDU1jrLDXdFfaNBIBJIvC ZW/BdWbZ+kKQR3vHKWptKs42IzmZNjX3Zy5Bka9xMOMMzjR1k4rxFu2rBU9MVkEFRItg bPKo0r6CYMM5y1I2/MOv53ypDkddkt+k2evZ12pjFMYgpX91wtZCETvZB7rmpinhxPT0 UczQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=pSGEutMs; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m20-20020a1709061ed400b006efd8262985si6000295ejj.228.2022.04.22.05.58.24; Fri, 22 Apr 2022 05:59:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=pSGEutMs; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391600AbiDUS5R (ORCPT + 99 others); Thu, 21 Apr 2022 14:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1391612AbiDUS5P (ORCPT ); Thu, 21 Apr 2022 14:57:15 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB9AA4C434 for ; Thu, 21 Apr 2022 11:54:23 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 2AB1368B1; Thu, 21 Apr 2022 14:54:23 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 2AB1368B1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1650567263; bh=8rjCESDZ1zhQpxH517VEatEoglorD2vDbqPTvIg7oqw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pSGEutMs+qZQsvqfD1j5jWmZF+GNjz4Rdlrlcoc01/ecYG4bTOI+Nu35acV3MzO4/ MVxpCYvTH9kvuWQmJn1s4mhjDYS2HR+mBz6EMGw41JP0Mfl/1z/uBhZA2wyP5HJSOb LWQtglwi6JpkQq4y7L4CjL/nNq0voGd2gC5JYmt8= Date: Thu, 21 Apr 2022 14:54:23 -0400 From: "J. Bruce Fields" To: "crispyduck@outlook.at" Cc: Chuck Lever III , Linux NFS Mailing List Subject: Re: Problems with NFS4.1 on ESXi Message-ID: <20220421185423.GD18620@fieldses.org> References: <4D814D23-58D6-4EF0-A689-D6DD44CB2D56@oracle.com> <20220421164049.GB18620@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220421164049.GB18620@fieldses.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Apr 21, 2022 at 12:40:49PM -0400, bfields wrote: > On Thu, Apr 21, 2022 at 03:30:19PM +0000, crispyduck@outlook.at wrote: > > Thanks. From VMWare side nobody will help here as this is not supported. They support NFS4.1, but officially only from some storage vendors. > > > > I had it running in the past on FreeBSD, where I also some problems in the beginning  (RECLAIM_COMPLETE) and Rick Macklem helped to figure out the problem and fixed it with some patches that should now be part of FreeBSD. > > > > I plan to use it with ZFS, but also tested it on ext4, with exact same behavior.  > > > > NFS3 works fine, NFS4.1 seems to work fine, except the described problems. > > > > The reason for NFS4.1 is session trunking, which gives really awesome speeds when using multiple NICs/subnets. Comparable to ISCSI. > > ANFS4.1 based storage for ESXi and other Hypervisors. > > > > The test is also done without session trunking. > > > > This needs NFS expertise, no idea where else i could ask to have a look on the traces. > > Stale filehandles aren't normal, and suggest some bug or > misconfiguration on the server side, either in NFS or the exported > filesystem. Actually, I should take that back: if one client removes files while a second client is using them, it'd be normal for applications on that second client to see ESTALE. So it might be interesting to know what actually happens when VM templates are imported. I suppose you could also try NFSv4.0 or try varying kernel versions to try to narrow down the problem. No easy ideas off the top of my head, sorry. --b. > Figuring out more than that would require more > investigation. > > --b. > > > > > Br, > > Andi > > > > > > > > > > > > > > Von: Chuck Lever III > > Gesendet: Donnerstag, 21. April 2022 16:58 > > An: Andreas Nagy > > Cc: Linux NFS Mailing List > > Betreff: Re: Problems with NFS4.1 on ESXi > >   > > Hi Andreas- > > > > > On Apr 21, 2022, at 12:55 AM, Andreas Nagy wrote: > > > > > > Hi, > > > > > > I hope this mailing list is the right place to discuss some problems with nfs4.1. > > > > Well, yes and no. This is an upstream developer mailing list, > > not really for user support. > > > > You seem to be asking about products that are currently supported, > > and I'm not sure if the Debian kernel is stock upstream 5.13 or > > something else. ZFS is not an upstream Linux filesystem and the > > ESXi NFS client is something we have little to no experience with. > > > > I recommend contacting the support desk for your products. If > > they find a specific problem with the Linux NFS server's > > implementation of the NFSv4.1 protocol, then come back here. > > > > > > > Switching from FreeBSD host as NFS server to a Proxmox environment also serving NFS I see some strange issues in combination with VMWare ESXi. > > > > > > After first thinking it works fine, I started to realize that there are problems with ESXi datastores on NFS4.1 when trying to import VMs (OVF). > > > > > > Importing ESXi OVF VM Templates fails nearly every time with a ESXi error message "postNFCData failed: Not Found". With NFS3 it is working fine. > > > > > > NFS server is running on a Proxmox host: > > > > > >  root@sepp-sto-01:~# hostnamectl > > >  Static hostname: sepp-sto-01 > > >  Icon name: computer-server > > >  Chassis: server > > >  Machine ID: 028da2386e514db19a3793d876fadf12 > > >  Boot ID: c5130c8524c64bc38994f6cdd170d9fd > > >  Operating System: Debian GNU/Linux 11 (bullseye) > > >  Kernel: Linux 5.13.19-4-pve > > >  Architecture: x86-64 > > > > > > > > > File system is ZFS, but also tried it with others and it is the same behaivour. > > > > > > > > > ESXi version 7.2U3 > > > > > > ESXi vmkernel.log: > > > 2022-04-19T17:46:38.933Z cpu0:262261)cswitch: L2Sec_EnforcePortCompliance:209: [nsx@6876 comp="nsx-esx" subcomp="vswitch"]client vmk1 requested promiscuous mode on port 0x4000010, disallowed by vswitch policy > > > 2022-04-19T17:46:40.897Z cpu10:266351 opID=936118c3)World: 12075: VC opID esxui-d6ab-f678 maps to vmkernel opID 936118c3 > > > 2022-04-19T17:46:40.897Z cpu10:266351 opID=936118c3)WARNING: NFS41: NFS41FileDoCloseFile:3128: file handle close on obj 0x4303fce02850 failed: Stale file handle > > > 2022-04-19T17:46:40.897Z cpu10:266351 opID=936118c3)WARNING: NFS41: NFS41FileOpCloseFile:3718: NFS41FileCloseFile failed: Stale file handle > > > 2022-04-19T17:46:41.164Z cpu4:266351 opID=936118c3)WARNING: NFS41: NFS41FileDoCloseFile:3128: file handle close on obj 0x4303fcdaa000 failed: Stale file handle > > > 2022-04-19T17:46:41.164Z cpu4:266351 opID=936118c3)WARNING: NFS41: NFS41FileOpCloseFile:3718: NFS41FileCloseFile failed: Stale file handle > > > 2022-04-19T17:47:25.166Z cpu18:262376)ScsiVmas: 1074: Inquiry for VPD page 00 to device mpx.vmhba32:C0:T0:L0 failed with error Not supported > > > 2022-04-19T17:47:25.167Z cpu18:262375)StorageDevice: 7059: End path evaluation for device mpx.vmhba32:C0:T0:L0 > > > 2022-04-19T17:47:30.645Z cpu4:264565 opID=9529ace7)World: 12075: VC opID esxui-6787-f694 maps to vmkernel opID 9529ace7 > > > 2022-04-19T17:47:30.645Z cpu4:264565 opID=9529ace7)VmMemXfer: vm 264565: 2465: Evicting VM with path:/vmfs/volumes/9f10677f-697882ed-0000-000000000000/test-ovf/test-ovf.vmx > > > 2022-04-19T17:47:30.645Z cpu4:264565 opID=9529ace7)VmMemXfer: 209: Creating crypto hash > > > 2022-04-19T17:47:30.645Z cpu4:264565 opID=9529ace7)VmMemXfer: vm 264565: 2479: Could not find MemXferFS region for /vmfs/volumes/9f10677f-697882ed-0000-000000000000/test-ovf/test-ovf.vmx > > > 2022-04-19T17:47:30.693Z cpu4:264565 opID=9529ace7)VmMemXfer: vm 264565: 2465: Evicting VM with path:/vmfs/volumes/9f10677f-697882ed-0000-000000000000/test-ovf/test-ovf.vmx > > > 2022-04-19T17:47:30.693Z cpu4:264565 opID=9529ace7)VmMemXfer: 209: Creating crypto hash > > > 2022-04-19T17:47:30.693Z cpu4:264565 opID=9529ace7)VmMemXfer: vm 264565: 2479: Could not find MemXferFS region for /vmfs/volumes/9f10677f-697882ed-0000-000000000000/test-ovf/test-ovf.vmx > > > > > > tcpdump taken on the esxi with filter on the nfs server ip is attached here: > > > https://easyupload.io/xvtpt1 > > > > > > I tried to analyze, but have no idea what exactly the problem is. Maybe it is some issue with the VMWare implementation? > > > Would be nice if someone with better NFS knowledge could have a look on the traces. > > > > > > Best regards, > > > cd > > > > -- > > Chuck Lever > >