LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2010, 07:55 PM   #1
jbouwer
LQ Newbie
 
Registered: Nov 2010
Location: Elora, Ontario
Posts: 1

Rep: Reputation: 0
Mirror HD


Hello

How to mirror an additional hard drive in Red Hat?

Thanks

JB
 
Old 11-11-2010, 08:25 PM   #2
dougp25
Member
 
Registered: Dec 2003
Location: Seacoast NH
Distribution: PCLinuxOS
Posts: 37

Rep: Reputation: 2
Quote:
Originally Posted by jbouwer View Post
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?
 
Old 11-11-2010, 09:25 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problems with Debootstrap and apt-mirror-based Debian mirror lil_drummaboy Debian 3 06-22-2010 07:12 PM
apt-mirror doesn't create appropriate mirror ??? abd_bela Debian 1 09-30-2009 05:23 PM
LXer: How To Create A Local Debian/Ubuntu Mirror With apt-mirror LXer Syndicated Linux News 0 01-04-2007 06:33 PM
mirror BRAHmS Linux - General 1 05-08-2004 08:31 PM
How to Mirror HD? sikandar Linux - Software 4 08-25-2003 12:16 PM


All times are GMT -5. The time now is 08:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration