From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 26 18:18:42 2015 Return-Path: Delivered-To: freebsd-hackers@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 EC94C6CB for ; Thu, 26 Feb 2015 18:18:42 +0000 (UTC) Received: from mail-ie0-x235.google.com (mail-ie0-x235.google.com [IPv6:2607:f8b0:4001:c03::235]) (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 A5A9CE6C for ; Thu, 26 Feb 2015 18:18:42 +0000 (UTC) Received: by iecvy18 with SMTP id vy18so18795270iec.13 for ; Thu, 26 Feb 2015 10:18:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=i659Dvc7o8/g7FKI0AsRNCDYuDX8gKpaHuNo9s+u1o4=; b=a+hBPH8hKxJouIDG4282FKGZIWdjnv8jPKKhdPbba96j6y4mOVPQdQXTSMPUcPuq3G 0ldRGFTiR6LipcYoh2OEUt8qgub9gFsdWAUl+ID5quB58raI1H/acFguppAV8Ebmycmu l3yOPTDfE0YUrHhUJ1wQ837NyJit7dYRxfAQU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=i659Dvc7o8/g7FKI0AsRNCDYuDX8gKpaHuNo9s+u1o4=; b=ZhYrsRuEe7dEwMqrLcV1sbXub+oIaGr8Lht4giiTl3wxwleR5PTob7Mf0hdYvEb/z+ CoHIefHb2+zEm8cvVc5BI4CaqlcwShVlfqwdKlPXxds25BtwVgyRfmhYtKBRLzUdTBc8 UGE6mZarwsRGc4CgxRKURfaecBLYQdwEo+F6BsWLj8J4BY//Lf450OT9I6grFuWqDbX6 WtqYvkI6RI6W75r+tPmBxHtHzdfUMDrlqrXD5fZE6X1b78X8/FbsDcM+hxIbzDOPKJ6B 9fwuJk06wjelbw67Ekrf4x0wVQACX3C4iTgMhDpnpeF3c7mSnaZcQy0xxrVAVsmIYU/4 VOHA== X-Gm-Message-State: ALoCoQkT5XV7Iv87kg8XOlm0zn7+ErZax3HcQBp7rPtJSv75ThGfHJPDJNbXJMGcS0QbWrJIG/y0 X-Received: by 10.43.173.9 with SMTP id oa9mr11073629icc.13.1424974721970; Thu, 26 Feb 2015 10:18:41 -0800 (PST) Received: from [192.168.8.21] ([66.195.151.70]) by mx.google.com with ESMTPSA id d6sm803697iod.11.2015.02.26.10.18.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Feb 2015 10:18:41 -0800 (PST) Subject: Re: only the first two enteries in /etc/exports show up Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: text/plain; charset="utf8"; X-Pgp-Agent: GPGMail 2.5b5 From: Jason Hellenthal In-Reply-To: <54EF529F.5030300@freebsd.org> Date: Thu, 26 Feb 2015 12:18:39 -0600 Content-Transfer-Encoding: 8bit Message-Id: <2976DA93-DD6E-4139-A0C8-3C2587A65362@dataix.net> References: <54EF4E8E.1020801@freebsd.org> <54EF529F.5030300@freebsd.org> To: Allan Jude X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 18:18:43 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Feb 26, 2015, at 11:06, Allan Jude wrote: On 2015-02-26 11:58, Aryeh Friedman wrote: On Thu, Feb 26, 2015 at 11:49 AM, Allan Jude wrote: On 2015-02-26 11:37, Aryeh Friedman wrote: having this in /etc/exports: /data/home -maproot=root -network 10.0.10.0/24 /usr/src -maproot=root -network 10.0.10.0/24 /usr/ports -maproot=root -network 10.0.10.0/24 produces the following results: root@server:/usr/ports # showmount -e Exports list on localhost: /data/home 10.0.10.0 /usr/src 10.0.10.0 It doesn't matter what order I list them in only the first two show up in showmount Are you using NFSv3 or NFSv4? what ever the base system has 10.1 What does your partitioning layout look like? Running as a VM in bhyve Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/vtbd0p2 9637788 8583820 282948 97% / devfs 1 1 0 100% /dev /dev/vtbd1 152334812 68 140147960 0% /data When you reload mountd, does it emit any errors? (check syslog as well) No errors on the command line.... in syslog: Feb 26 06:57:27 server mountd[1299]: can't change attributes for /usr/ports: Invalid radix node head, rn: 0 0xfffff80003993100 Feb 26 06:57:27 server mountd[1299]: bad exports list line /usr/ports -maproot - -- Allan Jude You can only have 1 export per mount point in NFSv3 (in V4, you can only export the root of a mount point) So what you want in your config file is: /data/home -maproot=root -network 10.0.10.0/24 /usr/src /usr/ports -maproot=root -network 10.0.10.0/24 - -- Allan Jude As can be seen from ( man 5 exports ) examples section… http://j.mp/1AwAup6 That would lead me to believe I need to use “/usr” at the beginning of the export line since it is the root of the NFS share. Also looking at the grouping of examples might lead someone to believe that more than one “/usr/*” can be specified more than once on separate lines. Just a perspective that might need some clarification since at a quick glance could be interpreted multiple ways. - -- Jason Hellenthal Mobile: +1 (616) 953-0176 jhellenthal@DataIX.net JJH48-ARIN -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJU72OAAAoJEDLu+wRc4KcIjVIIAKW6U5z7MDK65zCqwcB1n+Zj WxyukhsSlk49weIIj8Ied/VE8CRThgHvHdWqQ6TxOAgwfi5lz/WksPbFUpOLg5WK rjNW+vr9j/2PTSWVDJaDDo/P/R2/8e47cuLRuc/YUhEL7q0FgKzl0vip0WE/zUWf Ws/XyPi8RWnMdpfoQlW/vddZwjzooCJfQZ+X1kYSba/LidzmvD6/axP1C4V8xD+v daMCBG0894IW1toJo/bBmt9p4EeDIISPVSfVFBK/ReJjMwe8Izq0cJtpUzRwWYDx f6mfXxTXwp7TdtH8aw/dx7d0BY0kFoZrbGYecV083nxEAMVfHGkxuhiho/KMvZo= =+Sx5 -----END PGP SIGNATURE-----