From owner-freebsd-fs@FreeBSD.ORG Fri Feb 13 12:25:28 2015 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A982ABFE for ; Fri, 13 Feb 2015 12:25:28 +0000 (UTC) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 296198E5 for ; Fri, 13 Feb 2015 12:25:27 +0000 (UTC) Received: by labhz20 with SMTP id hz20so15909465lab.0 for ; Fri, 13 Feb 2015 04:25:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berentweb.com; s=google; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=nvvRPcxP8D7csZf4SUxuHuCn3U26WvggmlcsXkKJzXQ=; b=H/UirSAhm7IUkt+zbRTBaLECpX8vgM5qsfrt/YjuMQmGwKuDZfDM2qqtp4envEfKoD ftU/qjOSnuxu9tgkqo/mlEf8TeagrhpHrjCJJ7WEO6WBZMrlehE/+WDZRc+rgfbVOIHf +VfZQOSGsfA78G5XP4o1e7kIlUbEFcOP/JPNk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=nvvRPcxP8D7csZf4SUxuHuCn3U26WvggmlcsXkKJzXQ=; b=SFca45QyyXl/ewgyV8nktmhdMMwenkGhAyCoirFmNhsxbMIjfcXPfg6X6W/HpVyiYc zXcZgWFFrzS7abvJKX8TGwijcinCiQ98ehVlzDeQ8ypWltNm+xhmaMdW6928Bzd/uziO ZvFMIRWuq28d7cqGXfda1C/0nCEMdPEHPF4vzwoWzCsLVTOMJknkXZGmAKIe9UKeDvBz X0ziBe9UikZweH3S/14Uay+lfWAGeddw9JnI1WNE6UR85r/Gjnoycco7crpKtMs3Hewg pXBg66vhPEZ5Nc3QIxIcawc1B4tgWcBaWU5VxJ3oLYeOjczI9FfIfs9S7SBUOH9FP8cX 4+gw== X-Gm-Message-State: ALoCoQnbPVg1hGyrPtepX3Zmn03oyxyT9OXD6qIqoKn9vRbeHY2xaJIxmMOvo1TVlTDY2w9HYa3/ X-Received: by 10.152.18.225 with SMTP id z1mr7905895lad.124.1423830319879; Fri, 13 Feb 2015 04:25:19 -0800 (PST) Received: from rsbsd.rsb ([31.200.20.192]) by mx.google.com with ESMTPSA id v5sm1349705lby.9.2015.02.13.04.25.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Feb 2015 04:25:19 -0800 (PST) Date: Fri, 13 Feb 2015 14:25:16 +0200 From: Beeblebrox To: Rick Macklem Subject: Re: Several NFS errors on diskless clients Message-ID: <20150213142516.569ecc44@rsbsd.rsb> In-Reply-To: <1233670915.2450301.1423785119612.JavaMail.root@uoguelph.ca> References: <20150212123529.013d6a84@rsbsd.rsb> <1233670915.2450301.1423785119612.JavaMail.root@uoguelph.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2015 12:25:28 -0000 Hi Rick, thanks for answering, but it seems there's a slight mis-understand= ing. * I have 3 NFS exports, mount version on client confirmed with "nfsstat -m": V2: /data/amd64, mounts to root as ro V4: /usr/local, mounts to same as ro V4: /home, mounts to same as rw * Root is being mounted as V2, not a problem for me. However, when I "ls -l= a" /home or /usr/local (the V4 mounts), I see file ownership problem (numbe= rs instead of actual user name). This is true for folders owned ANY user (r= oot, me, etc): drwxr-xr-x 106 32767 32767 date-time folder-name (always the same nu= mber 32767) * I turned on some debugging with "nfsuserd -verbose" and I can see: added uid=3D0 name=3Droot \ added gid=3D0 name=3Droot added uid=3D1001 name=3Dme \ added gid=3D1001 name=3Dme added uid=3D350 name=3D_sabnzbd \ added gid=3D350 name=3D_sabnzbd * Most Likely reason: The NFS-V2 export (client root /data/amd64 folder) is= at the same time a Jail. This probably causes "some process number in the = jail" not matching up with process number on Host, thus the failure to assi= gn proper name to file ownership. My /etc/jail.conf: pxe { name =3D pxe; path =3D /data/amd64; ip4.addr =3D 192.168.2.1; #subnet as /32 breaks tftp host.hostname =3D pxe.me; devfs_ruleset =3D 12; allow.raw_sockets; mount.devfs; mount.fstab =3D /etc/fstab.pxe; } * I start the diskless client system with below script. Any additional pxe = service (dhcp, tftp, etc) is defined in /data/amd64/etc/rc.conf. jail -c pxe rpcbind -s -h 192.168.2.1 mountd -rnl -h 192.168.2.1 nfsd -ut -n 4 -h 192.168.2.1 nfsuserd -verbose * Starting dbus/hald on client while nfsuserd is running results in: a) added gid=3D556 name=3Dmessagebus \ added gid=3D562 name=3Dpolkit b) No message about "nfs_getpages: error 13" * If I don't run nfsuserd, or if I use NFS V2/3 for the /usr/local export: a) File permissions on the non-root exports get displayed by name. b) I see the "nfs_getpages: error 13" message. * I did not try the "-maproot=3Droot" solution, because it does not address= the problem of regular users (ie me) having incorrect file ownership under= /home/me. * File ownership under /var/run is correct because it's not NFS (it's MD) I hope I was better able to explain the issue this time. Regards. --=20 FreeBSD_amd64_11-Current_RadeonKMS