From: NeilBrown <neilb@suse.com>
To: Andrei Borzenkov <arvidjaar@gmail.com>,
Luke Pyzowski <Luke@sunrisefutures.com>,
"'systemd-devel@lists.freedesktop.org'"
<systemd-devel@lists.freedesktop.org>,
linux-raid@vger.kernel.org
Subject: Re: Errorneous detection of degraded array
Date: Mon, 30 Jan 2017 12:53:37 +1100 [thread overview]
Message-ID: <87vasxs47y.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <b842c2ce-7d32-a392-e9d9-9f330fa6a7cf@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2045 bytes --]
On Fri, Jan 27 2017, Andrei Borzenkov wrote:
> 26.01.2017 21:02, Luke Pyzowski пишет:
>> Hello,
>> I have a large RAID6 device with 24 local drives on CentOS7.3. Randomly (around 50% of the time) systemd will unmount my RAID device thinking it is degraded after the mdadm-last-resort@.timer expires, however the device is working normally by all accounts, and I can immediately mount it manually upon boot completion. In the logs below /share is the RAID device. I can increase the timer in /usr/lib/systemd/system/mdadm-last-resort@.timer from 30 to 60 seconds, but this problem can randomly still occur.
>>
>> systemd[1]: Created slice system-mdadm\x2dlast\x2dresort.slice.
>> systemd[1]: Starting system-mdadm\x2dlast\x2dresort.slice.
>> systemd[1]: Starting Activate md array even though degraded...
>> systemd[1]: Stopped target Local File Systems.
>> systemd[1]: Stopping Local File Systems.
>> systemd[1]: Unmounting /share...
>> systemd[1]: Stopped (with error) /dev/md0.
This line perplexes me.
The last-resort.service (and .timer) files have a Conflict= directive
against sys-devices-virtual-block-md$DEV.device
Normally a Conflicts= directive means that if this service starts, that
one is stopped, and if that one starts, this is stopped.
However .device units cannot be stopped:
$ systemctl show sys-devices-virtual-block-md0.device | grep Can
CanStart=no
CanStop=no
CanReload=no
CanIsolate=no
so presumable the attempt to stop the device fails, so the Conflict=
dependency cannot be met, so the last-resort service (or timer) doesn't
get started.
At least, that is what I see happening in my tests.
But your log doesn't mention sys-devices-virtual-block-md0, it
mentions /dev/md0.
How does systemd know about /dev/md0, or the connection it has with
sys-devices-virtual-block-md0 ??
Does
systemctl list-dependencies sys-devices-virtual-block-md0.device
report anything interesting? I get
sys-devices-virtual-block-md0.device
● └─mdmonitor.service
NeilBrown
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
[-- Attachment #2: Type: text/plain, Size: 172 bytes --]
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
next prev parent reply other threads:[~2017-01-30 1:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <96A26C8C6786C341B83BC4F2BC5419E4795DE9A6@SRF-EXCH1.corp.sunrisefutures.com>
2017-01-27 7:12 ` [systemd-devel] Errorneous detection of degraded array Andrei Borzenkov
2017-01-27 8:25 ` Martin Wilck
2017-01-27 19:44 ` Luke Pyzowski
2017-01-28 17:34 ` [systemd-devel] " Andrei Borzenkov
2017-01-30 22:41 ` Luke Pyzowski
2017-01-30 1:53 ` NeilBrown [this message]
2017-01-30 3:40 ` Andrei Borzenkov
2017-01-30 6:36 ` NeilBrown
2017-01-30 7:29 ` Andrei Borzenkov
2017-01-30 22:19 ` [systemd-devel] " NeilBrown
2017-01-31 20:17 ` Andrei Borzenkov
2017-02-08 4:10 ` 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=87vasxs47y.fsf@notabene.neil.brown.name \
--to=neilb@suse.com \
--cc=Luke@sunrisefutures.com \
--cc=arvidjaar@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=systemd-devel@lists.freedesktop.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).