From owner-freebsd-questions@FreeBSD.ORG Tue Dec 16 15:06:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E0A61065670 for ; Tue, 16 Dec 2008 15:06:58 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4C2A18FC18 for ; Tue, 16 Dec 2008 15:06:56 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id mBGF6jAA061613; Tue, 16 Dec 2008 16:06:45 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id mBGF6j1L061610; Tue, 16 Dec 2008 16:06:45 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 16 Dec 2008 16:06:45 +0100 (CET) From: Wojciech Puchar To: Bernard Dugas In-Reply-To: <4947B50B.7010802@dugas-family.org> Message-ID: <20081216160327.N61449@wojtek.tensor.gdynia.pl> References: <20081216094719.EDCEE1065675@hub.freebsd.org> <49478749.2030200@dugas-family.org> <20081216123057.M61117@wojtek.tensor.gdynia.pl> <4947B50B.7010802@dugas-family.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Optimising pxeboot disk size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 15:06:58 -0000 >> it's simple: > > More simple when you tell it ;-) Thanks a lot, i will try it tonight ! it doesn't have chance - must work :) > >> I wish it's helpful, doing this doesn't just save space but saves time - >> you have to upgrade software once. > > So preserving consistency, which is the most important when you have lot of > diskless stations ! exactly. i'm using just NetBSD 1.5 (uses LITTLE memory) + Xserver, so there are almost no updates, but anyway - it's stored once. >> you may like to make /etc-common directory and put most of files there, and >> symlinks in each station's /etc > > In fact, it makes me think that we miss a concept in mount, or at least i > don't know it currently : > imagine a -tl (TransparentLayer) option for mount, allowing to mount multiple > source to the same directory, for instance /etc : there is already such think - mount_unionfs but i don't use it. if you mount over some directory - it's original contents (like my /etc/rc doing exec /systemrc) gets hidden. > > mount -r yournfsserver:/basic/etc /etc > mount -tl -r yournfsserver:/TypeX/etc /etc > mount -tl -r yournfsserver:/StationY/etc /etc mount_unionfs but i don't know how stable it is. > When you want to change something, you add a rw TransparentLayer : > mount -tl yournfsserver:/StationYchanges/etc /etc > > So that changed or added files are only stored in this rw partition, thus > very small and easy to manage. > > This would be a kind of partition inheritance, like in object languages... > Dreams are allowed :-) try mount_unionfs