From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Parschauer Date: Thu, 24 Jul 2014 14:48:42 +0000 Subject: udev 215 creates inactive MD devices upon stopping them Message-Id: <53D11CCA.1050602@profitbricks.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Cc: Linux RAID , artur.paszkiewicz@intel.com, Francis Moreau Hi, as discussed on linux-raid, please fix the bug that udev 215 creates inactive MD devices upon stopping them. Reference: http://www.spinics.net/lists/raid/msg46676.html Reported-by: Francis Moreau An open() call to /dev/mdX after creating it with mknod is enough to create such inactive MD device. According to Artur the issue is caused by this change in udev: > commit 3ebdb81ef088afd3b4c72b516beb5610f8c93a0d > Author: Kay Sievers > Date: Sun Apr 13 19:54:27 2014 -0700 >=20 > udev: serialize/synchronize block device event handling with file lo= cks >=20 > http://cgit.freedesktop.org/systemd/systemd/commit/?id>bdb81ef088afd3b4c7= 2b516beb5610f8c93a0d >=20 > It seems that they have already disabled this for dm for some reason, > but not for md: >=20 > commit e918a1b5a94f270186dca59156354acd2a596494 > Author: Kay Sievers > Date: Tue Jun 3 16:49:38 2014 +0200 >=20 > udev: exclude device-mapper from block device ownership event locking >=20 > http://cgit.freedesktop.org/systemd/systemd/commit/?id=E918a1b5a94f270186= dca59156354acd2a596494 >=20 Thanks, Sebastian From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Parschauer Subject: udev 215 creates inactive MD devices upon stopping them Date: Thu, 24 Jul 2014 16:48:42 +0200 Message-ID: <53D11CCA.1050602@profitbricks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-hotplug-owner@vger.kernel.org To: linux-hotplug@vger.kernel.org Cc: Linux RAID , artur.paszkiewicz@intel.com, Francis Moreau List-Id: linux-raid.ids Hi, as discussed on linux-raid, please fix the bug that udev 215 creates inactive MD devices upon stopping them. Reference: http://www.spinics.net/lists/raid/msg46676.html Reported-by: Francis Moreau An open() call to /dev/mdX after creating it with mknod is enough to create such inactive MD device. According to Artur the issue is caused by this change in udev: > commit 3ebdb81ef088afd3b4c72b516beb5610f8c93a0d > Author: Kay Sievers > Date: Sun Apr 13 19:54:27 2014 -0700 > > udev: serialize/synchronize block device event handling with file locks > > http://cgit.freedesktop.org/systemd/systemd/commit/?id=3ebdb81ef088afd3b4c72b516beb5610f8c93a0d > > It seems that they have already disabled this for dm for some reason, > but not for md: > > commit e918a1b5a94f270186dca59156354acd2a596494 > Author: Kay Sievers > Date: Tue Jun 3 16:49:38 2014 +0200 > > udev: exclude device-mapper from block device ownership event locking > > http://cgit.freedesktop.org/systemd/systemd/commit/?id=e918a1b5a94f270186dca59156354acd2a596494 > Thanks, Sebastian