View previous topic :: View next topic |
Author |
Message |
Solak n00b
Joined: 22 Aug 2007 Posts: 18 Location: Poland
|
Posted: Thu Oct 04, 2007 11:56 pm Post subject: Howto clone complete system? [solved] |
|
|
Hello
I have a little problem. I don't need exact solutions (however it would be nice ) but every bit of help and guidance counts. (I underlined the main points )
I have to clone my system (configured gentoo + some custom applications written by me) through above thirty identical computers. What's the best method to do so?
I thought about custom livecd with .tar file with disk image and custom script, which would unpack it. Is it possible? And if so, how to do it most simple and efficient?
What's important that the method should be as quick and automated as possible. There's a lot of work with 30 computers
Thanks in advance,
Solak
Last edited by Solak on Sat Oct 06, 2007 11:47 am; edited 1 time in total |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Fri Oct 05, 2007 1:46 am Post subject: |
|
|
If these machines are connected in a fairly decent network (100Mbit+), you could just install Gentoo on a central server that allows netboot for all other machines. Cloning systems that many times is not without issues, as once the copy is done, you have to manage / update each and every machine on its own. Imagine there is a configuration error in your original copy and you have to correct the error 30 times, once for every clone... If there is no network, Live CD / external hard disk and running a clone script of your own creation on every machine is probably your only option. Manual labor... |
|
Back to top |
|
|
niceness Tux's lil' helper
Joined: 02 May 2006 Posts: 86 Location: NS, Serbia
|
Posted: Fri Oct 05, 2007 12:46 pm Post subject: |
|
|
I agree with frostschutz, netboot would be a good solution. But if it is not an option, you could use something like udpcast to copy the image to all machines. Of course, the machines need to be networked |
|
Back to top |
|
|
Solak n00b
Joined: 22 Aug 2007 Posts: 18 Location: Poland
|
Posted: Fri Oct 05, 2007 6:18 pm Post subject: |
|
|
Thanks, but netboot is not an option. Those machines has to be working on their own.
I'm thinking about custom livedvd build with catalyst. On the disc i would place an image of the disk and a script, which would unpack it. How can I make an image, that will be sufficient to boot? I mean, image, which will include MBR and every partition. A bit-by-bit clone of disk. What's the best way to do so? |
|
Back to top |
|
|
duckz Apprentice
Joined: 26 Jun 2007 Posts: 158
|
|
Back to top |
|
|
niceness Tux's lil' helper
Joined: 02 May 2006 Posts: 86 Location: NS, Serbia
|
Posted: Fri Oct 05, 2007 6:49 pm Post subject: |
|
|
Just use dd. |
|
Back to top |
|
|
Solak n00b
Joined: 22 Aug 2007 Posts: 18 Location: Poland
|
Posted: Sat Oct 06, 2007 11:47 am Post subject: |
|
|
dd is what i was looking for.
Simple yet powerful unix tools is what I really like |
|
Back to top |
|
|
Mr. Tao Tux's lil' helper
Joined: 20 Jul 2007 Posts: 147
|
Posted: Wed Feb 20, 2008 12:26 pm Post subject: How do I replicate installed machine? |
|
|
I have here several machines with similiar configuration and I'd like to replicate Gentoo instalation I've made on one of them. I tared partition, excluding /dev /proc and /sys and untared to another machine. But it doesn't work as expected.- device nodes are not recreated automaticaly
- when I recreated them manualy, replicated machine boots with read only root, so many init scripts just don't start.
Now I have almost not working copy of original installation. What am I doing wrong? Why it doesn't work similiar way like stage3 install does? |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Wed Feb 20, 2008 12:38 pm Post subject: |
|
|
You can use a Stage 4 or a Stage 5 to backup your installation. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
|
Back to top |
|
|
Mr. Tao Tux's lil' helper
Joined: 20 Jul 2007 Posts: 147
|
Posted: Wed Feb 20, 2008 1:25 pm Post subject: |
|
|
Thank you! This looks like what I need. I'll try it and post back with update. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Wed Feb 20, 2008 5:22 pm Post subject: |
|
|
no problem |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Wed Feb 20, 2008 5:42 pm Post subject: |
|
|
merged above six posts here. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
Mr. Tao Tux's lil' helper
Joined: 20 Jul 2007 Posts: 147
|
Posted: Wed Feb 20, 2008 6:12 pm Post subject: |
|
|
After few attempts, I'm stuck. No matter how I try, my box keeps booting with RO rootfs |
|
Back to top |
|
|
|