LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-17-2006, 11:56 PM   #1
poj
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 12:37 AM.
 
Old 05-18-2006, 05:47 AM   #2
joe4psu
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.

Joe

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 05:57 AM.
 
Old 05-18-2006, 03:54 PM   #3
RanDrake10
Member
 
Registered: Oct 2004
Location: Florida
Distribution: Debian
Posts: 319

Rep: Reputation: 30
Do you have a mirrored or striped array?
 
Old 05-23-2006, 05:50 AM   #4
poj
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:07 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
Open Source Consulting | Domain Registration