Re: Cloning FreeBSD installations

2005-07-14 Thread Marshall Pierce


On Jul 14, 2005, at 8:34, Peter wrote:


Hi all,

I've some PC with identical HW with FreeBSD 5.4. I'm looking for a  
way to

clone FreeBSD installations from one PC to another.
I've read in mailing list about script clone.sh. "The script copies  
the MBR
and  disklabel from ad0 to ad1 and then creates the file systems  
and copies
data with dump and restore. The cloned configuration file /etc/ 
rc.conf is

edited using 'sed' to update the ip address and hostname."

Have you this script or something similar? Is the possible send me  
that?


Thanks a lot,
Peter Macko



Try the Frisbee package: http://www.emulab.net/software.php3
For what you need, it should be very easy to figure out how to use  
Frisbee from the
README. Frisbee is very fast at distributing OS images (read the  
USENIX paper on it,
if you're sufficiently interested), and scales extremely well when  
sending out an

image to multiple clients at once.

-Marshall Pierce

Re: Cloning FreeBSD installations

2005-07-14 Thread Steve Quinn
Peter Macko wrote

> Hi all,
> 
> I've some PC with identical HW with FreeBSD 5.4. I'm looking for a way to
> clone FreeBSD installations from one PC to another.
> I've read in mailing list about script clone.sh. "The script copies the MBR
> and  disklabel from ad0 to ad1 and then creates the file systems and copies
> data with dump and restore. The cloned configuration file /etc/rc.conf is
> edited using 'sed' to update the ip address and hostname."
> 
> Have you this script or something similar? Is the possible send me that?
> 
> Thanks a lot,
> Peter Macko


Hi Peter

I use G4U from http://www.feyrer.de/g4u/ quite a bit for backup's and cloning
It's very easy to setup and use

If you choose to go with G4U, take note of the advantages of "Zeroing" out 
unused blocks as it
makes a HUGE difference in backup file size

I talk about this in sickening detail on this page :-)
http://www.digitalissues.co.uk/html/os/misc/partimage.html#22

I hope this helps

Namaste

Steve Quinn


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Cloning FreeBSD installations

2005-07-14 Thread lars

Peter wrote:

Hi all,

I've some PC with identical HW with FreeBSD 5.4. I'm looking for a way to
clone FreeBSD installations from one PC to another.
I've read in mailing list about script clone.sh. "The script copies the MBR
and  disklabel from ad0 to ad1 and then creates the file systems and copies
data with dump and restore. The cloned configuration file /etc/rc.conf is
edited using 'sed' to update the ip address and hostname."

Have you this script or something similar? Is the possible send me that?

Thanks a lot,
Peter Macko

You can also use ghost4unix, check www.feyrer.de/g4u
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Cloning FreeBSD installations

2005-07-14 Thread Peter
Hi all,

I've some PC with identical HW with FreeBSD 5.4. I'm looking for a way to
clone FreeBSD installations from one PC to another.
I've read in mailing list about script clone.sh. "The script copies the MBR
and  disklabel from ad0 to ad1 and then creates the file systems and copies
data with dump and restore. The cloned configuration file /etc/rc.conf is
edited using 'sed' to update the ip address and hostname."

Have you this script or something similar? Is the possible send me that?

Thanks a lot,
Peter Macko
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Cloning FreeBSD installations?

2003-10-30 Thread Malcolm Kay
On Thu, 30 Oct 2003 19:49, [EMAIL PROTECTED] wrote:
> Hi,
>
> I'm about to set up several identical machines (identical hardware
> both in terms of processor, harddisk, LAN etc.) with FreeBSD 4.9. The
> only difference between these machines is they're running under
> different IP-addresses - all the rest (kernel, software,...) should be
> identical.
>

I suggest you probably also want different host names.
I had a similar task to create clones of a machine 'phoenix00'
as machines 'phoenix01' to 'phoenix14' for which I wrote (and used)
the attached script.

The original machine had ip 192.168.3.237 and the clones were to have ip
addresses in the range 192.168.3.211 to 192.168.3.249

The original system is in partitions ad0s1a, ad0s1e, ad0s1f and ads1g with
swap on ad01b.

To use the script attach the (identical) drive to as ad1 to 'phoenix00'
and call the script (as root):-
(There is no secondary IDE port on the machines in question which might have 
been somewhat faster)
 
# ./clone.sh ip mach
where ip is the last group for the required ip and mach is the numeric part
of the clone host name 'phoenixNN'.

The script copies the MBR and disklabel from ad0 to ad1 and then creates the 
file systems and copies data with dump and restore. The cloned configuration
file /etc/rc.conf is edited using 'sed' to update the ip address and hostname.

Plug the cloned disk into the new machine (as ad0) and it should boot without 
problems (remembering to fix master/slave links on the disk).

Adapt, use and enjoy.

> In order to keep installation effort at a minimum I'm looking for a
> way to "clone" FreeBSD installations from one machine to another.
>
> To be specific:
>
> o) Is there a way to clone one machine to another one "over the net",
> i.e. by writing an image file from one machine to a server and then
> setting up the other machines from that image?
>

Probably but would need more preparatory work.

> o) Is there a way to clone FreeBSD installations by copying the entire
> FreeBSD slice to another drive (I thought about installing the
> harddisks of the other machines in the master machines and then
> copying the installtion) (Is "Knoppix" capable of doing this?)
>

I don't know Knoppix but if you have large disks any literal byte to byte 
disk copying will take quite a while. Should also be possible with dd
but if the source is mounted rw at the time the copy will not appear to be 
clean when booted in the new machine.


Malcolm Kay___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Cloning FreeBSD installations?

2003-10-30 Thread Nico Meijer
Hi ewald,

o) Is there a way to clone one machine to another one "over the net",
i.e. by writing an image file from one machine to a server and then
setting up the other machines from that image?
http://www.feyrer.de/g4u/

o) Is there a way to clone FreeBSD installations by copying the entire
FreeBSD slice to another drive (I thought about installing the
harddisks of the other machines in the master machines and then
copying the installtion) (Is "Knoppix" capable of doing this?)
If the disks are indeed identical, set up one disk the way you like; 
boot into single user mode (boot -s) and dd away (as in `dd if=/dev/ad0 
of=/dev/ad2 bs=[whatever]`).

Maybe experiment a bit with dd's block size. I've had great results with 
Maxtor DiamondMax Plus 8 40Gb disks and a blocksize of 512k. Takes about 
15 minutes.

If you're indeed running IDE disks, put both disks on their own IDE 
controller.

HTH... Nico

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Cloning FreeBSD installations?

2003-10-30 Thread a
Hi,

I'm about to set up several identical machines (identical hardware
both in terms of processor, harddisk, LAN etc.) with FreeBSD 4.9. The
only difference between these machines is they're running under
different IP-addresses - all the rest (kernel, software,...) should be
identical.

In order to keep installation effort at a minimum I'm looking for a
way to "clone" FreeBSD installations from one machine to another.

To be specific:

o) Is there a way to clone one machine to another one "over the net",
i.e. by writing an image file from one machine to a server and then
setting up the other machines from that image?

o) Is there a way to clone FreeBSD installations by copying the entire
FreeBSD slice to another drive (I thought about installing the
harddisks of the other machines in the master machines and then
copying the installtion) (Is "Knoppix" capable of doing this?)

Anybody sucessfully tried cloning installations like this?

TIA for your help,
-ewald
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"