* Getting device-mapper failure notifications
@ 2016-02-02 7:07 Avishay Traeger
2016-02-24 5:00 ` Andy Grover
0 siblings, 1 reply; 6+ messages in thread
From: Avishay Traeger @ 2016-02-02 7:07 UTC (permalink / raw)
To: dm-devel
[-- Attachment #1.1: Type: text/plain, Size: 839 bytes --]
Hi all,
I have a system where various configurations are possible - iSCSI/FC,
single paths and multiple. For multiple I of course use device-mapper. I
was wondering if it was possible to:
1. use it for cases where I have a single path.
2. create a monitoring process that can take some action (e.g., send a
notification via message queue) in the case of some failure that would
normally cause failover.
Any help would be much appreciated.
Thanks,
Avishay
--
*Avishay Traeger, PhD*
*System Architect*
Mobile: +972 54 447 1475
E-mail: avishay@stratoscale.com
Web <http://www.stratoscale.com/> | Blog <http://www.stratoscale.com/blog/>
| Twitter <https://twitter.com/Stratoscale> | Google+
<https://plus.google.com/u/1/b/108421603458396133912/108421603458396133912/posts>
| Linkedin <https://www.linkedin.com/company/stratoscale>
[-- Attachment #1.2: Type: text/html, Size: 2607 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getting device-mapper failure notifications
2016-02-02 7:07 Getting device-mapper failure notifications Avishay Traeger
@ 2016-02-24 5:00 ` Andy Grover
2016-02-24 6:01 ` Avishay Traeger
2016-02-24 10:25 ` Hannes Reinecke
0 siblings, 2 replies; 6+ messages in thread
From: Andy Grover @ 2016-02-24 5:00 UTC (permalink / raw)
To: Avishay Traeger, dm-devel
On 02/01/2016 11:07 PM, Avishay Traeger wrote:
> Hi all,
> I have a system where various configurations are possible - iSCSI/FC,
> single paths and multiple. For multiple I of course use device-mapper.
> I was wondering if it was possible to:
> 1. use it for cases where I have a single path.
> 2. create a monitoring process that can take some action (e.g., send a
> notification via message queue) in the case of some failure that would
> normally cause failover.
Does dm-multipath support a single path? I don't know...
but for your #2, dm-multipath publishes a uevent when a path fails,
maybe the process could look for that? Using libudev?
HTH -- Andy
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getting device-mapper failure notifications
2016-02-24 5:00 ` Andy Grover
@ 2016-02-24 6:01 ` Avishay Traeger
2016-02-24 10:25 ` Hannes Reinecke
1 sibling, 0 replies; 6+ messages in thread
From: Avishay Traeger @ 2016-02-24 6:01 UTC (permalink / raw)
To: Andy Grover; +Cc: dm-devel
[-- Attachment #1.1: Type: text/plain, Size: 1197 bytes --]
On Wed, Feb 24, 2016 at 7:00 AM, Andy Grover <agrover@redhat.com> wrote:
> On 02/01/2016 11:07 PM, Avishay Traeger wrote:
>
>> Hi all,
>> I have a system where various configurations are possible - iSCSI/FC,
>> single paths and multiple. For multiple I of course use device-mapper.
>> I was wondering if it was possible to:
>> 1. use it for cases where I have a single path.
>> 2. create a monitoring process that can take some action (e.g., send a
>> notification via message queue) in the case of some failure that would
>> normally cause failover.
>>
>
> Does dm-multipath support a single path? I don't know...
>
> but for your #2, dm-multipath publishes a uevent when a path fails, maybe
> the process could look for that? Using libudev?
>
> HTH -- Andy
>
>
Thanks for pointing me in the right direction Andy!
--
*Avishay Traeger, PhD*
*System Architect*
Mobile: +972 54 447 1475
E-mail: avishay@stratoscale.com
Web <http://www.stratoscale.com/> | Blog <http://www.stratoscale.com/blog/>
| Twitter <https://twitter.com/Stratoscale> | Google+
<https://plus.google.com/u/1/b/108421603458396133912/108421603458396133912/posts>
| Linkedin <https://www.linkedin.com/company/stratoscale>
[-- Attachment #1.2: Type: text/html, Size: 3329 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getting device-mapper failure notifications
2016-02-24 5:00 ` Andy Grover
2016-02-24 6:01 ` Avishay Traeger
@ 2016-02-24 10:25 ` Hannes Reinecke
2016-02-24 13:12 ` Bryn M. Reeves
2016-02-24 17:25 ` Mike Snitzer
1 sibling, 2 replies; 6+ messages in thread
From: Hannes Reinecke @ 2016-02-24 10:25 UTC (permalink / raw)
To: dm-devel
On 02/24/2016 01:00 PM, Andy Grover wrote:
> On 02/01/2016 11:07 PM, Avishay Traeger wrote:
>> Hi all,
>> I have a system where various configurations are possible - iSCSI/FC,
>> single paths and multiple. For multiple I of course use device-mapper.
>> I was wondering if it was possible to:
>> 1. use it for cases where I have a single path.
>> 2. create a monitoring process that can take some action (e.g., send a
>> notification via message queue) in the case of some failure that would
>> normally cause failover.
>
> Does dm-multipath support a single path? I don't know...
>
Pshaw.
Of course it does.
(Might be that RH has some magic disallowing that, but certainly there's
nothing in the source which forbids it. In fact I recommend it when
using iSCSI)
So I recommend to always use dm-multipath and listen to uevents.
> but for your #2, dm-multipath publishes a uevent when a path fails,
> maybe the process could look for that? Using libudev?
>
Alternatively (if you don't want the failover to happen from multipath
itself) you can implement your own device_handler sending out an uevent
and waiting for some magic sysfs attribute to be written to before
completing.
Should be rather trivial.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getting device-mapper failure notifications
2016-02-24 10:25 ` Hannes Reinecke
@ 2016-02-24 13:12 ` Bryn M. Reeves
2016-02-24 17:25 ` Mike Snitzer
1 sibling, 0 replies; 6+ messages in thread
From: Bryn M. Reeves @ 2016-02-24 13:12 UTC (permalink / raw)
To: Hannes Reinecke; +Cc: dm-devel
On Wed, Feb 24, 2016 at 06:25:43PM +0800, Hannes Reinecke wrote:
> On 02/24/2016 01:00 PM, Andy Grover wrote:
> > On 02/01/2016 11:07 PM, Avishay Traeger wrote:
> >> Hi all,
> >> I have a system where various configurations are possible - iSCSI/FC,
> >> single paths and multiple. For multiple I of course use device-mapper.
> >> I was wondering if it was possible to:
> >> 1. use it for cases where I have a single path.
> >> 2. create a monitoring process that can take some action (e.g., send a
> >> notification via message queue) in the case of some failure that would
> >> normally cause failover.
> >
> > Does dm-multipath support a single path? I don't know...
> >
> Pshaw.
> Of course it does.
>
> (Might be that RH has some magic disallowing that, but certainly there's
> nothing in the source which forbids it. In fact I recommend it when
> using iSCSI)
No but find_multipaths is enabled by default so maps are only created
automatically when we see at least two devices with the same WWID.
> So I recommend to always use dm-multipath and listen to uevents.
Ack.
Regards,
Bryn.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getting device-mapper failure notifications
2016-02-24 10:25 ` Hannes Reinecke
2016-02-24 13:12 ` Bryn M. Reeves
@ 2016-02-24 17:25 ` Mike Snitzer
1 sibling, 0 replies; 6+ messages in thread
From: Mike Snitzer @ 2016-02-24 17:25 UTC (permalink / raw)
To: Hannes Reinecke; +Cc: dm-devel
On Wed, Feb 24 2016 at 5:25am -0500,
Hannes Reinecke <hare@suse.de> wrote:
> On 02/24/2016 01:00 PM, Andy Grover wrote:
> > On 02/01/2016 11:07 PM, Avishay Traeger wrote:
> >> Hi all,
> >> I have a system where various configurations are possible - iSCSI/FC,
> >> single paths and multiple. For multiple I of course use device-mapper.
> >> I was wondering if it was possible to:
> >> 1. use it for cases where I have a single path.
> >> 2. create a monitoring process that can take some action (e.g., send a
> >> notification via message queue) in the case of some failure that would
> >> normally cause failover.
> >
> > Does dm-multipath support a single path? I don't know...
> >
> Pshaw.
> Of course it does.
>
> (Might be that RH has some magic disallowing that, but certainly there's
> nothing in the source which forbids it. In fact I recommend it when
> using iSCSI)
No, RH provided dm-multipath doesn't disallow single path multipath.
Not sure why you engage in raising such doubt -- red hat follows
upstream. period.
multipathd can be configured to look for multiple paths
('find_multipaths yes' in multipath.conf) but there is nothing in the
kernel disallowing the use of dm-multipath with a single path.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-02-24 17:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-02 7:07 Getting device-mapper failure notifications Avishay Traeger
2016-02-24 5:00 ` Andy Grover
2016-02-24 6:01 ` Avishay Traeger
2016-02-24 10:25 ` Hannes Reinecke
2016-02-24 13:12 ` Bryn M. Reeves
2016-02-24 17:25 ` Mike Snitzer
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).