Re: [CentOS] How to clone CentOS server ?

2009-08-27 Thread mcclnx mcc
anyone used this one and can say experience:

http://clonezilla.org/



--- 09/8/26 (三),Alexander Dalloz ad+li...@uni-x.org 寫道:

 寄件者: Alexander Dalloz ad+li...@uni-x.org
 主旨: Re: [CentOS] How to clone CentOS server ?
 收件者: CentOS mailing list centos@centos.org
 日期: 2009年8月26日,三,上午7:05
 
  Hello,
 
  I'd like to clone existing CentOS server. Can anybody
  recommend any working solution to achieve that ?
 
 
  Regards
  Przemyslaw Bak (przemol)
 
 http://clonezilla.org/
 
 Alexander
 
 
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 

___ 
 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! 
 http://messenger.yahoo.com.tw/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to clone CentOS server ?

2009-08-27 Thread Christoph Maser
Am Donnerstag, den 27.08.2009, 14:59 +0200 schrieb mcclnx mcc:
 anyone used this one and can say experience:

 http://clonezilla.org/


I tried it 4 or 5 times. Always failed...


financial.com AG

Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | 
Germany
Frankfurt branch office/Niederlassung Frankfurt: Messeturm | 
Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany
Management board/Vorstand: Dr. Steffen Boehnert (CEO/Vorsitzender) | Dr. Alexis 
Eisenhofer | Dr. Yann Samson | Matthias Wiederwach
Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender)
Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID 
number/St.Nr.: DE205 370 553
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to clone CentOS server ?

2009-08-27 Thread Les Mikesell
mcclnx mcc wrote:
 anyone used this one and can say experience:
 
 http://clonezilla.org/

It works great under the following conditions:

The target hardware is identical - or at least the same type disk controller.

The target drive is at least as large as the source.

You don't have software raid or LVM spanning drives.

-- 
  Les Mikesell
lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] How to clone CentOS server ?

2009-08-26 Thread przemolicc

Hello,

I'd like to clone existing CentOS server. Can anybody
recommend any working solution to achieve that ?


Regards
Przemyslaw Bak (przemol)
--
http://przemol.blogspot.com/





























--
Wygraj nawigacje GPS! 14 sztuk czeka.
Sprawdz  http://link.interia.pl/f22f3


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to clone CentOS server ?

2009-08-26 Thread Alexander Dalloz

 Hello,

 I'd like to clone existing CentOS server. Can anybody
 recommend any working solution to achieve that ?


 Regards
 Przemyslaw Bak (przemol)

http://clonezilla.org/

Alexander



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to clone CentOS server ?

2009-08-26 Thread Simon Banton
At 12:43 +0200 26/8/09, przemol...@poczta.fm wrote:
Hello,

I'd like to clone existing CentOS server. Can anybody
recommend any working solution to achieve that ?

I've used the dd + netcat + live CD technique with success in the past eg:

http://alma.ch/blogs/bahut/2005/02/wonders-of-dd-and-netcat-cloning-os.html

Cheers
Simon
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to clone CentOS server ?

2009-08-26 Thread Hakan Koseoglu
2009/8/26  przemol...@poczta.fm:

 Hello,

 I'd like to clone existing CentOS server. Can anybody
 recommend any working solution to achieve that ?
I have had success with Mondo.
There are some issues with OCFS2 and some Dell storage, otherwise it
worked with quite complicated hardware RAID schemes.
-- 
Hakan (m1fcj) - http://www.hititgunesi.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to clone CentOS server ?

2009-08-26 Thread Michael Kress
przemol...@poczta.fm wrote:
 I'd like to clone existing CentOS server. Can anybody
 recommend any working solution to achieve that ?

1) virsh shutdown vmxx
2) cp /etc/libvirt/qemu/vmxx /etc/libvirt/qemu/vmyy
3) cp old image file new image file
4) perl -pi -w -e 's/old image file/new image file/g;' /etc/libvirt/qemu/vmyy
5) adjust new name in /etc/libvirt/qemu/vmyy
6) reload libvirtd
7) virsh start vmxx
   virsh start vmyy

HTH
Regards
Michael

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to clone CentOS server ?

2009-08-26 Thread R-Elists

 
 Don't know if that is really true ... Anyway:
 Install a minimal system and then rsync everything over.
 
 Kai
 
 --
 Kai Schätzl, Berlin, Germany

Kai

for list purposes, would you consider sharing a script that shows what to
sync and what *not* to sync

:-)

 - rh

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to clone CentOS server ?

2009-08-26 Thread Johnny Hughes
R-Elists wrote:
 Don't know if that is really true ... Anyway:
 Install a minimal system and then rsync everything over.

 Kai

 --
 Kai Schätzl, Berlin, Germany
 
 Kai
 
 for list purposes, would you consider sharing a script that shows what to
 sync and what *not* to sync
 
 :-)

I usually sync everything except /dev, /sys, /proc

However, you will also need to edit /etc/fstab and /boot/grub/grub.conf
if the disk configurations are different.

You also might need to edit /etc/hosts and /etc/sysconfig/network and
/etc/sysconfig/network-scripts/ifcfg-eth* to change IP addresses.





signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to clone CentOS server ?

2009-08-26 Thread Timo Schoeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

thus Michael Kress spake:
| przemol...@poczta.fm wrote:
| I'd like to clone existing CentOS server. Can anybody
| recommend any working solution to achieve that ?
|
| 1) virsh shutdown vmxx
| 2) cp /etc/libvirt/qemu/vmxx /etc/libvirt/qemu/vmyy
| 3) cp old image file new image file
| 4) perl -pi -w -e 's/old image file/new image file/g;'
/etc/libvirt/qemu/vmyy
| 5) adjust new name in /etc/libvirt/qemu/vmyy
| 6) reload libvirtd
| 7) virsh start vmxx
|virsh start vmyy
|
| HTH
| Regards
| Michael

Hm... Using Xen or OpenVZ it is similarly easy to clone a maschine, even
without having to shut down things. However, I have the feeling that the
thread starter has a physical machine to clone? ;)

Timo
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org

iD8DBQFKlTxsfg746kcGBOwRAp0BAJ9cqYS5JRlnIXyAqGDOVYRiJ9mdxACgscK+
9Hah7kxWDwNX1YCjbhN7ioE=
=M8d0
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to clone CentOS server ?

2009-08-26 Thread Timo Schoeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

thus Johnny Hughes spake:
| R-Elists wrote:
| Don't know if that is really true ... Anyway:
| Install a minimal system and then rsync everything over.
|
| Kai
|
| --
| Kai Schätzl, Berlin, Germany
| Kai
|
| for list purposes, would you consider sharing a script that shows what to
| sync and what *not* to sync
|
| :-)
|
| I usually sync everything except /dev, /sys, /proc
|
| However, you will also need to edit /etc/fstab and /boot/grub/grub.conf
| if the disk configurations are different.
|
| You also might need to edit /etc/hosts and /etc/sysconfig/network and
| /etc/sysconfig/network-scripts/ifcfg-eth* to change IP addresses.

Don't forget /etc/ssh/...

Timo

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org

iD8DBQFKlUvtfg746kcGBOwRAmd1AJ0VREalgLkCqqfd3e8r2gfVe/im/wCeK4y5
Zc/TwCMtIz9dOZQ+Kahj320=
=bues
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to clone CentOS server ?

2009-08-26 Thread Les Mikesell
Ivan Varbanov wrote:

  
   Hello,
  
   I'd like to clone existing CentOS server. Can anybody
   recommend any working solution to achieve that ?
  

 http://clonezilla.org/

 It will not work if the drives are in raid

If you have RAID1, you can just pull one of the mirror drives, move it to a new 
box, and let both systems rebuild to new partners.

Clonezilla is probably the fastest way to copy non-raid disks (lvm works if it 
is on a single drive) because it knows enough about most filesystems to only 
copy the used blocks.  It also lets you use a network share (nfs/smb/sshfs) for 
intermediate storage of compressed images so you don't have to connect the 
source and target drives to the same system or access them at the same time. 
The 
target disk has to be the same size or larger and you will have some extra work 
to do if the target hardware needs different disk drivers.

-- 
   Les Mikesell
lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to clone CentOS server ?

2009-08-26 Thread Kai Schaetzl
Johnny Hughes wrote on Wed, 26 Aug 2009 09:42:58 -0500:

 
 However, you will also need to edit /etc/fstab and /boot/grub/grub.conf
 if the disk configurations are different.

or update before the sync and then leave out /boot as well.


Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to clone CentOS server ?

2009-08-26 Thread Kai Schaetzl
Johnny Hughes wrote on Wed, 26 Aug 2009 09:42:58 -0500:

 
 However, you will also need to edit /etc/fstab and /boot/grub/grub.conf
 if the disk configurations are different.

or update before the sync and then leave out /boot as well.


Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos