Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-18-2006, 12:56 AM   #1
LQ Newbie
Registered: Oct 2003
Location: Bangkok, Thailand.
Distribution: Debian,Ubuntu
Posts: 19

Rep: Reputation: 0
Question Software Raid Question(install new disk with mdraid)

I have 2 harddisks(hda,hdc) and built them as Software RAID array(mdraid) when install FC3.

Now I found that hdc is bad and need to replace. I'm not sure, Can I just replace it with a brandnew disk then mdraid will partition and copy everything for me? or I need to prepare partition table first before replace the old one.

another question is how can I know that mdraid will copy from hda to new hdc(that what I want) or it will copy from hdc to hda.

Last edited by poj; 05-18-2006 at 01:37 AM.
Old 05-18-2006, 06:47 AM   #2
LQ Newbie
Registered: Jan 2006
Location: Hawk Run, PA
Posts: 5

Rep: Reputation: 0
removing/adding drives to arrays

Hopefully someone will help verify what I am about to say. These commands are found in the Manage mode help/man/info of the mdadm command.

- mark drive to be removed as "failed" if it is not already listed as failed
mdadm /dev/md? -f /dev/hd?
mdadm -D /dev/md? will display the info on the array, mdadm -E /dev/hd? displays pretty much the same info

- remove the failed drive
mdadm /dev/md? -r /dev/hd? removes the failed device from the array, now install the new drive

- hot add the new drive, the new drive will be synched to the drive that remained installed
mdadm /dev/md? -a /dev/hd? adds the drive

Verify the array with mdadm -E /dev/md?

I hope this helps.


Oops, I just realized that you said mdraid. The above is my guess with mdadm. Probably not much help then...

Last edited by joe4psu; 05-18-2006 at 06:57 AM.
Old 05-18-2006, 04:54 PM   #3
Registered: Oct 2004
Location: Florida
Distribution: Debian
Posts: 319

Rep: Reputation: 30
Do you have a mirrored or striped array?
Old 05-23-2006, 06:50 AM   #4
LQ Newbie
Registered: Oct 2003
Location: Bangkok, Thailand.
Distribution: Debian,Ubuntu
Posts: 19

Original Poster
Rep: Reputation: 0
thanks everyone, I try patition new disk the same as another, add partition to array by

mdadm /dev/md? -a /dev/hd?

and now it work.


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
software raid using disk druid paul_mat Fedora 0 12-13-2005 06:24 PM
Software Raid - recreate failed disk. FragInHell Red Hat 5 11-25-2004 05:32 PM
Software raid 5 always missing 1 disk after reboot birkinshawc Linux - Hardware 0 05-20-2004 11:57 PM
software raid question hondaman Linux - Software 0 05-03-2004 11:27 PM
Software Raid Setup Ok - Reboot fails on disk failure test ikke Linux - General 2 05-11-2003 07:42 PM > Forums > Linux Forums > Linux - Software

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

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