Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Theory or functional?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Thu Mar 01, 2012 10:26 pm    Post subject: Theory or functional? Reply with quote

I've been playing around with an idea and I'm not qualified to know if it is a functional thought.

First idea/question.

If I have a Dell PowerEdge server and setup Gentoo on it with all the software for my needs, what would I need to do to copy it to a duplicate Dell machine? It seems that I should be able to just "zip" it up and "unzip" it to the new machine but would that be possible? Or do I need to set up a basic Gentoo system first and then copy the "guts" over?

Second idea/question.

If the two servers are not the same make and model, what would you need to do?

My basic analogy is that Gentoo is the frame, drivetrain and engine (hardware) of the car and that the software is the shell, seats, radio and features of the car. I'm thinking that with that logic, you could copy the features from Gentoo and just stick it onto new hardware without a problem. Copying USR, VAR and ETC (and whatever I don't know) onto a new machine, should dup the system.

The idea is to make a duplicate server from my server, in case the inevitable happens (crash, boom, bang). What am I messed up on or am I correct in my logic?
Back to top
View user's profile Send private message
invasivenorman
n00b
n00b


Joined: 06 Feb 2012
Posts: 28
Location: ::1

PostPosted: Thu Mar 01, 2012 10:49 pm    Post subject: Reply with quote

You would need to make sure your kernel supports all of the hardware you need on both machines*.
You would need to make sure that whatever you were using to "zip and unzip" supported all of the necessary metadata (schg, suid, acls, hardlinks, symlinks, whatnot). dump(1) is the old reliable method, but I've not used it under Linux. tar(1) would probably work for most circumstances (hard links? I dunno).
You probably want different ssh keys & hostnames (& ip addresses) on the different machines, if you're going to run them at the same time.

Also, what's up with the big letters?


* edit: make sure your CFLAGS= && CXXFLAGS= setting is compatible with the cpus on both machines too (eg don't use -march=native if they don't support the exact same instruction set)
_________________
gurgle


Last edited by invasivenorman on Thu Mar 01, 2012 10:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Thu Mar 01, 2012 10:51 pm    Post subject: Reply with quote

I suggest you to read firstly [Howto] Creation of a Stage 5 archive
and then HOWTO: Easily make a full system backup (stage4).
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54312
Location: 56N 3W

PostPosted: Thu Mar 01, 2012 11:17 pm    Post subject: Reply with quote

CurtE,

For *identical* hardware you will need to reinstall grub to the MBr and change the hostname. Optioally, if you use a static network setup, change the IP address too.

As its a server, if you set it up in raid1, you can move one of the drives to the other machine, so each has one installed drive and one blank drive and allow both machines to rebuild the mirror set.
You will still need to do the above.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
CurtE
Guru
Guru


Joined: 17 Apr 2004
Posts: 364
Location: Minneapolis, MN

PostPosted: Fri Mar 02, 2012 12:37 am    Post subject: Reply with quote

LOL. First, big letters, thought it would be easier to see. I'm getting old.

Part of what was going through my mind was the idea of mass creation of servers for others. Obviously, I would have to change host name and other specific names for the servers after they were "cloned" but it would save a lot of time in the long run if you had a lot of servers (or even desktops) to do. I had created for my last job, a modified Ubuntu install DVD and thought maybe there was an easier way to get the majority of the stuff preset in Gentoo.

I'm still in the theory stage of backing up my system, so I'll be looking into this closer. Thanks for the answers.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54312
Location: 56N 3W

PostPosted: Fri Mar 02, 2012 1:21 am    Post subject: Reply with quote

CurtE,

You can make a BINHOST, with binary packages of the things you need, including your custom config files, then write a script to install Gentoo from the BINHOST over the network.
You might even like to PXE boot your install targets.

If you need to install many idetical boxes at the same time, distcc is a nice tool. Set up one box as a master and BINHOST, have all the boxes doing builds.
This approach is called a build farm or compile farm.

Both systems are documented on the gentoo website.

If all you need is a backup, google stage4.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Fri Mar 02, 2012 3:42 pm    Post subject: Reply with quote

CurtE wrote:

Part of what was going through my mind was the idea of mass creation of servers for others...
I'm still in the theory stage of backing up my system, so I'll be looking into this closer.

I would look at Clonezilla SE (server edition) for mass creation of servers. It can clone many computers simultaneously, in just 10 minutes (even remotely). Or use Clonezilla live edition for one computer. Clonezila is really great.
Quote:
LOL. First, big letters, thought it would be easier to see. I'm getting old.

I would try Ctrl++ to make text bigger, instead of changing font size. So you can see all text are bigger, not only the one you wrote.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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