Linux Device Mapper development
 help / color / mirror / Atom feed
* why command of multipath send reinstate message to all dm's paths
@ 2018-06-27  7:58 Jiaojianbing
  2018-06-27 13:58 ` Martin Wilck
  0 siblings, 1 reply; 9+ messages in thread
From: Jiaojianbing @ 2018-06-27  7:58 UTC (permalink / raw)
  To: christophe.varoqui@opensvc.com
  Cc: dm-devel@redhat.com, Yangjie (S), Zhangyanfei (UVP)


[-- Attachment #1.1: Type: text/plain, Size: 1333 bytes --]

Dear Christophe,
when dm-105 is in one state of below, paths of dm-105 will change to active if we run command of multipath. I check code of multipath, it sends messge "reinstate_path pathname" to kernel in routine reinstate_paths when status of pathgroup = "PGSTATE_ENABLED/PGSTATE_UNDEF" and path's state = "PSTATE_FAILED".
why command of multipath do above action to all dm devices? actually, parts of these paths are already offline or failed which can't be recovered. Maybe we can check these devices's status by sending io to these sd device at first. according to return of io, multipath send reinstate to running devices and do nothing to failed devices?

# multipath -ll
36d0d04b100b8cba665a187f0000000f9 dm-105 HUAWEI  ,XSG1
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=0 status=enabled
  |- 17:0:0:101 sdcy 70:96   failed faulty offline
  |- 18:0:0:101 sdgw 132:192 failed faulty offline
  `- 19:0:0:101 sdku 67:288  failed faulty offline

# multipath -ll
36d0d04b100b8cba665a187f0000000f9 dm-105 HUAWEI  ,XSG1
size=1.0G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
  |- 17:0:0:101 sdcy 70:96   failed ready running
  |- 18:0:0:101 sdgw 132:192 failed ready running
  `- 19:0:0:101 sdku 67:288  failed ready running

[-- Attachment #1.2: Type: text/html, Size: 6370 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-07-02 14:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-27  7:58 why command of multipath send reinstate message to all dm's paths Jiaojianbing
2018-06-27 13:58 ` Martin Wilck
2018-06-28  6:35   ` 答复: " Jiaojianbing
2018-06-28  7:38     ` Martin Wilck
2018-06-29 14:28       ` Douglas Gilbert
2018-07-02  1:06       ` 答复: " Jiaojianbing
2018-07-02  7:10         ` Martin Wilck
     [not found]           ` <F0921BF66894AB498DE908B06C95871AB06F9BDB@nkgeml513-mbx.china.huawei.com>
2018-07-02  9:20             ` 答复: " Martin Wilck
2018-07-02 14:48               ` Bart Van Assche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox