LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-24-2009, 12:09 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,674

Rep: Reputation: 47
Setup server identically to another one


Another thing I'm working on is setting up another server exactly how our current one is, but to keep it as a backup. Are there any certain things I should look at on the server so I know how to load this new one as an exact duplicate?
 
Old 08-24-2009, 12:13 PM   #2
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 355

Rep: Reputation: 43
I'm assuming RHEL from your profile info. After an install there should be a file in root's home called anaconda-ks.cfg. That will allow you to duplicate that config (only as installed) , using kickstart on the next box. If you want an exact clone, look at clonezilla.
 
Old 08-24-2009, 12:15 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,674

Original Poster
Rep: Reputation: 47
Yes, Red Hat, sorry about that! I'll take a look at the file and also check out Clonezilla. thanks!
 
Old 08-24-2009, 01:43 PM   #4
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,674

Original Poster
Rep: Reputation: 47
I do have one question looking at the anaconda-ks.cfg file though. How do I tell if LVM was used when configuring the hard drives based on that file? I'm doing the GUI install on my second server, and am at the partitioning screen, but I dont know how to proceed.
 
Old 08-24-2009, 01:57 PM   #5
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 355

Rep: Reputation: 43
You'll see something like this:

Code:
#clearpart --linux --drives=sda,sdb
#part /boot --fstype ext3 --size=100 --ondisk=sda
#part pv.4 --size=0 --grow --ondisk=sdb
#part pv.3 --size=0 --grow --ondisk=sda
#volgroup backup --pesize=32768 pv.4
#volgroup sys --pesize=32768 pv.3
#logvol /tmp --fstype ext3 --name=tmp --vgname=sys --size=96
#logvol / --fstype ext3 --name=root --vgname=sys --size=512
#logvol /var --fstype ext3 --name=var --vgname=sys --size=1024
#logvol swap --fstype swap --name=swp --vgname=sys --size=512
#logvol /usr --fstype ext3 --name=usr --vgname=sys --size=5824
#logvol /backup --fstype ext3 --name=backup --vgname=backup --size=2016
#logvol /home --fstype ext3 --name=home --vgname=sys --size=96
pv = physical volume
volgroup = volume group
logvol = logical volume

You'll need to uncomment those to let it automatically duplicate that partition scheme during the kickstart process on the next box.
 
Old 08-24-2009, 01:59 PM   #6
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,674

Original Poster
Rep: Reputation: 47
Code:
#clearpart --all
#part /boot --fstype ext3 --size=125 --ondisk=sda --asprimary
#part /var --fstype ext3 --size=6150 --ondisk=sda
#part /usr --fstype ext3 --size=6150 --ondisk=sda
#part /tmp --fstype ext3 --size=4095 --ondisk=sda
#part /home --fstype ext3 --size=4095 --ondisk=sda
#part / --fstype ext3 --size=3083 --ondisk=sda --asprimary
#part swap --size=2047 --ondisk=sda
#part /data2 --fstype ext3 --size=100 --grow --ondisk=sdc
#part /data1 --fstype ext3 --size=100 --grow --ondisk=sdb
#part /opt --fstype ext3 --size=1 --grow --ondisk=sda
Here's what mine looks like. so i'm thinking I don't have any LVM going on here since they all just start with "part"?
 
Old 08-24-2009, 02:05 PM   #7
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Here is a link you might find helpful for using kickstart:

http://www.redhat.com/docs/manuals/e...art2-file.html

Regards,

Fordeck
 
Old 08-24-2009, 02:07 PM   #8
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,674

Original Poster
Rep: Reputation: 47
That's pretty cool, thanks. I might have to save that for when I feel like i've graduated out of the newbie forum LOL.
 
Old 08-24-2009, 02:09 PM   #9
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 355

Rep: Reputation: 43
So you're manually installing now, but using the kickstart file as a guide?
 
Old 08-24-2009, 02:12 PM   #10
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,674

Original Poster
Rep: Reputation: 47
Yeah, that's what I was thinking of doing. Figured it would be easier for me to learn that way. I can try to get fancy once i'm comfortable with what i'm doing. or at least that's the plan ;-)
 
Old 08-24-2009, 02:12 PM   #11
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,674

Original Poster
Rep: Reputation: 47
and i think based on that part i posted earlier, i'm not using LVM. right?
 
Old 08-24-2009, 02:14 PM   #12
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 355

Rep: Reputation: 43
You're correct
 
Old 08-24-2009, 02:23 PM   #13
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,674

Original Poster
Rep: Reputation: 47
cool, thanks. I'm going to kill that "default" layout and try to make it like the one in that cfg file. I appreciate all the help.
 
  


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
Firewall Setup (IPTABLES) on a Virtual Server in a LVS Setup justemail Linux - Networking 1 06-24-2009 01:00 AM
Differing network performance for identically connected hosts Sam1984 Linux - Networking 5 11-15-2008 08:49 PM
How might I Setup Home Web Server plus File Server plus Printer Sharing brindamo Linux - Server 3 01-14-2008 01:48 AM
dimm ddr1 NON identically paired memory jens General 4 04-15-2007 07:20 AM


All times are GMT -5. The time now is 12:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration