Re: Used of dd for mirroring of quick disk replacement across servers, and second question for bigger disks

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Used of dd for mirroring of quick disk replacement across servers, and second question for bigger disks

Ed Ahlsen-Girard-2
On Thu, Dec 10, 2009 at 7:54 PM, Daniel Ouellet <[hidden email]>
wrote:
> Hi,
>
> I am pretty sure this is not possible at all, but again, may be
> something else is available that I haven't found/think yet.
>
> Two questions I have.
>
(snip)

> 2. The second question again relate to this is I also have the needs
> to replace with bigger drives now and this is on Solaris with plenty
> of hard and symbolic links and on system that include installations
> of software at the company that run proprietary software and really do
> not provide details sadly. So far I always take care of drives that
> may be flaky by simply booting an OpenBSD live CD and use DD to mirror
> the SCSI drive in it, remove the old, put the new one in and be done
> with it. I do that to keep drive in best shape and be sure it doesn't
> crash on me. Or provide me better chance not to anyway.

> But now, I would really need to use bigger drives and dd is great fro
> identical drives, however doesn't really do a good job for different
> size obviously.

Dump and restore might be a better choice here.  You can always use dd
to get the MBR copied, edit with fdisk and disklabel to rightsize, and
then:

dump -f - /dev/sd0a | ssh target_address restore -f - /dev/sd0a

or something like that.

--

Edward Ahlsen-Girard
Ft Walton Beach, FL