From owner-freebsd-questions Thu Nov 22 1:24:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f148.law10.hotmail.com [64.4.15.148]) by hub.freebsd.org (Postfix) with ESMTP id 855DE37B418 for ; Thu, 22 Nov 2001 01:24:47 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 22 Nov 2001 01:24:47 -0800 Received: from 194.128.74.5 by lw10fd.law10.hotmail.msn.com with HTTP; Thu, 22 Nov 2001 09:24:46 GMT X-Originating-IP: [194.128.74.5] From: "Graham Lillico" To: mwm@mired.org Cc: questions@freebsd.org Subject: Re: Filesystem Sizes Date: Thu, 22 Nov 2001 09:24:46 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 22 Nov 2001 09:24:47.0258 (UTC) FILETIME=[873FB7A0:01C17337] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG What i was originally thinking was to put /usr/src, /usr/obj, & /usr/ports on seperate filesystems but I didn't know how big to make them, but your way souund better and /usr/home was going to be seperate and NFS mounted from the fileserver anyway. All platforms are either FreeBSD or Windows, there is a Linux Firewall but thats getting replaced by FreeBSD as soon as I can get my head around ipfilter properly. The main idea was to allow say the fileserver to do the buildworld as you said and then the other systems to just do the installworld. I assume that in your setup that /ports/distfiles would also be a link to /share/distfiles, as not every system will contain the same ports as the other systems, or would the fileserver have to do 'make package' first on ports that were to be installed on other systems. So being that I have one 20Gb disk and two 40Gb disks what sort of filesystem layout would you reccomend? They are all IDE and I could just about stretch to another 40Gb disk at a push. Any help will definitely be appreciated, as this seems to be getting more complicated by the minute. Yes I definitely agree that this need documenting, setting up a fileserver to do src, ports, home dir's is a pain. Perhaps I'll consider writing somethig once I get this thing sorted. Graham >From: Mike Meyer >To: "Graham Lillico" >CC: questions@freebsd.org >Subject: Re: Filesystem Sizes >Date: Wed, 21 Nov 2001 15:03:28 -0600 > >Graham Lillico types: > > So what i'm now thinking is to have the 80Gb filesystem (2x40Gb Hardware > > raid) mounted as /usr on the fileserver and then nfs export /usr/ports, > > /usr/src, and /usr/obj to the other FreeBSD systems, then on the 20Gb >disc > > that contains the system have about 10Gb exported as /usr/home. > > > > Does this sounds like a good plan? Or am I letting myself in for some > > problems? > >Well, it seems like an aweful lot of space for /usr. There are three >potential problems: 1) All three directories will have to be exported >with the same permissions; 2) If you wind up running different >platforms, you'll have to build ports/system for them differently; 3) >Installing a port on one system will make the other systems thing it's >not installed. > >Personally, I'd do it this way: > >1 drive: / >1 drive: /share >1 drive: /home > >20GB should be enough space for any of those, unless you're planning >on doing something very strange. If you're using IDE, / and /share >need to be on different controllers. Putting /home on a third >controller won't hurt. > >/share is exported r/w to the world. /usr/obj is symlinked to >/share/obj. /usr/src and /usr/ports are on /, exported r/o. > >This lets you make buildworld on the system with local disk, and make >installworld on other systems that mount /usr/src and /shar and have >the /usr/obj symlink. Putting /usr/obj and /usr/src on different >disks/controllers improves buildworld performance more than putting >them on vinum. You can do the same for kernels if you set > > KERNCONF=BUILDKERNEL OTHERSYSTEM THIRDSYSTEM > >in /etc/make.conf. All the kernels will be built by make buildkernel, >and the first one on the line will be installed by make installkernel. > >In /etc/make.conf, you have DISTDIR=/share/distfiles, >WRKDIRPEFIX=/usr/ports-build, and PACKAGES=/share/packages. > >This lets systems share distfiles that have been downloaded and the >/usr/ports tree, and avoids the problems of conflicting builds. If you >want to distribute a port to multiple system, do "make package" after >you've installed it, and the other systems will get the the package >from /share/packages. > >One of these days, I have to write all this stuff up formally. > > -- >Mike Meyer http://www.mired.org/home/mwm/ >Q: How do you make the gods laugh? A: Tell them your plans. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message