linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Hans Kraus <hans@hanswkraus.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Weird problem: mdadm blocks
Date: Sun, 22 Dec 2013 22:19:14 +1100	[thread overview]
Message-ID: <20131222221914.78630829@notabene.brown> (raw)
In-Reply-To: <52B6AA66.5050502@hanswkraus.com>

[-- Attachment #1: Type: text/plain, Size: 1869 bytes --]

On Sun, 22 Dec 2013 10:01:26 +0100 Hans Kraus <hans@hanswkraus.com> wrote:

> Hi,
> 
> my backup system (running backuppc) has developed a weird problem:
> calls from command line "mdadm --detail /dev/mdX" block, for every
> existing raid on the system, and can be only terminated with ^C. This
> is true even for the newest mdadm built from git.
> 
> "cat /proc/mdstat" blocks too. All mounted raids are working (at least
> ls <mountpoint> is), exept for one, md127 (the storage of backuppc).
> There ls is blocking and is not terminable by ^C.
> 
> The raid structure is the following:
> md2, md3, m4	raid1 for swap, /boot, /
> md30		raid0 for short term storage
> md10, md11, md12, md13	raid0, built from 2x 2TB or 1TB + 3TB drives
> md127		raid5 built from md10, md11, md12, md13
> 
> I recently (some 12 hours ago) added md13 again and the system was
> rebuilding from a degraded state. The file system on md127 is xfs. All
> the physical rives are OK, at least according to smartmontools.
> Webmin 1.660 reports:
> CPU load averages 	16.96 (1 min) 15.04 (5 mins) 12.67 (15 mins)
> CPU usage 		0% user, 1% kernel, 99% IO, 0% idle
> 
> Is there any way to diagnose the problem further? I'm reluctant to
> do a reboot.

Either some process has crashed leaving an 'oops' or 'bug' message in the
kernel logs, or some process is stuck in 'D' state in 'ps'.

So:
 1/ look through kernel logs since boot (e.g. output of 'dmesg', though that
   might not be complete) for anything  unusual - there should be a stack
   trace.
 2/ if there is a process in 'D' state, find how which and get a stack trace
    of it.  Possibly by
     echo w > /proc/sysrq-trigger
   or
     cat /proc/$PID/stack
   or event
     echo t > /proc/sysrq-trigger
   (though that might create lots of output that might be hard to capture).

NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2013-12-22 11:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-22  9:01 Weird problem: mdadm blocks Hans Kraus
2013-12-22 11:19 ` NeilBrown [this message]
2013-12-22 16:11   ` Hans Kraus
2013-12-22 16:43     ` More 'D' state processes [was: Re: Weird problem: mdadm blocks] Hans Kraus
2014-01-05 22:00       ` NeilBrown
     [not found]         ` <2b3bc4b9893fa3dee2944c249722d863@hanswkraus.com>
2014-01-07  0:23           ` NeilBrown

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=20131222221914.78630829@notabene.brown \
    --to=neilb@suse.de \
    --cc=hans@hanswkraus.com \
    --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).