From owner-freebsd-questions@FreeBSD.ORG Thu Dec 8 14:31:40 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B003A16A420; Thu, 8 Dec 2005 14:31:40 +0000 (GMT) (envelope-from ptroot@iaces.com) Received: from iaces.com (horton.iaces.com [204.147.87.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BAA743D9A; Thu, 8 Dec 2005 14:31:08 +0000 (GMT) (envelope-from ptroot@iaces.com) Received: from [204.147.87.125] (borg.iaces.com [204.147.87.125]) (authenticated bits=0) by iaces.com (8.13.4/8.13.3) with ESMTP id jB8EV0Ta033178 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 8 Dec 2005 08:31:01 -0600 (CST) (envelope-from ptroot@iaces.com) Message-ID: <439843A6.9080800@iaces.com> Date: Thu, 08 Dec 2005 08:31:02 -0600 From: "Paul T. Root" User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jack Raats References: <002701c5fb72$ee18bf90$9700000a@jarasoft.net> <43975426.9050809@math.missouri.edu> <005201c5fbbc$e89db440$9700000a@jarasoft.net> In-Reply-To: <005201c5fbbc$e89db440$9700000a@jarasoft.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Stephen Montgomery-Smith , FreeBSD Stable , freebsd-questions@freebsd.org Subject: Re: Copying kernel and OS 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: Thu, 08 Dec 2005 14:31:41 -0000 It should work fine. You need to preserve mod and access times as well as flags and permissions. If you are going to do this on a repeated basis, I'd look into something like cvsup or rsync, maybe even mirror, to keep the slow machines directory structures in sync rather than a cp -Rp. Paul. Jack Raats wrote: > *********************** > This message has been scanned by the InterScan for CSC-SSM and found to > be free of known security risks. > *********************** > > > Is it also possible to scp both directories to the slow machine? > > JAck > > ----- Original Message ----- From: "Stephen Montgomery-Smith" > > To: "Jack Raats" > Cc: ; "FreeBSD Stable" > > Sent: Wednesday, December 07, 2005 10:29 PM > Subject: Re: Copying kernel and OS > > >> 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 >> > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- ______ Paul T. Root / _ \ 1977 MGB / /|| \\ ||\/ || _ | || || || \ ||__// \______/