From owner-freebsd-fs@FreeBSD.ORG Thu Dec 20 22:34:34 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7682AFA3 for ; Thu, 20 Dec 2012 22:34:34 +0000 (UTC) (envelope-from tjg@soe.ucsc.edu) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by mx1.freebsd.org (Postfix) with ESMTP id 3E1438FC14 for ; Thu, 20 Dec 2012 22:34:34 +0000 (UTC) Received: by mail-pa0-f44.google.com with SMTP id hz11so2386441pad.31 for ; Thu, 20 Dec 2012 14:34:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsc.edu; s=ucsc-google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=YlPKoQBZ3HNJ9R5uZBuBt3YTyvq3S/9nhKUhw5wgzZg=; b=KPHULQ7Cmf4CWTbHwOiv3Olz7xpA+wNdV45zY0NhH+jPkaDdh869lE0VTDJ82IEfo7 SsCA6kFyJ1A4QFqhilqKJW2zdCCyLlPW/kh4aZR+cJLxm5EEQf0Y1lv6ESpZ5QuLorXm YyQEv4A89hoWzA58PH7qli0S8IHGGPA0gQi1c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=YlPKoQBZ3HNJ9R5uZBuBt3YTyvq3S/9nhKUhw5wgzZg=; b=dqpjVXGQ5F2jcsEMVAGuI24Ru7k/9QG3re+kEK9I1ny3YB0i8xaNqo1IuGHntiNdsd rNNf2f8Z3Z9sAMEnxX2Vz9h7x8tanNHbsPSMiDtyx2Yryf+T/swHnvzNynPKOsfMEYAF 6JJayXVeci2zDnH4NIeDgA2Acqh9wRyamfPq/KwhKydhsQV+Oy3CBqnaAh02mCfHSbAo N5CHBCNhz/gQAXHkyMrycAPoNoaFhu21yG9eJnXMVvIaWl7Xz9FT0U0ruLzbzhFPeIl+ mEk+mzIKr8cNoTFgLMoIkdUAP2/nt7NsDsXA1kec165c3fZA7T6jPO1aogwd930VdPIH CL+w== MIME-Version: 1.0 Received: by 10.66.76.6 with SMTP id g6mr31410235paw.61.1356042868523; Thu, 20 Dec 2012 14:34:28 -0800 (PST) Received: by 10.68.58.106 with HTTP; Thu, 20 Dec 2012 14:34:28 -0800 (PST) In-Reply-To: <1477482293.1529544.1356037953815.JavaMail.root@erie.cs.uoguelph.ca> References: <1477482293.1529544.1356037953815.JavaMail.root@erie.cs.uoguelph.ca> Date: Thu, 20 Dec 2012 14:34:28 -0800 Message-ID: Subject: Re: NFS Problems From: Tim Gustafson To: Rick Macklem Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQl3B9aqqRWAPHq5bxY74bfwuVpZ4M7X/cohKOZNm/9YUXlrXnIYGPPdKypbjSvkYcdP8Uzw Cc: FreeBSD Filesystems X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2012 22:34:34 -0000 > Yep. Using Kerberos for NFS is really orthogonal to NFSv4. The only > reason some people tie the two together is that the NFSv4.0 RFC required > support for RPCSEC_GSS (which is what sec=krb5 does). Although support > for AUTH_SYS wasn't required I believe all NFSv4 servers do support it > and I know it works for FreeBSD. > > Just do the mounts without sec=krb5 and you'll be using NFSv4.0 over > AUTH_SYS (which is the old uid + gid list stuff NFS has always used). Ok, I'm trying to go down this path, but I'm running into some trouble. For my test, I am using a FreeBSD file server and a FreeBSD client. On the server, in /etc/rc.conf, I have: rpcbind_enable="yes" nfs_server_enable="yes" mountd_flags="-r -l" nfsd_enable="yes" mountd_enable="yes" rpc_lockd_enable="no" rpc_statd_enable="no" nfs_server_flags="-t -n 128" nfsv4_server_enable="yes" nfsuserd_enable="yes" And in /etc/exports, I have: V4: /export -network 192.168.0.0 -mask 255.255.255.0 And then on the client, in /etc/fstab, I have: server:/ /mnt nfs rw,nfsv4,late 0 0 I can mount /mnt with no problem, but when I change into that folder and attempt to do anything, either as the superuser or as a regular user, I get: tjg@client: cd /mnt/home/tjg tjg@client: touch foo touch: foo: Input/output error I know that it is "sorta" working, because if I attempt to cd to a folder that doesn't exist on the server, I get a different error: tjg@client: ls -al /mnt/home/tjg total 0 tjg@client: ls -al /mnt/home/foo ls: /mnt/home/foo: No such file or directory I'm sure that I'm missing a basic configuration option, but I can't find it. -- Tim Gustafson tjg@soe.ucsc.edu 831-459-5354 Baskin Engineering, Room 313A