LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-03-2013, 04:38 PM   #1
notaprogrammer
LQ Newbie
 
Registered: Oct 2013
Posts: 1

Rep: Reputation: Disabled
Raid 10 Array - Replaced Faulty Drive, Won't Assemble!


Hey Folks,

I just made a big mistake. I replaced a drive in my raid 10 (4 drives). I was trying to format/partition my new drive and thought this was the command I was supposed to use to "match" settings:


root@bastard:/home/matt# sgdisk -R=/dev/sdb /dev/sdc
Creating new GPT entries.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
root@bastard:/home/matt# sgdisk -G /dev/sdb
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
root@bastard:/home/matt# reboot


----

That messed things up pretty good. I'm not even sure what I did. Is there anyway to get my raid array back working? Now the array will not activate at all...

Any help would be greatly appreciated.

Thanks!

Matt
 
Old 10-03-2013, 05:33 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,841

Rep: Reputation: 756Reputation: 756Reputation: 756Reputation: 756Reputation: 756Reputation: 756Reputation: 756
Your approach seems pretty good. You need matching partition tables in order to rebuild your array. Use sgdisk to verify that all four drives are now partitioned the same.

Use mdadm -D to look at the md device. If it still remembers the old drive, then fail and remove it.

Use mdadm --examine to check the state of each partition that should be part of the array. You should have 3 good partitions and one (like /dev/sdb1) which has no md superblock. If so, add it to the array. It should automatically start rebuilding.
 
  


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] how to scan / assemble old RAID 1 array? stateless Linux - Server 2 05-31-2013 10:19 AM
Re-assemble RAID 5 array scottastanley Linux - Server 9 01-08-2013 12:44 AM
Raid array won't auto-assemble Metapsyborg Slackware - Installation 1 09-25-2009 04:50 PM
Dismantle Raid 1 Array, then re-assemble...? freefall235 Linux - Hardware 4 07-31-2007 11:42 PM
I replaced a drive on my Raid array how long will it take for the card to reubuild? abefroman Linux - Hardware 1 09-25-2005 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:38 AM.

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