Re: mdsadm -A won't assemble my array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Michael,

[Convention on kernel.org is reply-to-all, to trim replies and to
bottom-post, or interleave your reply]

On 02/09/2015 06:05 PM, G. Michael Carter wrote:
> On Mon, Feb 9, 2015 at 3:21 PM, G. Michael Carter <mikey@xxxxxxxxxxxxxxx> wrote:
>> Some time last night my machine had a kernel panic.  Two of the arrays
>> didn't start up.
>>
>> One I managed to fix as a mdadm -E clued me in that three of the
>> drives were ok.  So I just reassembled the three and added the fourth.
>> Then it just started no problem.
>>
>> My big array however I'm not so lucky.
>>
>> I've got a state of
>>
>>
>> Raid level: 5
>> /dev/sdb: AA..   (state: clean)
>> /dev/sdk: AAAA   (state: active)
>> /dev/sdo: A.AA   (state: clean)
>> /dev/sdp: A.AA   (state: clean)

Please show us *all* of your mdadm -E output for this array.  Pasted
inline is preferred.  Also show a map of your device names versus drive
serial numbers.  An excerpt from "ls -l /dev/disk/by-id/" will do.  You
have many drives, and the kernel doesn't guarantee consistent naming.

>> Thus can only get two drives to match in any config.  How do I get out
>> of this mess?

> After doing a lot more reading... I think I'm getting down to running
> something like this.  assemble force isn't doing much.

This throwaway line is critical.  --assemble --force is the right answer
to this situation, and if its not working, something else should be
investigated.  Do *not* use --create.

Show your kernel and mdadm versions.  Show the content of /proc/mdstat.
 Show the output of:

mdadm --assemble --force --verbose /dev/mdX /dev/sd[bkop]

and the tail of "dmesg" that corresponds to the above.

> mdadm --create --assume-clean --level=5 --verbose --chunk 512K
> --raid-devices=4 /dev/md3 /dev/sdb /dev/sdk /dev/sdo /dev/sdp
>
> But as per the big warning... says to check with you guys first, also
> need help writing the command (since it seems to be a one shot type
> thing)
>
> Here's the key information I think I need from the examine:
>
> Raid level: 5
> Chunk Size: 512K
> Used Dev Size: 7813774336
> /dev/sdb: AA..   (state: clean - active device 0)
> /dev/sdk: AAAA   (state: active - active device 1)
> /dev/sdo: A.AA   (state: clean  - active device 2)
> /dev/sdp: A.AA   (state: clean - active device 3)

Oh, and this isn't nearly enough information to advise on --create, in
the remote chance it turns out to be the right answer.

Phil

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux