View previous topic :: View next topic |
Author |
Message |
BoBoeBoe n00b
Joined: 17 Feb 2004 Posts: 69
|
Posted: Wed Jan 10, 2007 9:02 pm Post subject: Upgrading Hardware [solved] |
|
|
I intend to upgrade the hardware of my current Gentoo server.
Basically I intend to do nothing more than create the same configuration just on up-to-date hardware.
What would be the most convinient way to do this?
1) Rebuild the system from scratch completely optimized for the new hardware
2) Upgrade the system from the current system
If option 2 is applicable what is the most appropriate way to do this?
Last edited by BoBoeBoe on Sat Feb 17, 2007 10:49 pm; edited 1 time in total |
|
Back to top |
|
|
mose Guru
Joined: 04 Jun 2005 Posts: 313 Location: Piacenza
|
Posted: Wed Jan 10, 2007 9:16 pm Post subject: |
|
|
I think that the answer depends on the hardware. Which hardware are you planning to upgrade? |
|
Back to top |
|
|
BoBoeBoe n00b
Joined: 17 Feb 2004 Posts: 69
|
Posted: Fri Jan 12, 2007 1:05 am Post subject: |
|
|
My current Gentoo system runs on an old K6-250 MHz, so its about time to upgrade it
The new machine will be core 2 duo based and with new HD's en so on. |
|
Back to top |
|
|
Underdone Apprentice
Joined: 22 Oct 2006 Posts: 154 Location: Albuquerque, NM
|
Posted: Fri Jan 12, 2007 2:48 am Post subject: |
|
|
With how old the other computer is, I would start from scratch with gentoo. Besides with that C2D you can have you system compiled pretty quickly. |
|
Back to top |
|
|
mose Guru
Joined: 04 Jun 2005 Posts: 313 Location: Piacenza
|
Posted: Fri Jan 12, 2007 9:38 am Post subject: |
|
|
If you are planning to change cpu it's better start from scratch |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Fri Jan 12, 2007 1:54 pm Post subject: |
|
|
Yes, reinstall from scratch. You don't have to chuck away your distfiles or your portage tree tho, and can copy other stuff like /etc/hosts, your world file, use flags and so on.
I'd recommend setting up your existing server as a local portage tree and distfiles mirror. This is easy with rsync, and makes setting up new machines a lot simpler.
edit: you need ftp to serve the distfiles.
Last edited by steveL on Mon Jan 15, 2007 10:24 pm; edited 1 time in total |
|
Back to top |
|
|
BoBoeBoe n00b
Joined: 17 Feb 2004 Posts: 69
|
Posted: Mon Jan 15, 2007 10:02 pm Post subject: |
|
|
Is there a way to show which packages I installed on the old machine so I can emerge them on the new system without forgetting any of them? |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Mon Jan 15, 2007 10:23 pm Post subject: |
|
|
The easiest way, i think, is to copy across /var/lib/portage/world and then emerge world. |
|
Back to top |
|
|
halfgaar l33t
Joined: 22 Feb 2004 Posts: 781 Location: Netherlands
|
Posted: Mon Jan 15, 2007 10:33 pm Post subject: |
|
|
My opinion is somewhat different than that of the others here. I would simply transfer the existing system to a new HD, reconfigure the kernel and be done. This of course only works if the current CFLAGS are general enough, like march=i686. As your new system ages, and you updates packages, those packages will gradually be converted to the new CFLAGS. Using i686 binaries isn't going to slow things down by much.
Remember, when transferring your system, best way to do it, is offline, using a live CD. "cp -a mountpoint/[alldirs] [target]" should work fine. There are a lot of file system aspects you should be aware of when transferring your system. I recommend you read this. _________________ Linux backups the right way.
Get surround sound working. |
|
Back to top |
|
|
NewBlackDak Guru
Joined: 02 Nov 2003 Posts: 512 Location: Utah County, UT
|
Posted: Tue Jan 16, 2007 1:08 pm Post subject: |
|
|
I would rebuild on the new one. That gives you two benefits.
1. The old one is still hot while you're installing
2. You'll have a copy of your config files to look at. You could accomplish this by tarring up /etc though. _________________ Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy |
|
Back to top |
|
|
BoBoeBoe n00b
Joined: 17 Feb 2004 Posts: 69
|
Posted: Sat Feb 17, 2007 10:48 pm Post subject: |
|
|
Well I started from scratch and did the copy /usr/lib/portage/world trick which makes life fairly easy.
Make an nfs export on the old system and copied everything to the new box. Copy the relevant files from /etc and well this surely is a hell of a lot faster |
|
Back to top |
|
|
halfgaar l33t
Joined: 22 Feb 2004 Posts: 781 Location: Netherlands
|
Posted: Sun Feb 18, 2007 12:16 am Post subject: |
|
|
Quote: | Well I started from scratch and did the copy /usr/lib/portage/world trick which makes life fairly easy. |
That would be /var/bla...
Wasn't this issue discussed in a recent version of the weekly news letter? I can remember something about it saying that just copying the world file didn't cut it, and that some extra stuff needed to be done. _________________ Linux backups the right way.
Get surround sound working. |
|
Back to top |
|
|
fefeh n00b
Joined: 23 Nov 2004 Posts: 43
|
Posted: Sun Feb 18, 2007 12:21 am Post subject: |
|
|
will give a list of all your packages. You can compare the two machines that way to make sure you haven't missed anything. |
|
Back to top |
|
|
|