We have 2 server one is old server like 4 year old other one is just brought both the hardware is similar, on the old server we using centos 4.5 last 1900days old server is not rebooted.
Now we want to make clone without reboot old server (oldserver = serverone)all production data is there on serverone with that we wanted to clone.
We had work around like as follow:-
SERVERONE as root
tar cfl /boot /tmp/boot.tar
tar cfl /(root) /tmp/root.tar
tar cfl /data /tmp/data.tar
SERVERTWO as rescue mode using 1st cd of centos
fdisk -l /dev/sda
creating new partition
/dev/sda1 * /boot 300MB (same as serverone)
/dev/sda2 <swap> 2G
/dev/sda3 /
fdisk -l /dev/sdb
creating new paration
/dev/sdb1 /data
mkfs.ext3 /dev/sda1
mkfs.ext3 /dev/sda3
mksf.ext3 /dev/sdb1
mkswap /dev/sdb2
From SERVERTWO
cd /dev/sda1
scp root@serverone:/tmp/boot.tar .
cd /dev/sda3
scp root@serverone:/tmp/root.tar .
cd /dev/sdb1
scp root@serverone:/tmp/data.tar .
cd /dev/sda1
tar xf boot.tar
cd /dev/sda3
tar xf root.tar
cd /dev/sdb1
tar xf data.tar
chroot /mnt/root
grub-install
please help me if you any suggestion for above work around or any tools which make .iso of live and we can use on servertwo.