* Re: multipathd removing DM devices that don't belong to it
@ 2015-07-24 17:53 Artem Danielov
2015-07-27 9:12 ` Hannes Reinecke
0 siblings, 1 reply; 5+ messages in thread
From: Artem Danielov @ 2015-07-24 17:53 UTC (permalink / raw)
To: dm-devel@redhat.com
[-- Attachment #1.1: Type: text/plain, Size: 884 bytes --]
Hi,
Any chance you guys have looked into this problem? Thank you!
From: Artem Danielov
Sent: Tuesday, June 16, 2015 15:02
To: 'dm-devel@redhat.com'
Subject: multipathd removing DM devices that don't belong to it
Hello,
Looking for an advice on whether this is an expected behavior or a bug.
device-mapper-multipath-0.4.9-77.el7.x86_64
When multipathd service starts it will remove any DM devices with multipath target, even if the underlying devices are blacklisted.
We are trying to use dmsetup directly to implement custom multipath management logic separate from multipathd. But unfortunately if multipathd is present and enabled it removes DM devices with multipath target that we create.
Is this a bug?
Thanks for your help!
Artem Danielov | Chief Technology Officer | FlashGrid Inc. | artem@flashgrid.io<mailto:artem@flashgrid.io> | +1-503-568-5249
[-- Attachment #1.2: Type: text/html, Size: 3555 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: multipathd removing DM devices that don't belong to it
2015-07-24 17:53 multipathd removing DM devices that don't belong to it Artem Danielov
@ 2015-07-27 9:12 ` Hannes Reinecke
0 siblings, 0 replies; 5+ messages in thread
From: Hannes Reinecke @ 2015-07-27 9:12 UTC (permalink / raw)
To: dm-devel
On 07/24/2015 07:53 PM, Artem Danielov wrote:
> Hi,
>
> Any chance you guys have looked into this problem? Thank you!
>
>
>
> *From:* Artem Danielov
> *Sent:* Tuesday, June 16, 2015 15:02
> *To:* 'dm-devel@redhat.com'
> *Subject:* multipathd removing DM devices that don't belong to it
>
>
>
> Hello,
>
> Looking for an advice on whether this is an expected behavior or a bug.
>
> device-mapper-multipath-0.4.9-77.el7.x86_64
>
>
>
> When multipathd service starts it will remove any DM devices with
> multipath target, _even if the underlying devices are blacklisted_.
>
> We are trying to use dmsetup directly to implement custom multipath
> management logic separate from multipathd. But unfortunately if
> multipathd is present and enabled it removes DM devices with
> multipath target that we create.
>
Well, hardly surprising.
ATM multipathd expects to be the only one creating multipath tables,
so of course it would try to 'rectify' the situation.
What one could try is to use a different UUID prefix (ie something
else than 'mpath') and then teach multipath to ignore all
device-mapper devices of type 'multipath' but without the 'mpath'
UUID prefix.
>
>
> Is this a bug?
>
Not as such.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: multipathd removing DM devices that don't belong to it
@ 2015-08-20 19:17 Artem Danielov
0 siblings, 0 replies; 5+ messages in thread
From: Artem Danielov @ 2015-08-20 19:17 UTC (permalink / raw)
To: bmarzins@redhat.com; +Cc: dm-devel@redhat.com
[-- Attachment #1.1: Type: text/plain, Size: 2797 bytes --]
Hi Ben,
Unfortunately, I missed your response two months ago. Somehow it didn't get to my mailbox. Found it on the web. I would like to revisit this question.
I think I understood your explanation. Our proposal is to add an ignore_multipaths section to multipath.conf that looks like the following:
ignore_multipaths
{
name "flashgrid*"
}
This example should prevent multipathd from touching any DM devices with names starting with 'flashgrid'
The justification is that this will allow custom implementations of multipath management that also use dmsetup and that can co-exist on the same system with multipathd.
Is this possible to do? We will be happy to do testing.
Thank you!
-Artem
________________________________
* From: "Benjamin Marzinski" <bmarzins redhat com>
* To: device-mapper development <dm-devel redhat com>
* Subject: Re: [dm-devel] multipathd removing DM devices that don't belong to it
* Date: Mon, 22 Jun 2015 11:04:38 -0500
________________________________
On Tue, Jun 16, 2015 at 10:02:23PM +0000, Artem Danielov wrote:
> Hello,
>
> Looking for an advice on whether this is an expected behavior or a bug.
>
> device-mapper-multipath-0.4.9-77.el7.x86_64
>
>
>
> When multipathd service starts it will remove any DM devices with
> multipath target, even if the underlying devices are blacklisted.
>
> We are trying to use dmsetup directly to implement custom multipath
> management logic separate from multipathd. But unfortunately if multipathd
> is present and enabled it removes DM devices with multipath target that we
> create.
>
>
>
> Is this a bug?
I don't know if I'd call it a bug. It is certainly how multipath is
designed to work. The issue is this. When you start multipathd up do a
reconfigure. It doesn't know if the configuration has changed. So, if
there are devices configured and it doesn't think they should be, it
assumes that you've changed your configuration, and you'd like it to use
your current configuration, which means removing devices that no longer
are allowed.
I don't see any way of making this work, without adding a section to the
multipath.conf file to ignore devices with certain wwids entirely (which
is different from blacklisting them).
-Ben
>
>
>
> Thanks for your help!
>
>
>
> Artem Danielov | Chief Technology Officer | FlashGrid Inc. |
> [1]artem flashgrid io | +1-503-568-5249
>
>
>
> References
>
> Visible links
> 1. mailto:artem flashgrid io
> --
> dm-devel mailing list
> dm-devel redhat com
> https://www.redhat.com/mailman/listinfo/dm-devel
[-- Attachment #1.2: Type: text/html, Size: 13201 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* multipathd removing DM devices that don't belong to it
@ 2015-06-16 22:02 Artem Danielov
2015-06-22 16:04 ` Benjamin Marzinski
0 siblings, 1 reply; 5+ messages in thread
From: Artem Danielov @ 2015-06-16 22:02 UTC (permalink / raw)
To: dm-devel@redhat.com
[-- Attachment #1.1: Type: text/plain, Size: 662 bytes --]
Hello,
Looking for an advice on whether this is an expected behavior or a bug.
device-mapper-multipath-0.4.9-77.el7.x86_64
When multipathd service starts it will remove any DM devices with multipath target, even if the underlying devices are blacklisted.
We are trying to use dmsetup directly to implement custom multipath management logic separate from multipathd. But unfortunately if multipathd is present and enabled it removes DM devices with multipath target that we create.
Is this a bug?
Thanks for your help!
Artem Danielov | Chief Technology Officer | FlashGrid Inc. | artem@flashgrid.io<mailto:artem@flashgrid.io> | +1-503-568-5249
[-- Attachment #1.2: Type: text/html, Size: 2805 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: multipathd removing DM devices that don't belong to it
2015-06-16 22:02 Artem Danielov
@ 2015-06-22 16:04 ` Benjamin Marzinski
0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Marzinski @ 2015-06-22 16:04 UTC (permalink / raw)
To: device-mapper development
On Tue, Jun 16, 2015 at 10:02:23PM +0000, Artem Danielov wrote:
> Hello,
>
> Looking for an advice on whether this is an expected behavior or a bug.
>
> device-mapper-multipath-0.4.9-77.el7.x86_64
>
>
>
> When multipathd service starts it will remove any DM devices with
> multipath target, even if the underlying devices are blacklisted.
>
> We are trying to use dmsetup directly to implement custom multipath
> management logic separate from multipathd. But unfortunately if multipathd
> is present and enabled it removes DM devices with multipath target that we
> create.
>
>
>
> Is this a bug?
I don't know if I'd call it a bug. It is certainly how multipath is
designed to work. The issue is this. When you start multipathd up do a
reconfigure. It doesn't know if the configuration has changed. So, if
there are devices configured and it doesn't think they should be, it
assumes that you've changed your configuration, and you'd like it to use
your current configuration, which means removing devices that no longer
are allowed.
I don't see any way of making this work, without adding a section to the
multipath.conf file to ignore devices with certain wwids entirely (which
is different from blacklisting them).
-Ben
>
>
>
> Thanks for your help!
>
>
>
> Artem Danielov | Chief Technology Officer | FlashGrid Inc. |
> [1]artem@flashgrid.io | +1-503-568-5249
>
>
>
> References
>
> Visible links
> 1. mailto:artem@flashgrid.io
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-08-20 19:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-24 17:53 multipathd removing DM devices that don't belong to it Artem Danielov
2015-07-27 9:12 ` Hannes Reinecke
-- strict thread matches above, loose matches on Subject: below --
2015-08-20 19:17 Artem Danielov
2015-06-16 22:02 Artem Danielov
2015-06-22 16:04 ` Benjamin Marzinski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.