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 08-25-2017, 03:33 AM   #1
vgracanin
LQ Newbie
 
Registered: Aug 2017
Posts: 3

Rep: Reputation: Disabled
RAID 10 Array unable to start


Hi,
I had an RAID 10 Array on 4x4TB drives. One of the drives failed recently and before I had a chance to get a new drive the PC died. Now I took those 3 working drives in a different machine and tried to assemble the array, however it is showing me that there is not enough drives to start the array.

mdadm --assemble --scan -v

Code:
mdadm: looking for devices for /dev/md/2
mdadm: /dev/sdd2 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdd1 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdd is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdc2 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdc1 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdc is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdb2 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdb1 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdb is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sda5 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sda2 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sda1 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sda is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sr0 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdd3 is identified as a member of /dev/md/2, slot 3.
mdadm: /dev/sdc3 is identified as a member of /dev/md/2, slot 2.
mdadm: /dev/sdb3 is identified as a member of /dev/md/2, slot 32769.
mdadm: no uptodate device for slot 0 of /dev/md/2
mdadm: no uptodate device for slot 2 of /dev/md/2
mdadm: added /dev/sdd3 to /dev/md/2 as 3
mdadm: added /dev/sdc3 to /dev/md/2 as 2
mdadm: /dev/md/2 assembled from 2 drives - not enough to start the array.
mdadm --examine /dev/sdd3

Code:
    /dev/sdd3:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : cd3892ab:b8aaa48a:20b5ab74:fddad0bb
           Name : Vault:2
    Creation Time : Sun Jun 12 08:36:56 2016
     Raid Level : raid10
    Raid Devices : 4
     Avail Dev Size : 7804393120 (3721.42 GiB 3995.85 GB)
     Array Size : 7804393088 (7442.85 GiB 7991.70 GB)
     Used Dev Size : 7804393088 (3721.42 GiB 3995.85 GB)
     Data Offset : 2048 sectors
     Super Offset : 8 sectors
     Unused Space : before=1968 sectors, after=32 sectors
          State : clean
     Device UUID : 8592628e:a97edfef:e6986718:30843c2a

     Update Time : Mon Jul 17 02:06:30 2017
       Checksum : fd90c0a - correct
         Events : 97672

         Layout : near=2
     Chunk Size : 64K

     Device Role : Active device 3
     Array State : ..AA ('A' == active, '.' == missing, 'R' == replacing)
mdadm --examine /dev/sdc3

Code:
    /dev/sdc3:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : cd3892ab:b8aaa48a:20b5ab74:fddad0bb
           Name : Vault:2
    Creation Time : Sun Jun 12 08:36:56 2016
     Raid Level : raid10
     Raid Devices : 4

    Avail Dev Size : 7804393120 (3721.42 GiB 3995.85 GB)
     Array Size : 7804393088 (7442.85 GiB 7991.70 GB)
    Used Dev Size : 7804393088 (3721.42 GiB 3995.85 GB)
    Data Offset : 2048 sectors
    Super Offset : 8 sectors
    Unused Space : before=1968 sectors, after=32 sectors
          State : clean
    Device UUID : c37c9709:1f048b35:f3133e80:7d0d585d

    Update Time : Mon Jul 17 02:06:30 2017
       Checksum : 6bab8016 - correct
         Events : 97672

         Layout : near=2
     Chunk Size : 64K

    Device Role : Active device 2
    Array State : ..AA ('A' == active, '.' == missing, 'R' == replacing)
mdadm --examine /dev/sdb3

Code:
    /dev/sdb3:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : cd3892ab:b8aaa48a:20b5ab74:fddad0bb
           Name : Vault:2
    Creation Time : Sun Jun 12 08:36:56 2016
     Raid Level : raid10
    Raid Devices : 4
  
    Avail Dev Size : 7804393120 (3721.42 GiB 3995.85 GB)
     Array Size : 7804393088 (7442.85 GiB 7991.70 GB)
    Used Dev Size : 7804393088 (3721.42 GiB 3995.85 GB)
    Data Offset : 2048 sectors
    Super Offset : 8 sectors
    Unused Space : before=1968 sectors, after=32 sectors
          State : clean
     Device UUID : 56d45c15:883a2c28:96b265ad:341003bb

     Update Time : Mon Jul 17 02:06:30 2017
       Checksum : f4e4bb8b - correct
         Events : 97672

         Layout : near=2
     Chunk Size : 64K

    Device Role : Active device 32769
    Array State : ..AA ('A' == active, '.' == missing, 'R' == replacing)
The only difference I can see is in the sdb3 is the "Device Role : Active device 32769"
Just to note that the RAID was on synology (xpenology).

Last edited by vgracanin; 08-26-2017 at 04:07 AM. Reason: fix the mess
 
Old 08-25-2017, 08:01 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
Hi & Welcome to Linux Questions.

Please put output in Code Tags. It makes it easier for us to read and help you.

Looking at this:

Code:
mdadm: looking for devices for /dev/md/2
mdadm: /dev/sdd2 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdd1 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdd is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdc2 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdc1 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdc is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdb2 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdb1 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdb is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sda5 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sda2 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sda1 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sda is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sr0 is not one of /dev/sdd3,/dev/sdc3,/dev/sdb3
mdadm: /dev/sdd3 is identified as a member of /dev/md/2, slot 3.
mdadm: /dev/sdc3 is identified as a member of /dev/md/2, slot 2.
mdadm: /dev/sdb3 is identified as a member of /dev/md/2, slot 32769.
mdadm: no uptodate device for slot 0 of /dev/md/2
mdadm: no uptodate device for slot 2 of /dev/md/2
mdadm: added /dev/sdd3 to /dev/md/2 as 3
mdadm: added /dev/sdc3 to /dev/md/2 as 2
mdadm: /dev/md/2 assembled from 2 drives - not enough to start the array.
Maybe this links will help?

https://unix.stackexchange.com/quest...tart-the-array
http://www.pc-freak.net/blog/way-to-...art-the-array/

Do you know which drive failed?

You will need a member that is good with RAID. Sorry that's not me, I'm still learning how to set it up.

Last edited by Ztcoracat; 08-25-2017 at 08:21 PM.
 
Old 08-25-2017, 09:01 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,978

Rep: Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403
I was trying to find a good web page on exactly your issue.

My understanding is you have to fail a device then work on it. On boot a raid does assemble by design. I have to admit that it looks like the drives are active. It may be that you should have numbered the drives out of the box and inserted them to slots that equate but I don't think that is needed.
 
Old 08-26-2017, 03:57 AM   #4
vgracanin
LQ Newbie
 
Registered: Aug 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
I have 3 out of 4 drives that all look to be working and when I try to assemble them the third one is not added. They are in the same order as before.

Code:
/dev/sdd3 - Slot 3 
/dev/sdc3 - Slot 2
/dev/sdb3 - Slot 32769 (Should be Slot 1?)
/dev/sda3 - Missing/Dead (Should be Slot 0)
Even with one drive gone in RAID 10 i should be able to forcefully start it.

if I try to force it with "mdadm --assemble --force /dev/md0 /dev/sdb3 /dev/sdc3 /dev/sdd3" i still get the

Code:
mdadm: /dev/md/0 assembled from 2 drives - not enough to start the array.
and if use "mdadm --assemble --force /dev/disk/by-id/xx1 /dev/disk/by-id/xx2 /dev/disk/by-id/xx3 " I get that

Code:
/dev/disk/by-id/xx1 has no superblock - assembly aborted

Last edited by vgracanin; 08-26-2017 at 04:01 AM. Reason: mistake in code
 
Old 08-26-2017, 04:00 AM   #5
vgracanin
LQ Newbie
 
Registered: Aug 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
Hi & Welcome to Linux Questions.

Please put output in Code Tags. It makes it easier for us to read and help you.
Thank you and sorry for the mess.
 
Old 08-27-2017, 10:31 AM   #6
mitchd123
LQ Newbie
 
Registered: Jan 2009
Distribution: Ubuntu 14.04
Posts: 21

Rep: Reputation: 0
long shot, but because you moved systems:

Double check that the raid modules are loading correctly.

lsmod |grep raid

or modprobe raid456

dmesg
 
Old 08-27-2017, 05:20 PM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
Quote:
Originally Posted by vgracanin View Post
Thank you and sorry for the mess.
You're Welcome.
 
  


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
unable to unmount raid array or unable to stop raid array karthik-naren Linux - Newbie 3 07-09-2013 01:54 PM
Unable to boot from degraded RAID array? sailor420 Linux - Hardware 3 02-18-2012 07:33 AM
RAID 1 - Unable to remove a disk from an array satoshi Linux - Server 1 09-15-2011 12:09 AM
[SOLVED] Unable to grow a raid 5 array horde Linux - Server 1 09-14-2009 07:40 AM
Fedora does not start my RAID array Mckrassy Linux - Software 4 03-15-2007 10:02 AM

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

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