public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan@linuxholdings.co.za>
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	[thread overview]
Message-ID: <200611151844.16284.alan@linuxholdings.co.za> (raw)
In-Reply-To: <455B3D27.7030702@net-xero.net>

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



  parent reply	other threads:[~2006-11-15 16:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-15 16:15 [gentoo-user] Install Gentoo on one machine, then move the drive to another Jon M
2006-11-15 16:28 ` Geistteufel
2006-11-15 16:44 ` Alan McKinnon [this message]
2006-11-15 23:00   ` Mark M
2006-11-16 13:25     ` Alan McKinnon
2006-11-16 14:30       ` Mark M
2006-11-16 14:45         ` Jon M
2006-11-16 14:51           ` Geistteufel
2006-11-16 15:04             ` Jon M
2006-11-16 15:10               ` Mark M
2006-11-16 15:18                 ` Jon M
2006-11-16 16:00                   ` Mark M
2006-11-16 18:07                   ` Richard Fish
2006-11-16 15:17               ` Geistteufel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200611151844.16284.alan@linuxholdings.co.za \
    --to=alan@linuxholdings.co.za \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox