Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Oct 2004 20:32:27 +0200
From:      Remko Lodder <remko@elvandar.org>
To:        Matt Staroscik <matt@wrongcrowd.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How do you duplicate a drive?
Message-ID:  <415DA2BB.4010408@elvandar.org>
In-Reply-To: <6.1.2.0.2.20041001102302.0cd64560@wrongcrowd.com>
References:  <20041001171949.885F316A4F3@hub.freebsd.org> <6.1.2.0.2.20041001102302.0cd64560@wrongcrowd.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Matt Staroscik wrote:
> 
> I have a RAID mirror (2x 160GB) which I would like to back up onto a 
> spare 160GB drive.
> 
> I do not have a hot-swap caddy so I was planning on powering down the 
> system to get the backup drive in and out.
> 
> But once I have the new blank drive in, what is the best way to 
> duplicate the RAID? Ideally I would like to create a disk that could 
> boot the system (and rebuild the RAID) in case disaster strikes.
> 
> Can dd do this?
> 
> I am new to Unix disk operations... Many thanks in advance for the help.
> 

I think that dd if=/dev/<raiddisk> of=/dev/<newdisk> would work in 
duplicating the entire raid disk. I don't know if there are better ways, 
so if someone knows them, we would like to know ;)

Cheers!

-- 
Kind regards,

Remko Lodder                   |remko@elvandar.org
Reporter DSINet                |remko@dsinet.org
Projectleader Mostly-Harmless  |remko@mostly-harmless.nl
Founder Tienervaders           |remko@tienervaders.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?415DA2BB.4010408>