LinuxQuestions.org
Review your favorite Linux distribution.
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-11-2008, 10:32 PM   #1
cferron
Member
 
Registered: Jan 2006
Location: Trois-Rivières, Québec, Canada
Distribution: Slackware, Ubuntu
Posts: 74

Rep: Reputation: 15
Question RAID1 software - 1 disk DEAD


Ok, I need help here!

I have a remote machine that has the following setup:

2x 250Gb SATA drive build in RAID 1 software using mdadm


Problem: 1 of the 2 disks is DEAD and needs to be replaced. I don't personally have access to the computer, but a person over there has access (he can put a new drive in, but don't have a clue on how to configure).

My questions:
What is the procedure when you want to do such an operation? Simply put the disk and the RAID1 will sync again? This would be to good to be true!

We have configure the array using UUID does that need to be changed if new drive is inserted?

Do we need to repartition the drive?

Thanks

Claude
 
Old 05-12-2008, 03:14 PM   #2
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia 4
Posts: 714

Rep: Reputation: 35
You need to format the new disk identically to the existing one.

Tou can issue this command:

fdisk -l

This will give you lots of information about how the drives are partitioned. You can also do things like fdisk -l /dev/md0 or fdisk -l /dev/sda1.

With that in mind you can go through the drives and see things like this:

mdadm --detail /dev/md0

You will see that you'll get something like this:

Number Major Minor RaidDevice State
0 0 0 - removed
1 3 1 1 active sync /dev/sda1
You must then reactivate your drive. In this case you would issue this command:

mdadm --manage /dev/md0 --add /dev/sdb1

Go and do the same for the other drives. If you issue the /cat/proc/mdstat command at anytime, you will see it telling you it is resnycronising the disks.

You can do all this with ssh, so should be able to do it remotely.
 
  


Reply

Tags
disk, procedure, raid, replacement


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
RAID1 array down to one disk with bad blocks, clone to good disk with dd noerror? ewolf Linux - Server 2 05-10-2008 01:40 AM
Have software raid1, but like to change to raid1+0 or 0+1, how? spaceuser Debian 8 03-17-2008 03:07 PM
add a new disk to raid1 array retrev Linux - General 1 04-08-2007 02:57 AM
raid1 disk status dindome Linux - Enterprise 2 02-24-2007 02:35 PM
RH8, RAID1, Dead Drive hardtarget_x Linux - Hardware 11 10-15-2003 06:57 PM


All times are GMT -5. The time now is 03:21 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration