From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GkO3a-0000VI-QV for garchives@archives.gentoo.org; Wed, 15 Nov 2006 16:56:15 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kAFGqPlA027335; Wed, 15 Nov 2006 16:52:25 GMT Received: from cranium.sybase.co.za (sqlprd.sybase.co.za [192.96.139.1]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kAFGm6kM009325 for ; Wed, 15 Nov 2006 16:48:07 GMT Received: from localhost (cranium.sybase.co.za [127.0.0.1]) by cranium.sybase.co.za (Postfix) with ESMTP id CC71B8342F for ; Wed, 15 Nov 2006 18:51:46 +0200 (SAST) X-Virus-Scanned: amavisd-new at sybase.co.za Received: from cranium.sybase.co.za ([127.0.0.1]) by localhost (cranium.sybase.co.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MABvzZtoZP7s for ; Wed, 15 Nov 2006 18:51:41 +0200 (SAST) Received: from bard.sybase.co.za (bard.sybase.co.za [192.168.2.6]) by cranium.sybase.co.za (Postfix) with ESMTP id EE5C183442 for ; Wed, 15 Nov 2006 18:51:40 +0200 (SAST) Received: from [192.168.2.130] ([192.168.2.130]) by bard.sybase.co.za with Microsoft SMTPSVC(6.0.3790.1830); Wed, 15 Nov 2006 18:49:56 +0200 From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Install Gentoo on one machine, then move the drive to another Date: Wed, 15 Nov 2006 18:44:16 +0200 User-Agent: KMail/1.9.5 References: <455B3D27.7030702@net-xero.net> In-Reply-To: <455B3D27.7030702@net-xero.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611151844.16284.alan@linuxholdings.co.za> X-OriginalArrivalTime: 15 Nov 2006 16:49:56.0591 (UTC) FILETIME=[14A7BFF0:01C708D6] X-Archives-Salt: 810a5c4f-849e-46a1-b373-332b5627d440 X-Archives-Hash: 9b25799402a9fa41549f9e449b44f597 On Wednesday 15 November 2006 18:15, Jon M wrote: > Hey again everyone, > > Here is my situation: > > I have CentOS running on a system in a datacenter, but want to switch > to Gentoo. Basically what I've started to do is installed Gentoo on > a P4 3.0Ghz machine at home, and plan on moving it to a Pentium D > 2.66Ghz. Now if I configure/compile/install all my software on the > P4, and the kernel is configured for all the hardware in the other > machine, will it magically work, or will it freak out? My other > concern is that maybe the applications won't be optimized for the > other machine. If this is the case, once it's down there, could I > simply emerge all of my programs one at a time? > > My reason for doing this is to minimize downtime. I didn't want to > take the server offline for a week while I take my time configuring a > new setup. This way it should only be down for maybe 5 minutes while > I do a hard drive swap. > > Thanks in advance for anyones thoughts on this. The one thing you *have* to do is configure the kernel on the compiling machine for the correct hardware that the date center machine has. There's no magic involved, when you boot into the new machine the driver for it's hardware is either there or it isn't. You probably also want to set your CFLAGS to the lowest common denominator cpu - I don't recall off-hand what a Pentium D is, but I imagine the setting will be -march=pentium4. This will avoid the problem of code being compiled with cpu settings that are not present on the target system. And don't worry too much about optimization. We have a word for that - it's called ricing and it's not a good thing. Compile the apps with sane settings and stuff works. Trying to eke out those last 4 cpu cycles just ain't worth the effort... If you need better performance, buy more RAM or faster disks alan -- gentoo-user@gentoo.org mailing list