linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Green <cl@isbd.net>
To: linux-raid@vger.kernel.org
Subject: Re: Failed JBOD RAID on old NAS, how to diagnose/resurrect?
Date: Sun, 8 Mar 2020 14:14:27 +0000	[thread overview]
Message-ID: <20200308141427.GA15739@esprimo> (raw)
In-Reply-To: <20200307220820.GA31559@esprimo>

Well I've got it working again but I'm very confused as to *why* it
failed the way it did.

A 'cat /proc/mdstat' produced:-

    Personalities : [linear] [raid0] [raid1] 
    md4 : active raid1 sda4[0]
          973522816 blocks [2/1] [U_]
          
    md1 : active raid1 sdb2[0] sda2[1]
          256960 blocks [2/2] [UU]
          
    md3 : active raid1 sdb3[0] sda3[1]
          987904 blocks [2/2] [UU]
          
    md2 : active raid1 sdb4[0]
          973522816 blocks [2/1] [U_]
          
    md0 : active raid1 sdb1[0] sda1[1]
          1959808 blocks [2/2] [UU]

So md2 and md4 (the main parts of the two 1Tb disk drives) seemed to
be OK from the RAID point of view.  But I noticed that the block
device for /dev/md4 didn't exist:-

    ~ # ls -l /dev/md*
    brw-r-----    1 root     root       9,   0 Sep 29  2011 /dev/md0
    brw-r-----    1 root     root       9,   1 Sep 29  2011 /dev/md1
    brw-r-----    1 root     root       9,  10 Sep 29  2011 /dev/md10
    brw-r-----    1 root     root       9,  11 Sep 29  2011 /dev/md11
    brw-r-----    1 root     root       9,  12 Sep 29  2011 /dev/md12
    brw-r-----    1 root     root       9,  13 Sep 29  2011 /dev/md13
    brw-r-----    1 root     root       9,  14 Sep 29  2011 /dev/md14
    brw-r-----    1 root     root       9,  15 Sep 29  2011 /dev/md15
    brw-r-----    1 root     root       9,  16 Sep 29  2011 /dev/md16
    brw-r-----    1 root     root       9,  17 Sep 29  2011 /dev/md17
    brw-r-----    1 root     root       9,  18 Sep 29  2011 /dev/md18
    brw-r-----    1 root     root       9,  19 Sep 29  2011 /dev/md19
    brw-r-----    1 root     root       9,   2 Sep 29  2011 /dev/md2
    brw-r-----    1 root     root       9,  20 Sep 29  2011 /dev/md20
    brw-r-----    1 root     root       9,  21 Sep 29  2011 /dev/md21
    brw-r-----    1 root     root       9,  22 Sep 29  2011 /dev/md22
    brw-r-----    1 root     root       9,  23 Sep 29  2011 /dev/md23
    brw-r-----    1 root     root       9,  24 Sep 29  2011 /dev/md24
    brw-r-----    1 root     root       9,  25 Sep 29  2011 /dev/md25
    brw-r-----    1 root     root       9,  26 Sep 29  2011 /dev/md26
    brw-r-----    1 root     root       9,  27 Sep 29  2011 /dev/md27
    brw-r-----    1 root     root       9,  28 Sep 29  2011 /dev/md28
    brw-r-----    1 root     root       9,  29 Sep 29  2011 /dev/md29
    brw-r-----    1 root     root       9,   3 Sep 29  2011 /dev/md3
    brw-r-----    1 root     root       9,   5 Sep 29  2011 /dev/md5
    brw-r-----    1 root     root       9,   6 Sep 29  2011 /dev/md6
    brw-r-----    1 root     root       9,   7 Sep 29  2011 /dev/md7
    brw-r-----    1 root     root       9,   8 Sep 29  2011 /dev/md8
    brw-r-----    1 root     root       9,   9 Sep 29  2011 /dev/md9


The fix was simply to use 'mknod' to create the missing /dev/md4, now
I can mount the drive and see the data.  

What I don't understand is where /dev/md4 went, how would it have got
deleted?  I have yet to reboot the system to see if /dev/md4
disappears again but if it does it's not a big problem to create it
again.

Should the RAID block devices get created as part of the RAID start
up? Maybe there's something gone awry there.

(Oh, and sorry for talking about SBOD when I meant JBOD)


-- 
Chris Green

  reply	other threads:[~2020-03-08 14:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-07 21:58 Failed SBOD RAID on old NAS, how to diagnose/resurrect? Chris Green
2020-03-07 22:08 ` Chris Green
2020-03-08 14:14   ` Chris Green [this message]
2020-03-10 21:20     ` Failed JBOD " Song Liu
2020-03-10 22:11       ` Chris Green
2020-03-10 23:46         ` Song Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200308141427.GA15739@esprimo \
    --to=cl@isbd.net \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).