- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Cloning a server in RHEL 4
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2007 06:58 AM
тАО01-29-2007 06:58 AM
Geetha.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2007 01:24 PM
тАО01-29-2007 01:24 PM
SolutionYou can and there is not much too it. Although I dont know if there are tools per say.
One can just dump the file systems and restore them elsewhere using the redhat rescue cd. Or you can ghost the system.
All that is really required is to change the hostname /etc/hosts, /etc/sysconfig/network, /etc/sysconfig/network-scripts/ifcfg-eth* config files to update nodename and tcpip details and if you plan to register server with Redhat then you need to create a new systemid as registering the copied version against the original will confuse the system. This can be done by removing the /etc/sysconfig/rhn/systemid and /etc/sysconfig/rhn/up2date-uuid (this needs to be regenerated using uuidgen - copy the gen number into up2date-uuid). Note when I save remove - its best to make backups of these files first :)
The other option as opposed to copying an existing system is to setup kickstart. We can build servers with our own postbuild scripts in less than 3 minutes! This is done by copying the CD set to a system which can either be NFS/Apache Web Server or FTP server - NFS is the simplest! And building a kickstart script. Install the first cd and say linux ks=nfs:server:/nfs/path/to/RedHat and off it will go.
I believe HP if you buy it have cloning software kits - mainly for rolling out blade environments. However once you have kickstart up and had a play this is great!
If you play with virtualised systems (Eg VMWARE) then you can stop the virtual guests and just copy the image files - then go through and do what was mentioned at the beginning.
Hope this helps a bit.
Robert.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 01:11 AM
тАО01-30-2007 01:11 AM
Re: Cloning a server in RHEL 4
The kickstart option using NFS sounds great! Could you point me in the right direction for kickstart documentation/procedure, please? Thanks.
Geetha.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 02:32 AM
тАО01-30-2007 02:32 AM
Re: Cloning a server in RHEL 4
http://www.mondorescue.org
Free, doesn't do well with major hardware differences.
http://www.acronis.com
Not free, does a better job but costs more.
Norton Ghost:
Effective but no support for using it on Linux
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 02:44 AM
тАО01-30-2007 02:44 AM
Re: Cloning a server in RHEL 4
Thanks, am going to try mondo rescue.
Geetha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2007 02:29 PM
тАО01-30-2007 02:29 PM
Re: Cloning a server in RHEL 4
Take your anaconda-ks.cfg from an existing server that you want to clone. modify the ip addresses and host name info.
Copy your redhat cds to a server with nfs add a new mount point for nfs.
Modify your anaconda-js.cfg to use nfs install rather than say cdrom.
See below example anaconda kickstart script - this one installs everything pretty much and configures server with network and hostname. One could have a post install script as show to do backend stuff - we get our servers to register to Redhat automatically and handle different situations - such as hardened servers etc.:
#System language
lang en_AU
#Language modules to install
langsupport en_AU
#System keyboard
keyboard us
#System mouse
mouse
#Sytem timezone
timezone Australia/Sydney
#Root password
rootpw --iscrypted
authconfig --enableshadow --enablemd5
bootloader --location=mbr --append="rhgb quiet"
# Device Probe
deviceprobe
#Reboot after installation
#reboot - no we want to check after system is built!
text
#Install OS instead of upgrade
install
#Use NFS installation Media
nfs --server=192.168.29.10 --dir=/nfs/rhel/v4u3/ES32
#System bootloader configuration
bootloader --location=mbr --append="rhgb quiet"
#Clear the Master Boot Record
zerombr yes
#Disk partitioning information
clearpart --all --initlabel
part / --fstype ext3 --size 2048 --asprimary
part swap --fstype swap --size 1024 --asprimary
part /usr --fstype ext3 --size 8192 --asprimary
part /var --fstype ext3 --size 5120 --asprimary
part /tmp --fstype ext3 --size 5120 --asprimary
part /home --fstype ext3 --size 2048 --asprimary
#System authorization infomation
auth --useshadow --enablemd5
#Network information
network --device eth0 --bootproto static --ip 192.168.29.163 --netmask 255.255.255.0 --gateway 168.132.29.1 --nameserver 192.168.29.10,168.132.29.18 --hostname test.server.com
#Firewall configuration
firewall --enabled --port=22:tcp --port=25:tcp --port=123:udp
selinux --permissive
#XWindows configuration information
xconfig --depth=8 --resolution=1024x768 --defaultdesktop=GNOME --startxonboot --monitor="Monitor 1024x768"
#Run the Setup Agent on first boot
firstboot --enable
#Package install information
%packages --resolvedeps
@ base-x
@ gnome-desktop
@ kde-desktop
@ editors
@ engineering-and-scientific
@ graphical-internet
@ text-internet
@ office
@ sound-and-video
@ authoring-and-publishing
@ graphics
@ games
@ server-cfg
@ web-server
@ mail-server
@ smb-server
@ dns-server
@ ftp-server
@ sql-server
@ mysql
@ news-server
@ network-server
@ legacy-network-server
@ development-tools
@ x-software-development
@ gnome-software-development
@ kde-software-development
@ compat-arch-development
@ legacy-software-development
@ admin-tools
@ system-tools
@ printing
@ compat-arch-support
grub
kernel-devel
kernel
%post
#!/bin/bash
chvt 3
NFSSERVER=168.132.29.10
mkdir /nfs
mount -o ro,nolock,wsize=8192,rsize=8192 -t nfs $NFSSERVER:/data/nfs /nfs
if [ $? -ne 0 ]; then
echo "Error - Mounting of $NFSSERVER failed?"
exit 1
fi
echo "Starting Post Build Script"
ksh -x /nfs/buildserver/postbuild.sh "KICKSTART" 3 >> /root/postbuild.log 2>&1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2007 06:36 AM
тАО01-31-2007 06:36 AM
Re: Cloning a server in RHEL 4
Geetha.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2007 01:17 AM
тАО02-02-2007 01:17 AM
Re: Cloning a server in RHEL 4
for fully automating kickstarts there is a new tool by RedHat under development. It consists of two programs, cobbler and koan.
Check it out after You did (and enjoyed) the first few successful kickstart installs. It has support for RHEL, Fedora, CentOS (apparently soon even SUSE) and even knows how to control(abuse) a dhcp server and Xen configuration. It also brings along kickstart installation tracking by analysing the webserver and install logs (using a lean syslog daemon)
http://cobbler.et.redhat.com/