From owner-freebsd-fs@freebsd.org Sat Aug 1 11:21:26 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC71B9B01C2 for ; Sat, 1 Aug 2015 11:21:26 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 8483C18C7; Sat, 1 Aug 2015 11:21:26 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2AHAwB0q7xV/61jaINbGQEBAYNSaQaDHbkhCYFaIAqFL0oCgVoUAQEBAQEBAYEKhCQBAQEDAQEBICsgCxACAQgYAgINFgMCAicBCRURAgwHBAEcBIgNDbJDlXUBAQEHAQEBAQEdgSKKLYQ2AQEFFzQHF4JSgUMFlHmEe4RzhGuXOQImgj+BWiIxB4EHOoEEAQEB X-IronPort-AV: E=Sophos;i="5.15,591,1432612800"; d="scan'208";a="228605875" Received: from nipigon.cs.uoguelph.ca (HELO zcs1.mail.uoguelph.ca) ([131.104.99.173]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 01 Aug 2015 07:21:11 -0400 Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 0340C15F542; Sat, 1 Aug 2015 07:21:11 -0400 (EDT) Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 4ADdDVSF945a; Sat, 1 Aug 2015 07:21:10 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 8300915F55D; Sat, 1 Aug 2015 07:21:10 -0400 (EDT) X-Virus-Scanned: amavisd-new at zcs1.mail.uoguelph.ca Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id d0EfNklRCV2S; Sat, 1 Aug 2015 07:21:10 -0400 (EDT) Received: from zcs1.mail.uoguelph.ca (zcs1.mail.uoguelph.ca [172.17.95.18]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 6879215F542; Sat, 1 Aug 2015 07:21:10 -0400 (EDT) Date: Sat, 1 Aug 2015 07:21:10 -0400 (EDT) From: Rick Macklem To: lev@FreeBSD.org Cc: FreeBSD FS Message-ID: <1363497421.7238055.1438428070047.JavaMail.zimbra@uoguelph.ca> In-Reply-To: <795246861.20150801140429@serebryakov.spb.ru> References: <795246861.20150801140429@serebryakov.spb.ru> Subject: Re: NFS & ZFS: how to export whole FS hierarhy to mount it with one command on client? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.95.10] X-Mailer: Zimbra 8.0.9_GA_6191 (ZimbraWebClient - FF34 (Win)/8.0.9_GA_6191) Thread-Topic: NFS & ZFS: how to export whole FS hierarhy to mount it with one command on client? Thread-Index: 9YIBfPvqQLmueClj3iWjhTuEvg65+w== X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Aug 2015 11:21:27 -0000 Lev wrote: > Hello FreeBSD, > > I had "/usr/home" UFS exported to several hosts (all of them are FreeBSD), > and it worked as intended: remote host mounted "server:/usr/home" and got > all user home dirs. > > Now I converted "/usr/home" to ZFS and created one FS per user (so, here is > FSes "zhome/lev", "zhome/sveta", etc., on pool "zhome"). > > When client mount "server:/usr/home" now it gets all user directories, but > all of them are empty, because NFS sees every user home dir as different FS! > > How could I export all this tree in one piece now? I don't want to have > multiple NFS mounts (one per user) on each host which needs home > directories. > To mount multiple file systems as one mount, you'll need to use NFSv4. I believe you will have to have a separate export entry in the server for each of the file systems. rick > -- > Best regards, > Lev mailto:lev@FreeBSD.org > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >