LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mirror HD (https://www.linuxquestions.org/questions/linux-newbie-8/mirror-hd-843777/)

jbouwer 11-11-2010 06:55 PM

Mirror HD
 
Hello

How to mirror an additional hard drive in Red Hat?

Thanks

JB

dougp25 11-11-2010 07:25 PM

Quote:

Originally Posted by jbouwer (Post 4156290)
Hello

How to mirror an additional hard drive in Red Hat?

Thanks

JB

Are you saying you are adding a second hard drive and want RAID 1 (mirroring) or you want to add a second hard drive and create a bit-for-bit copy of the 1st hard drive on it?

carlosinfl 11-11-2010 08:25 PM

First create a raid array but use 'dmesg' to verify you device id's because it could be completely different than mine below. Just adjust the command below to fit your specific machine. The command below also assumes you don't already have a /dev/md0:

Code:

mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1
Then you'll need to format this partition:

Code:

mkfs.ext3 /dev/md0
Then you can create a mount point and mount the mirror there:

Code:

mkdir /mirror
mount /dev/md0 /mirror



All times are GMT -5. The time now is 03:00 PM.