From owner-freebsd-stable@FreeBSD.ORG Wed Dec 7 21:29:50 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 584B316A422; Wed, 7 Dec 2005 21:29:50 +0000 (GMT) (envelope-from stephen@math.missouri.edu) Received: from math.missouri.edu (math.missouri.edu [128.206.49.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D5BC43E1C; Wed, 7 Dec 2005 21:29:23 +0000 (GMT) (envelope-from stephen@math.missouri.edu) Received: from [128.206.49.166] (cauchy.math.missouri.edu [128.206.49.166]) by math.missouri.edu (8.12.11/8.12.11) with ESMTP id jB7LTAlS036591; Wed, 7 Dec 2005 15:29:10 -0600 (CST) (envelope-from stephen@math.missouri.edu) Message-ID: <43975426.9050809@math.missouri.edu> Date: Wed, 07 Dec 2005 15:29:10 -0600 From: Stephen Montgomery-Smith Organization: University of Missouri User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051205 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jack Raats References: <002701c5fb72$ee18bf90$9700000a@jarasoft.net> In-Reply-To: <002701c5fb72$ee18bf90$9700000a@jarasoft.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-100.0 required=4.0 tests=USER_IN_WHITELIST autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on math.missouri.edu X-Virus-Scanned: clamd / ClamAV version 0.71, clamav-milter version 0.71 X-Virus-Status: Clean Cc: FreeBSD Stable , freebsd-questions@freebsd.org Subject: Re: Copying kernel and OS X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 21:29:50 -0000 Jack Raats wrote: > I've two machines running FreeBSD 6.0-STABLE. > One very fast machine and one very very slow machine. On the fast > machine I can compile a new kernel and OS very quickly and easily. > Is it possible to transfer the compile world and kernel to the slow > machine. If yes whart directories etc... do i have to transfer. > > Jack I do something like this. I build on the fast machine, and then use NFS to allow the slow machine to access /usr/src and /usr/obj. I have found that it is important to preserve the names of the directories, so that they are also called /usr/src and /usr/obj on the slow machine. Then I just do mergemaster, make installworld, make installkernel (in the appropriate order) on the slow machine, and it works like a charm. The entries in fstab are like this: hub2:/usr/obj /usr/obj nfs rw,bg,noauto 0 0 hub2:/usr/src /usr/src nfs rw,bg,noauto 0 0 where hub2 is the name of the fast machine. In /etc/exports on hub2 I have something like this /usr -maproot=root -alldirs -network 10.0.0.0 -mask 255.255.255.0 (here 10.0.0.0 is the IP addresses of my LAN) and in /etc/rc.conf on hub2 I have some lines like nfs_server_enable="YES" rpcbind_enable="YES" Then on the slow machine I simply type mount /usr/src mount /usr/obj -- Stephen Montgomery-Smith stephen@math.missouri.edu http://www.math.missouri.edu/~stephen