[dm-devel] [PATCH 09/18] Make multipath deactivate devices before iscsi shutdown

Hannes Reinecke hare at suse.de
Mon Oct 12 07:05:07 UTC 2015


On 10/08/2015 09:44 PM, Benjamin Marzinski wrote:
> The multipath devices need to be deactivated before iscsi is shutdown,
> otherwise the multipath devices will generate a lot of error messages
> when it loses its iscsi path devices.
> 
> Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>
> ---
>  multipathd/multipathd.service | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/multipathd/multipathd.service b/multipathd/multipathd.service
> index b5b755b..fc2e009 100644
> --- a/multipathd/multipathd.service
> +++ b/multipathd/multipathd.service
> @@ -1,5 +1,6 @@
>  [Unit]
>  Description=Device-Mapper Multipath Device Controller
> +Requires=blk-availability.service
>  Before=iscsi.service iscsid.service lvm2-activation-early.service
>  Before=local-fs-pre.target
>  After=multipathd.socket
> 

This will limit multipath to run on root-on-iSCSI scenarios. You
cannot run multipath on non-iSCSI and have a non-root share on iSCSI
after this change.
Is that intended?

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		               zSeries & Storage
hare at suse.de			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)




More information about the dm-devel mailing list