Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Upgrading Hardware [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
BoBoeBoe
n00b
n00b


Joined: 17 Feb 2004
Posts: 69

PostPosted: Wed Jan 10, 2007 9:02 pm    Post subject: Upgrading Hardware [solved] Reply with quote

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
View user's profile Send private message
mose
Guru
Guru


Joined: 04 Jun 2005
Posts: 313
Location: Piacenza

PostPosted: Wed Jan 10, 2007 9:16 pm    Post subject: Reply with quote

I think that the answer depends on the hardware. Which hardware are you planning to upgrade?
Back to top
View user's profile Send private message
BoBoeBoe
n00b
n00b


Joined: 17 Feb 2004
Posts: 69

PostPosted: Fri Jan 12, 2007 1:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Underdone
Apprentice
Apprentice


Joined: 22 Oct 2006
Posts: 154
Location: Albuquerque, NM

PostPosted: Fri Jan 12, 2007 2:48 am    Post subject: Reply with quote

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
View user's profile Send private message
mose
Guru
Guru


Joined: 04 Jun 2005
Posts: 313
Location: Piacenza

PostPosted: Fri Jan 12, 2007 9:38 am    Post subject: Reply with quote

If you are planning to change cpu it's better start from scratch
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Fri Jan 12, 2007 1:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
BoBoeBoe
n00b
n00b


Joined: 17 Feb 2004
Posts: 69

PostPosted: Mon Jan 15, 2007 10:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Mon Jan 15, 2007 10:23 pm    Post subject: Reply with quote

The easiest way, i think, is to copy across /var/lib/portage/world and then emerge world.
Back to top
View user's profile Send private message
halfgaar
l33t
l33t


Joined: 22 Feb 2004
Posts: 781
Location: Netherlands

PostPosted: Mon Jan 15, 2007 10:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
NewBlackDak
Guru
Guru


Joined: 02 Nov 2003
Posts: 512
Location: Utah County, UT

PostPosted: Tue Jan 16, 2007 1:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
BoBoeBoe
n00b
n00b


Joined: 17 Feb 2004
Posts: 69

PostPosted: Sat Feb 17, 2007 10:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
halfgaar
l33t
l33t


Joined: 22 Feb 2004
Posts: 781
Location: Netherlands

PostPosted: Sun Feb 18, 2007 12:16 am    Post subject: Reply with quote

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
View user's profile Send private message
fefeh
n00b
n00b


Joined: 23 Nov 2004
Posts: 43

PostPosted: Sun Feb 18, 2007 12:21 am    Post subject: Reply with quote

Code:
equery -l


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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum