From: Hannes Reinecke Subject: Re: [PATCH 09/10] add disable_changed_wwids option Date: Sun, 30 Oct 2016 14:54:14 +0100 Message-ID: <55d8a18c-5c35-5d84-3b4a-557075aaa69d@suse.de> References: <1477709726-5442-1-git-send-email-bmarzins@redhat.com> <1477709726-5442-10-git-send-email-bmarzins@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1477709726-5442-10-git-send-email-bmarzins@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: dm-devel@redhat.com List-Id: dm-devel.ids On 10/29/2016 04:55 AM, Benjamin Marzinski wrote: > If a LUN on a storage device gets remapped while in-use by multipath, > it's possible that the multipath device will continue writing to this > new LUN, causing corruption. This is not multipath's fault (users > should go remapping in-use LUNs), but it's possible for multipath to > detect this and disable IO to the device. If disable_changed_wwids > is set to "yes", multipathd will detect when a LUN changes wwids when it > receives the uevent for this, and will disable access to the device > until the LUN is mapped back. > > Signed-off-by: Benjamin Marzinski > --- > libmultipath/config.c | 1 + > libmultipath/config.h | 1 + > libmultipath/defaults.h | 1 + > libmultipath/dict.c | 4 ++++ > libmultipath/discovery.c | 15 +++++++-------- > libmultipath/discovery.h | 1 + > libmultipath/structs.h | 1 + > multipathd/main.c | 32 ++++++++++++++++++++++++++++++++ > 8 files changed, 48 insertions(+), 8 deletions(-) > Hmm. Not sure if the really buys us anything. By the time we process the = uevent it might already be too late, and I/O might already have been = written to that device. I do agree on the warning, though. Cheers, Hannes -- = Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg GF: J. Hawn, J. Guild, F. Imend=F6rffer, HRB 16746 (AG N=FCrnberg)