From owner-freebsd-fs@FreeBSD.ORG Wed Apr 3 23:56:54 2013 Return-Path: Delivered-To: freebsd-fs@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 7319D783 for ; Wed, 3 Apr 2013 23:56:54 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 3A5C6934 for ; Wed, 3 Apr 2013 23:56:53 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqIEAEfAXFGDaFvO/2dsb2JhbABDDoMvgyS9QoEidIIfAQEBAwEBAQEgKyALBRYYAgINGQIpAQkmBggHBAEcBIdtBgyuDZJFgSOMPwUCfDQHgi2BEwOULYI+gR+PbIJMWyAyfQgXHg X-IronPort-AV: E=Sophos;i="4.87,404,1363147200"; d="scan'208";a="22338503" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu.net.uoguelph.ca with ESMTP; 03 Apr 2013 19:56:47 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 1E28CB3F13; Wed, 3 Apr 2013 19:56:47 -0400 (EDT) Date: Wed, 3 Apr 2013 19:56:47 -0400 (EDT) From: Rick Macklem To: Graham Allan Message-ID: <238802714.483457.1365033407086.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <515B84E8.2090202@physics.umn.edu> Subject: Re: zfs home directories best practice MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - IE8 (Win)/6.0.10_GA_2692) Cc: freebsd-fs@freebsd.org 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: Wed, 03 Apr 2013 23:56:54 -0000 Graham Allan wrote: > We're building a new NFS home directory server on FreeBSD with ZFS. > The > Solaris ZFS Best Practices docs say to create a separate filesystem > for > each user home directory. My instinct is to ask "Are you serious???". > My > gut feeling isn't entirely logical but the idea of getting 1000+ lines > of output from a simple "df" just feels wrong... > > Can anyone comment about how well this approach actually works, > specifically on FreeBSD? (we're running 9.1) Obviously it has some > nice > features, such as quota controls, snapshots directly available to > users > within their home, etc, but it leaves me concerned. I chatted with > some > neighbors who have a larger, Solaris-based shop, and they said that > with > 10,000 user home filesystems, their server could take an hour to boot > (at least using the default startup scripts). They reverted to having > one big shared filesystem for all, but would like to revisit the > per-user approach with fewer users per server. > > Ours wouldn't be so large, but we could easily have around 1000 user > filesystems. I haven't tested yet what effect that would have on boot > time, though hope to test it over the next week. Perhaps it implies > other resource usage besides the boot time issue (is there any limit > to > number of filesystems mounted or NFS-exported?). I wonder if anyone > here > has built a system along these lines and has experiences to share. > Well, there isn't any limit to the # of exported file systems afaik, but updating a large /etc/exports file takes quite a bit of time and when you use mountd (the default) for this, you can have problems. (You either have a period of time when no client can get response from the server or a period of time when I/O fails because the file system isn't re-exported yet.) If you choose this approach, you should look seriously at using nfse (on sourceforge) instead of mountd. You might also want to contact Garrett Wollman w.r.t. the NFS server patch(es) and setup he is using, since he has been working through performance issues (relatively successfully now, as I understand) for a fairly large NFS/ZFS server. You should be able to find a thread discussing this on freebsd-fs or freebsd-current. rick > Thanks for any comments, > > Graham > -- > ------------------------------------------------------------------------- > Graham Allan > School of Physics and Astronomy - University of Minnesota > ------------------------------------------------------------------------- > _______________________________________________ > 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"