[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Tue Feb 3 15:47:09 2004 -->
- <!--x-from-r13: Dboreg.Z.Vneevf ng eqyt.arg (Dboreg Z. Vneevf) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] RAID and an existing partition? -->
- <li><em>date</em>: Tue Feb 3 15:47:09 2004</li>
- <li><em>from</em>: Robert.L.Harris at rdlg.net (Robert L. Harris)</li>
- <li><em>in-reply-to</em>: <<a href="msg00069.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00069.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] RAID and an existing partition?</li>
The easy way is roughly this:
sfdisk -d /dev/hda | sfdisk -d /dev/hdb
(duplicate the partition structure)
sfdisk --no-reread --force -c /dev/hdb 1 fd
mdadm --create /dev/md1 -l 1 -n 2 /dev/hdb2 missing
mkfs -t ext3 /dev/md1
mount /dev/md1 /tmp/mnt
rsync -avx /data /tmp/mnt (or whatever the second partition is)
umount /tmp/mnt
If the partition is unmountable (not / or /usr) then
umount /dev/hda2
mount /dev/md1 /data
verify content.
If it's good:
modify /etc/fstab to use /dev/md1
mdadm -a /dev/md1 /dev/hda1
If it's not unmountable:
modify /etc/fstab to use /dev/md1
reboot
If it's good:
mdadm -a /dev/md1 /dev/hda1
You can do the root filesystem also but it can be a bit more convoluted
but it's very similar to the second option.
Thus spake John Cole (JohnC at LGEFCU.org):
> Howdy all!
>
> I'm looking at creating a software raid array from 2 60GB drives using Linux
> on 2.4 kernel.
> One 60GB drive already has data on it that I want to mirror. The other
> 60GB drive has data I want to overwrite.
>
> 1) I'm assuming I need to repartition/reformat the second drive?
> 2) Will there be any problems with the data on the first drive?
> (theoretically it should keep all my data and just copy it to drive 2,
> right?).
>
> btw, I've never setup a RAID with an existing system, only newly built
> systems.
>
> Thanks,
> John Cole, TICSA
>
> Network Administrator / Security
> Lockheed Georgia Employees' Federal Credit Union
> 430 Commerce Park Drive
> Marietta, GA 30060
> (770) 424-0060
> (800) 541-8921
> Disclaimer: The information contained in this email is proprietary and
> confidential. It is intended solely for the use of the person identified
> and intended as the recipient. This document is forwarded to you in such a
> form (E-mail) that LGEFCU cannot guarantee the completeness and/or
> correctness of its contents and information. If you have received this
> E-mail message in error, please notify us immediately. Please also delete
> this document from your computer. This document may not be reproduced,
> copied, distributed, published, modified, or furnished to third parties,
> without the prior written consent of LGEFCU. LGEFCU specifically disclaims
> any responsibility or liability for any personal information or opinions of
> the author expressed in this email.
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
:wq!
---------------------------------------------------------------------------
Robert L. Harris | GPG Key ID: E344DA3B
@ x-hkp://pgp.mit.edu
DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.
Life is not a destination, it's a journey.
Microsoft produces 15 car pileups on the highway.
Don't stop traffic to stand and gawk at the tragedy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00069" href="msg00069.html">[ale] RAID and an existing partition?</a></strong>
<ul><li><em>From:</em> JohnC at LGEFCU.org (John Cole)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00070.html">[ale] Converting size with Gimp</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00072.html">[ale] DVD burning software?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00069.html">[ale] RAID and an existing partition?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00070.html">[ale] Converting size with Gimp</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00071"><strong>Date</strong></a></li>
<li><a href="threads.html#00071"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>