Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jun 2008 22:38:57 +0300
From:      Alexander Motin <mav@FreeBSD.org>
To:        Brad Mettee <bmettee@pchotshots.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: clone a drive, no raid involved
Message-ID:  <485AB5D1.50004@FreeBSD.org>
In-Reply-To: <1213903395.00086544.1213891805@10.7.7.3>
References:  <1213903395.00086544.1213891805@10.7.7.3>

next in thread | previous in thread | raw e-mail | index | archive | help
Brad Mettee wrote:
> I'm setting up a pair of machines with almost identical OS config, and 
> completely identical hardware. One is a primary DNS server, the other is 
> secondary. NS1 will also serve web, NS2 will be a mail server. Both are 
> low volume/loads.
> 
> It looks like I can use DD to copy an entire drive, but it's a 500G 
> drive and that's going to take a really long time (especially since it's 
> brand new with no data besides base OS).
> 
> My question: Is there a better way to duplicate a drive including boot 
> info?

Partition second drive (I usually prefer sysinstall which also installs 
loaders), mount it and use dump/restore:

cd /mnt
dump -aLf - -C32 / | restore -rf -

-- 
Alexander Motin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?485AB5D1.50004>