LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 12-20-2008, 05:05 AM   #1
dkalsaria
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
Question How to mirror one hdd to another hdd in linux


Dear Sir,

I have installed redhat 5 in one hdd. Now i want to mirror ( raid 1 ) running hdd with new another hdd. what is the command to do mirroring. when i had tried to do the same thing, the error occured that can not open /dev/hdc: Device or Resource busy, mdadm : create aborted.
hdc is linux installed hdd. below command used.
mdadm -C /dev/md0 --level=1 --raid-devices=2 /dev/hdc /dev/hdd
Pls help me to solve the problem.
 
Old 12-20-2008, 10:48 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Welcome to LQ!!

I am not aware of a way to create RAID arrays after one drive already has data. The normal procedure is to create the RAID, and then install SW, write, data, etc.

I can only GUESS that the error means you are running from the drive that you are trying to incorporate in the the RAID.
 
Old 12-20-2008, 10:56 PM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,557
Blog Entries: 3

Rep: Reputation: 215Reputation: 215Reputation: 215
dd if=/dev/sda of=/dev/sdb
more info http://searchenterpriselinux.techtar...244256,00.html
 
Old 12-21-2008, 05:24 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by Drakeo View Post
dd if=/dev/sda of=/dev/sdb
more info http://searchenterpriselinux.techtar...244256,00.html
I don't think that's what the question was...

Maybe it is PART of the answer---ie, once you have the same data on both drives, maybe you can tell the system to treat them as RAID-1.
 
Old 12-21-2008, 12:54 PM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,557
Blog Entries: 3

Rep: Reputation: 215Reputation: 215Reputation: 215
Quote:
Originally Posted by Drakeo View Post
dd if=/dev/sda of=/dev/sdb
more info http://searchenterpriselinux.techtar...244256,00.html
well I guess I read to fast let just make it easy how to raid.
http://tldp.org/HOWTO/Software-RAID-HOWTO.html
this gives you trouble shoot to

Last edited by Drakeo; 12-21-2008 at 12:55 PM.
 
Old 12-21-2008, 01:05 PM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You can configure Raid-1 to use a spare. By RH 5, did you mean RHEL 5?
 
  


Reply

Tags
linux, mirroring


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
Need help on mirror HDD max321 Linux - Newbie 13 07-31-2006 05:04 AM
Help with creating a HDD mirror... ctroyp Linux - Newbie 14 02-02-2006 02:13 PM
Linux Raid 1 Mirror bad on SCSI HDD. Howto fix? blkcamarozr28 Linux - Enterprise 1 10-17-2005 07:19 PM
how to make mirror image of one hdd to 2 hdd raj_1 General 1 12-02-2004 06:19 PM
How to make mirror image of linux partion to one1 HDD TO 2 HDD raj_1 Linux - General 2 11-04-2004 01:45 AM


All times are GMT -5. The time now is 09:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration