From owner-freebsd-stable@FreeBSD.ORG Thu Feb 14 20:37:50 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A1AA4F86 for ; Thu, 14 Feb 2013 20:37:50 +0000 (UTC) (envelope-from januszbulik@googlemail.com) Received: from mail-qa0-f49.google.com (mail-qa0-f49.google.com [209.85.216.49]) by mx1.freebsd.org (Postfix) with ESMTP id 5DF74BF5 for ; Thu, 14 Feb 2013 20:37:50 +0000 (UTC) Received: by mail-qa0-f49.google.com with SMTP id o13so147540qaj.1 for ; Thu, 14 Feb 2013 12:37:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=pqT8i5fXCsV3g8zQmjNnbdgD7dw56YYtMV3rav+i9ps=; b=hK9K9aqPiM8+IZ71E6Fk+0I3jV1FefuZ4QymS6z3N0rAqgfUHCWLufwMGoDXssMcRr WLXGgobf6jhKL17EH7TUiVLdGFPdzqPGHZk+tzFNy5CgfNh2o/cIouQINbm4ERQyl3mf 49OHfsLEPhLX8aprUKF0xvDoVKnuZAOBMhIsYZe/LPFahzDwfxPqkELIynNb/A2Zk+ri kHW2h4KQY2OcDICYGgCAV0ID0204/Wd5Iqpiyxmi0n0x6p8bqFdtDGIXy3QOCh7Kg8Fz SrDuNyrGdMYcERl8VeVJ15VzVL7jplC2CqEtMW54JXCfY8krTyRsFUA6RCTYFF4nrBFt w82A== MIME-Version: 1.0 X-Received: by 10.224.76.198 with SMTP id d6mr1182639qak.30.1360874264677; Thu, 14 Feb 2013 12:37:44 -0800 (PST) Received: by 10.229.52.132 with HTTP; Thu, 14 Feb 2013 12:37:44 -0800 (PST) Date: Thu, 14 Feb 2013 21:37:44 +0100 Message-ID: Subject: NFS resources, how to check version From: Janusz Bulik To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 20:37:50 -0000 Hello, I set up NFSv4 server. To make sure I set vfs.nfsd.server_min_nfsvers=4. I can check its version, for example, by tcpduming and then I can see in wireshark lines like: Network File System Program Version: 4 V4 Procedure: COMPOUND.... .... is there any easier way to check its version? I see there is nfsstat -e option which shows delegs and locks. But all other ones are combined with nfsv3 I guess (On Ubuntu there are separate lines: v3 and v4) and on the client side, is it possible to check which version is exported or mounted? something like % showmount -e nfsserver Is forcing mount to use nfsv4 100% sure? (mount -t nfs -o nfsv4 ....) and btw. Is forcing mount to use -sec=krb5 (with -sec=sys:krb5:krb5i:krb5p in /etc/exports) also 100% sure? because it mounts and doesn't give ticket for nfs/nfsserver. So, I guess if -sec=krb5 is not available, it mounts with -sec=sys, right? With -sec=krb5:krb5i:krb5p in /etc/exports it doesn't mount. I am wondering if you force -o nfsv4, it wouldn't mount it like nfsv3. Happy Valentines! -- Best wishes Janusz