From owner-freebsd-stable Thu Dec 14 15:20:56 2000 From owner-freebsd-stable@FreeBSD.ORG Thu Dec 14 15:20:53 2000 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from westhost15.westhost.net (westhost15.westhost.net [216.71.84.69]) by hub.freebsd.org (Postfix) with ESMTP id 9462937B402 for ; Thu, 14 Dec 2000 15:20:52 -0800 (PST) Received: from beast (h0020af68b314.ne.mediaone.net [24.91.189.27]) by westhost15.westhost.net (8.8.5/8.8.5) with SMTP id RAA15367 for ; Thu, 14 Dec 2000 17:23:21 -0600 From: "Paul A. Howes" To: Subject: RE: Buildworld Server Date: Thu, 14 Dec 2000 18:19:19 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <14905.11883.609177.594611@onceler.kciLink.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have done this many times, and this is the correct way of handling a build-server. However, I'd like to clarify a couple of things: I like to permanently export the file systems used during builds. I just feel that it's easier this way. On the server, edit your /etc/exports file and add the following lines: /usr/src -alldirs -maproot=0 * /usr/obj -alldirs -maproot=0 * /usr/ports -alldirs -maproot=0 * You will need to restart the nfs server daemon after making this change, so the file systems are exported. The "-alldirs" options exports everything from the specified point, down, in the tree. The "-maproot=0" option allows you to mount the filesystems on the remote box as root, which makes installworld run more smoothly. The "*" specifies which hosts can connect, which in this case is all of them. If you want to limit it, just list out the IP addresses or hostnames of the clients you expect to connect with. The "/usr/ports" file system is only needed if you plan to rebuild ports this way. I do it all the time, and it makes life so much easier. On the client system(s) you will need to nfs-mount these file systems. You can either go to the command line and type: mount -t nfs server:/usr/src /usr/src mount -t nfs server:/usr/obj /usr/obj mount -t nfs server:/usr/ports /usr/ports ...or to do it permanently, edit /etc/fstab and add the following three lines: server:/usr/src /usr/src nfs rw 0 2 server:/usr/obj /usr/obj nfs rw 0 2 server:/usr/ports /usr/ports nfs rw 0 2 Now, on the server you can do: make buildworld make buildkernel KERNEL=client And on the client do: make installkernel make installworld mergemaster reboot I hope this helps! -- Paul A. Howes pahowes@fair-ware.com -----Original Message----- From: owner-freebsd-stable@FreeBSD.ORG [mailto:owner-freebsd-stable@FreeBSD.ORG]On Behalf Of Vivek Khera Sent: Thursday, December 14, 2000 3:33 PM To: Ron Rosson Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Buildworld Server >>>>> "R" == Rosson writes: R> I have the NFS setup correctly it is just the order from where to start R> once the exports is done to the client machine. on the server, run make buildkernel KERNEL=whatever for the clients. on the client machine, either boot to single user and run /etc/netstart or shutdown to single user. now mount /usr/src from the remote box. mount /usr/obj from the remote box. cd /usr/src make installworld make installkernel KERNEL=whatever mergemaster reboot that should do it. make sure your boxes are connected on a fast link (ie ethernet) or your installworld will take forever ;-) -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D. Khera Communications, Inc. Internet: khera@kciLink.com Rockville, MD +1-240-453-8497 AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message