From: Hannes Reinecke Subject: Re: [Patch] multipath-tools: Check if multipathd is running or not and print a warning Date: Thu, 28 Jul 2016 16:35:21 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: mgandhi@redhat.com, dm-devel@redhat.com List-Id: dm-devel.ids On 07/28/2016 01:48 PM, Milan P. Gandhi wrote: > Hello, > = > With this patch dm-multipath commands e.g. multipath -v2, > multipath -ll etc. now checks if there are multipath > device maps created, and multipathd service is running = > or not? If the multipath devices are created, but multipathd = > service is not running then there will be a warning = > message displayed to inform the user that IO failover/ > failback may not work as expected without multipathd = > process running. > = > I have tested this patch with Fedora 23, and latest = > upstream multipath-tools > = > Signed-off-by: Milan P. Gandhi > --- No, this won't work. You cannot guarantee that by the time 'multipath' is called the daemon was already able to create any maps (the daemon might still be processing events, without it being able to start creating maps). So the best we can do is to check if the daemon is running and continue from there. Cheers, Hannes -- = Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N=FCrnberg GF: F. Imend=F6rffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG N=FCrnberg)