<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }p { margin-top: 0px; margin-bottom: 0px; }div.foxdiv20170228200925061453 { }body { font-size: 10.5pt; font-family: 'Times New Roman'; color: rgb(0, 0, 0); line-height: 1.5; }</style>
</head>
<body>
<div><span></span>
<pre style="line-height: 32px; margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="font-size: 18px; background-color: rgb(255, 255, 255);"><font face="Verdana, sans-serif"><i>Hi, </i></font></span></pre>
<pre style="line-height: 32px; margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="font-size: 18px; background-color: rgb(255, 255, 255);"><font face="Verdana, sans-serif"><i> everyone</i></font></span></pre>
<pre style="line-height: 32px; margin: 0cm 0cm 0.0001pt;"><font face="Verdana, sans-serif" style="font-size: 18px; background-color: rgb(255, 255, 255);"><i><span style="line-height: 1.5;"> </span></i></font><span style="background-color: rgba(0, 0, 0, 0); font-family: 'Verdana, sans-serif'; font-size: 18px; font-style: italic; line-height: 1.5;"> </span><i style="font-size: 18px; font-family: Verdana, sans-serif;"><span style="line-height: 19px; white-space: normal;">In my testing in the use of 3Par storage device, </span><span style="line-height: 19px; white-space: normal;">when a LUN changes LUN number</span></i></pre>
<pre style="line-height: 32px; margin: 0cm 0cm 0.0001pt;"><font face="Verdana, sans-serif" style="font-size: 18px; background-color: rgb(255, 255, 255);"><i><span style="line-height: 19px; white-space: normal;"> multipathd can not </span><span style="line-height: 19px; white-space: normal;">receive the uevent and can not </span><span style="line-height: 19px;">disable access to the device. </span></i></font></pre>
<pre style="line-height: 32px; margin: 0cm 0cm 0.0001pt;"><font face="Verdana, sans-serif"><span style="font-size: 18px; background-color: rgb(255, 255, 255);"><i><font style="line-height: 19px;"><span style=""> but for HP 6300 storage device, it can receive the uevent and disable access to the device.</span></font><span style="line-height: 19px;"> </span></i></span></font></pre>
<pre style="line-height: 32px; margin: 0cm 0cm 0.0001pt;"><font face="Verdana, sans-serif"><span style="font-size: 18px; background-color: rgb(255, 255, 255);"><i><span style="line-height: 19px;">So I think 3Par storage device don't support the case.</span></i></span></font></pre>
<pre style="line-height: 32px; margin: 0cm 0cm 0.0001pt;"><i style="font-family: Verdana, sans-serif; font-size: 18px; white-space: normal; widows: 1; background-color: window;">Now I don't have a right way to deal with the case. Thanks for your advise.</i></pre>
<pre style="line-height: 32px; margin: 0cm 0cm 0.0001pt;"><i style="font-family: Verdana, sans-serif; font-size: 18px; white-space: normal; widows: 1; background-color: window;"><br></i></pre>
<pre style="line-height: 32px; margin: 0cm 0cm 0.0001pt;"><span lang="EN-US"><font face="\Times New Roman\" size="3">root@ubuntu98:~# udevadm monitor<br>monitor will print the received events for:<br>UDEV - the event which udev sends out after rule processing<br>KERNEL - the kernel uevent<br>KERNEL[68031.677399] change /devices/virtual/block/dm-1 (block)<br>UDEV [68031.711148] change /devices/virtual/block/dm-1 (block)<br>KERNEL[68032.678563] change /devices/virtual/block/dm-1 (block)<br>UDEV [68032.705265] change /devices/virtual/block/dm-1 (block)<br>KERNEL[68033.681120] change /devices/virtual/block/dm-1 (block)<br>UDEV [68033.709744] change /devices/virtual/block/dm-1 (block)<br>KERNEL[68035.682421] change /devices/virtual/block/dm-1 (block)<br>KERNEL[68051.693362] change /devices/virtual/block/dm-2 (block)<br>UDEV [68051.722144] change /devices/virtual/block/dm-2 (block)<br>KERNEL[68052.694393] change /devices/virtual/block/dm-2 (block)<br>KERNEL[68052.694761] change /devices/virtual/block/dm-2 (block)<br>UDEV [68052.721103] change /devices/virtual/block/dm-2 (block)
</font><span style="font-family: "" verdana,sans-serif??;font-size:18px;color:rgb(0,0,0);background-color:rgba(0,font-weight:normal;font-style:italic;text-decoration:none;?="">root@ubuntu98:~# lsb_release -a<br>No LSB modules are available.<br>Distributor ID: Ubuntu<br>Description: Ubuntu 16.04 LTS<br>Release: 16.04<br>Codename: xenial
<br></span></span></pre>
</div>
<div><br>
</div>
<hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span>
<div style="margin: 10px; font-size: 10pt;">
<div style="font-size: 16px;"><font face="verdana" color="#000080"><i>All the best wishes for you.</i></font></div>
<div style="font-size: 16px;"><i style="line-height: 1.5; font-family: verdana; background-color: window;"><font color="#000080">zhangguanghui</font></i></div>
</div>
</span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;">
<div> </div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px">
<div><b>From:</b> <a href="mailto:dm-devel-bounces@redhat.com">dm-devel-bounces@redhat.com</a></div>
<div><b>Date:</b> 2016-11-04 23:32</div>
<div><b>To:</b> <a href="mailto:hare@suse.de">Hannes Reinecke</a></div>
<div><b>CC:</b> <a href="mailto:dm-devel@redhat.com">dm-devel@redhat.com</a></div>
<div><b>Subject:</b> Re: [dm-devel] [PATCH 09/10] add disable_changed_wwids option</div>
</div>
</div>
<div>
<div class="FoxDiv20170228200925061453"><!-- Converted from text/plain format -->
<p><font size="2">On Sun, Oct 30, 2016 at 02:54:14PM +0100, Hannes Reinecke wrote:<br>
> On 10/29/2016 04:55 AM, Benjamin Marzinski wrote:<br>
> >If a LUN on a storage device gets remapped while in-use by multipath,<br>
> >it's possible that the multipath device will continue writing to this<br>
> >new LUN, causing corruption. This is not multipath's fault (users<br>
> >should go remapping in-use LUNs), but it's possible for multipath to<br>
> >detect this and disable IO to the device. If disable_changed_wwids<br>
> >is set to "yes", multipathd will detect when a LUN changes wwids when it<br>
> >receives the uevent for this, and will disable access to the device<br>
> >until the LUN is mapped back.<br>
> ><br>
> >Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com><br>
> >---<br>
> > libmultipath/config.c | 1 +<br>
> > libmultipath/config.h | 1 +<br>
> > libmultipath/defaults.h | 1 +<br>
> > libmultipath/dict.c | 4 ++++<br>
> > libmultipath/discovery.c | 15 +++++++--------<br>
> > libmultipath/discovery.h | 1 +<br>
> > libmultipath/structs.h | 1 +<br>
> > multipathd/main.c | 32 ++++++++++++++++++++++++++++++++<br>
> > 8 files changed, 48 insertions(+), 8 deletions(-)<br>
> ><br>
> Hmm. Not sure if the really buys us anything. By the time we process the<br>
> uevent it might already be too late, and I/O might already have been written<br>
> to that device.<br>
> I do agree on the warning, though.<br>
<br>
I have taken some pains to try to explain this short-coming to the<br>
customer who filed this bugzilla. The good news is that in practice, the<br>
device ususally goes down when you are remapping the LUN, and you<br>
disable the device before it ever comes back. In my testing, I wasn't<br>
able to actually ever write to the wrong device with<br>
disable_changed_wwids enabled, but I do agree that you have the<br>
potential to race here.<br>
<br>
-Ben<br>
<br>
><br>
> Cheers,<br>
><br>
> Hannes<br>
> --<br>
> Dr. Hannes Reinecke zSeries & Storage<br>
> hare@suse.de +49 911 74053 688<br>
> SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg<br>
> GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)<br>
><br>
> --<br>
> dm-devel mailing list<br>
> dm-devel@redhat.com<br>
> <a href="https://www.redhat.com/mailman/listinfo/dm-devel">https://www.redhat.com/mailman/listinfo/dm-devel</a><br>
<br>
--<br>
dm-devel mailing list<br>
dm-devel@redhat.com<br>
<a href="https://www.redhat.com/mailman/listinfo/dm-devel">https://www.redhat.com/mailman/listinfo/dm-devel</a><br>
</font></p>
</div>
</div>
</blockquote>
<span style="font-size:7.5pt;font-family:华文细黑;color:gray"><span lang="EN-US">-------------------------------------------------------------------------------------------------------------------------------------<br>
</span>本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出<span lang="EN-US"><br>
</span>的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、<span lang="EN-US"><br>
</span>或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本<span lang="EN-US"><br>
</span>邮件!<span lang="EN-US"><br>
</span></span><span lang="EN-US" style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray">This e-mail and its attachments contain confidential information from H3C, which is
<br>
intended only for the person or entity whose address is listed above. Any use of the
<br>
information contained herein in any way (including, but not limited to, total or partial
<br>
disclosure, reproduction, or dissemination) by persons other than the intended <br>
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
<br>
by phone or email immediately and delete it!</span>
</body>
</html>