Sender: |
|
Date: |
Thu, 19 Jun 2008 13:24:13 -0500 |
MIME-version: |
1.0 |
Reply-To: |
|
Content-type: |
text/plain; format=flowed; charset=ISO-8859-1 |
Subject: |
|
From: |
|
Content-transfer-encoding: |
7BIT |
In-Reply-To: |
|
Organization: |
Argonne National Laboratory |
Comments: |
|
Parts/Attachments: |
|
|
You might find this little writeup useful. It's a little dated but I can
vouch that it works.
> http://www.dell.com/downloads/global/power/1q04-hul.pdf
Samuel Halicke wrote:
> On Jun 19, 2008, at 11:50 AM, Timmy wrote:
>
>> [snip]
>>
>> So, I face a problem: How to REBUILD / CLONE sda to sdb with Linux
>> command mdadm?? :((
>>
>>
>> Timmy
>
> The "simplest" route is to just use dd(1):
>
> dd if=/dev/sda of=/dev/sdb bs=1M conv=notrunc,noerror,sync 2>&1 | tee
> /tmp/dd-errors.log
>
> This will create an exact, bootable clone, including partition tables
> and UUID. It may take a long time, and there is no progress indicator
> with dd, but it works. If there are errors, you can check the file tee
> writes. See the dd manpage for more details.
>
> Other alternatives include partimage, available here:
> http://www.partimage.org/Main_Page -- and also, the mdadm command itself
> -- the short version: set up RAID 1, partitions to Linux raid
> autodetect, put the first drive (your everyday drive) as the first in
> the set and the second as the mirror. The md driver should automatically
> rebuild the mirror for you. Just make sure you partition the disks the
> same way. There's plenty of information on the web about working with
> md/mdadm.
>
> --
> Samuel Halicke [log in to unmask]
> FNAL/CD/SF/FEF FCC/252/U
> (T): 630.840.4308 (P): 630.266.0042
|
|
|