LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-24-2004, 10:24 AM   #1
stillontheedge
LQ Newbie
 
Registered: May 2004
Distribution: Debian
Posts: 5

Rep: Reputation: 0
Creating a test environment - server mirroring


OK - First off, I am fairly new to Linux in particular and Debian in particular, so calling me a newbie won't hurt my feelings.

I have "inherited" a system of 3 servers, all running Debian Woody. I am trying to create a setup of 3 old PCs in my office to allow me to test results of actions without impacting live servers.

My question is this: What is the easiest way to make my 3 old PCs have the same programs and such as the 3 servers? Is there a way to not have to see every program installed on the server and then install it on the old PC?

Many thanks in advance for any assistance.

(If asking for specific details on anything, please provide instructions as to how to get the information. As I said above, newbie is an understatement.)
 
Old 05-24-2004, 10:38 AM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
whats the old ones? the 3pc's or the 3servers? if i get you right, you would like to include the old ones to your net and test their behavior?
 
Old 05-24-2004, 10:55 AM   #3
stillontheedge
LQ Newbie
 
Registered: May 2004
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
My aim is this:

3 servers running with customer data (that can't afford to be down for any length of time), call this the "prod" (production) environment.

3 "old" PCs in my office set up exactly the same as the 3 servers, that I can screw up without affecting customer data, as a "test" environment. So if I decided to upgrade PHP, I can run it in test to see if it screws anything up before I implement it in the "prod" environment.
 
Old 05-24-2004, 11:02 AM   #4
stillontheedge
LQ Newbie
 
Registered: May 2004
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
The goal is to copy the "prod" (live) environment to the "test" environment.
 
Old 05-24-2004, 11:08 AM   #5
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
ok. and the 3 test boxes should have the same environment as the prod ones?

copy the partitons (maybe without data) from the prodserver to a harddisk. make necessary changes (network,.) build a kernel for the old machine (since other hardware).put hd in old machine. boot.

worked for me. (debian woody&sarge)
 
Old 05-24-2004, 11:16 AM   #6
stillontheedge
LQ Newbie
 
Registered: May 2004
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
Ah, sorry. Forgot to mention other small problem. Servers are at a remote location. I can't go there to install any hardware, and the servers can't be offline for more than about 2 minutes before we start getting customer complaints.
 
Old 05-24-2004, 11:29 AM   #7
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
have you a fast connection to the prod? then install a minimum/necessery system at the ones you have and copy the rest over. if that can't be done you'll have to set up systems like the other ones. there are tools to set up many systems the same way. but i've never used one of them, so i can't help you here.
 
Old 05-24-2004, 11:33 AM   #8
stillontheedge
LQ Newbie
 
Registered: May 2004
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
I have cable internet and full access to the "prod" machines, so copying files won't be a problem.

What is the minimum I need installed, and what files shouldn't I copy over to avoid messing up the "test" systems drivers?
 
Old 05-24-2004, 04:05 PM   #9
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
have you running debian on the other systems and the same version at the old boxes?
install the plain debian on the old box. i think you will have to set up apache or mysql or whateveryouneed and the modules (php,perl,..) the same way as on the other side. be sure to have the same versions, but little difference do not always hurt.
if that's all on the system you have to copy the proddata to the machines.

tar -cf - /thefiles/youwant | ssh prod.machine tar -xf - -C /thefiles/here

"rsync" or "r(s)cp" are other possibilities. now configure and when your sure it's all done reboot.

sl mritch
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Server mirroring ? rsync Bluesuperman Linux - Networking 3 04-25-2006 10:12 PM
mirroring a whole server ginger.fish0 Fedora 3 08-22-2005 12:58 PM
Net boot in test environment. Kanon Linux - Newbie 2 02-27-2005 10:19 AM
creating a good test environment ddaas Linux - General 1 01-05-2005 12:11 PM
Creating a Server in a LAN Environment Nukem Linux - General 3 11-06-2004 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration