Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Howto clone complete system? [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Solak
n00b
n00b


Joined: 22 Aug 2007
Posts: 18
Location: Poland

PostPosted: Thu Oct 04, 2007 11:56 pm    Post subject: Howto clone complete system? [solved] Reply with quote

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
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Fri Oct 05, 2007 1:46 am    Post subject: Reply with quote

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
View user's profile Send private message
niceness
Tux's lil' helper
Tux's lil' helper


Joined: 02 May 2006
Posts: 86
Location: NS, Serbia

PostPosted: Fri Oct 05, 2007 12:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Solak
n00b
n00b


Joined: 22 Aug 2007
Posts: 18
Location: Poland

PostPosted: Fri Oct 05, 2007 6:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
duckz
Apprentice
Apprentice


Joined: 26 Jun 2007
Posts: 158

PostPosted: Fri Oct 05, 2007 6:42 pm    Post subject: Reply with quote

have u try ghost for linux?
_________________
emerge -va techygadget.com <- install my blog in gentoo
./configure anime wallpaper
make install premium drupal theme
Back to top
View user's profile Send private message
niceness
Tux's lil' helper
Tux's lil' helper


Joined: 02 May 2006
Posts: 86
Location: NS, Serbia

PostPosted: Fri Oct 05, 2007 6:49 pm    Post subject: Reply with quote

Just use dd.
Back to top
View user's profile Send private message
Solak
n00b
n00b


Joined: 22 Aug 2007
Posts: 18
Location: Poland

PostPosted: Sat Oct 06, 2007 11:47 am    Post subject: Reply with quote

dd is what i was looking for.

Simple yet powerful unix tools is what I really like :)
Back to top
View user's profile Send private message
Mr. Tao
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2007
Posts: 147

PostPosted: Wed Feb 20, 2008 12:26 pm    Post subject: How do I replicate installed machine? Reply with quote

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Feb 20, 2008 12:38 pm    Post subject: Reply with quote

You can use a Stage 4 or a Stage 5 to backup your installation.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Feb 20, 2008 12:38 pm    Post subject: Reply with quote

Stage 5 : https://forums.gentoo.org/viewtopic-t-534039-highlight-.html
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Feb 20, 2008 12:57 pm    Post subject: Reply with quote

Stage 4 : https://forums.gentoo.org/viewtopic-t-312817-highlight-stage4.html
Back to top
View user's profile Send private message
Mr. Tao
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2007
Posts: 147

PostPosted: Wed Feb 20, 2008 1:25 pm    Post subject: Reply with quote

Thank you! This looks like what I need. I'll try it and post back with update. :)
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Feb 20, 2008 5:22 pm    Post subject: Reply with quote

no problem :)
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Feb 20, 2008 5:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mr. Tao
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2007
Posts: 147

PostPosted: Wed Feb 20, 2008 6:12 pm    Post subject: Reply with quote

After few attempts, I'm stuck. No matter how I try, my box keeps booting with RO rootfs :x
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum