LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mirroring entire Hard drive (https://www.linuxquestions.org/questions/linux-general-1/mirroring-entire-hard-drive-46869/)

guanyu 02-24-2003 02:51 AM

Mirroring entire Hard drive
 
Guys,
I just bought another identical hard drive. All I want to do is mirror entire(all partitions). What should I do? I have read some configuration about mirroring.
Thanks guy.

nakkaya 02-24-2003 03:29 AM

using raid can be option
http://www.acnc.com/04_00.html

tudmuf2b 02-24-2003 03:26 PM

If you want do a one-shot mirroring, then use "dd". If not, then use raidtools that comes on 8.0 CD which is raidtools-1.00.2-3.3.i386.rpm

You'll have to play around with the /etc/raidtab, but it's pretty easy to do

guanyu 02-24-2003 08:19 PM

Thanks I will try it out

MasterC 02-25-2003 04:13 AM

I didn't check the links, nor have I used raidtools, but you could just cp it all. Assuming you've fdisk'ed the new drive up into the size partitions you want, you can cp the files onto the new partitions. Here's Aussie's tutorial on it:
http://www.p-two.net/modules.php?op=...article&sid=12

:)

Cool

cuckoopint 02-25-2003 07:40 PM

depends on what you want to do, and different solutions have already been posted. so, you should clarify the purpose. if you:

want to copy (eg. ghost) the whole drive, there's cp, dump, dd, etc

want to mirror HD (just in case one fails), use raid

want to keep a backup - lot of software out there. (easiest would be a crontab with dump, tar & full / interval backups)

etc.

guanyu 03-03-2003 09:11 PM

cuckoopint,
I wanna to mirror a hdd just in case hard drive failed. But How am I going to mirror exactly the partitions to my hdd. Thanks

cuckoopint 03-04-2003 08:39 PM

http://www.ostenfeld.dk/~jakob/Softw...AID.HOWTO.html

maybe this will help. I have never done a RAID setup... but there is a wealth of documentation out there.


All times are GMT -5. The time now is 11:38 PM.