All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] systemd: stop lvm2-pvscan@.service before lvm2-lvmetad.service
@ 2015-03-29 21:06 Michael Lass
  2015-03-31 13:52 ` Peter Rajnoha
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Lass @ 2015-03-29 21:06 UTC (permalink / raw)
  To: lvm-devel

When lvm2-pvscan at .service and lvm2-lvmetad.service are scheduled to be stopped
lvm2-pvscan at .service should be stopped first since pvscan uses lvmetad.

This is especially important if lvm2-lvmetad.socket is also scheduled to be
stopped as in this case connection requests are suppressed causing pvscan to
fail.
---
 scripts/lvm2_pvscan_systemd_red_hat at .service.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lvm2_pvscan_systemd_red_hat at .service.in b/scripts/lvm2_pvscan_systemd_red_hat at .service.in
index 7d3b291..03651d5 100644
--- a/scripts/lvm2_pvscan_systemd_red_hat at .service.in
+++ b/scripts/lvm2_pvscan_systemd_red_hat at .service.in
@@ -4,7 +4,7 @@ Documentation=man:pvscan(8)
 DefaultDependencies=no
 BindsTo=dev-block-%i.device
 Requires=lvm2-lvmetad.socket
-After=lvm2-lvmetad.socket
+After=lvm2-lvmetad.socket lvm2-lvmetad.service
 Before=shutdown.target
 Conflicts=shutdown.target
 
-- 
2.3.4



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

* [PATCH] systemd: stop lvm2-pvscan@.service before lvm2-lvmetad.service
  2015-03-29 21:06 [PATCH] systemd: stop lvm2-pvscan@.service before lvm2-lvmetad.service Michael Lass
@ 2015-03-31 13:52 ` Peter Rajnoha
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Rajnoha @ 2015-03-31 13:52 UTC (permalink / raw)
  To: lvm-devel

On 03/29/2015 11:06 PM, Michael Lass wrote:
> When lvm2-pvscan at .service and lvm2-lvmetad.service are scheduled to be stopped
> lvm2-pvscan at .service should be stopped first since pvscan uses lvmetad.
> 
> This is especially important if lvm2-lvmetad.socket is also scheduled to be
> stopped as in this case connection requests are suppressed causing pvscan to
> fail.
> ---
>  scripts/lvm2_pvscan_systemd_red_hat at .service.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/lvm2_pvscan_systemd_red_hat at .service.in b/scripts/lvm2_pvscan_systemd_red_hat at .service.in
> index 7d3b291..03651d5 100644
> --- a/scripts/lvm2_pvscan_systemd_red_hat at .service.in
> +++ b/scripts/lvm2_pvscan_systemd_red_hat at .service.in
> @@ -4,7 +4,7 @@ Documentation=man:pvscan(8)
>  DefaultDependencies=no
>  BindsTo=dev-block-%i.device
>  Requires=lvm2-lvmetad.socket
> -After=lvm2-lvmetad.socket
> +After=lvm2-lvmetad.socket lvm2-lvmetad.service
>  Before=shutdown.target
>  Conflicts=shutdown.target
>  
> 

Applied. Thanks!

https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=666738d57a6e6b4005030995a9641933c1a54e9d

-- 
Peter



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

end of thread, other threads:[~2015-03-31 13:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-29 21:06 [PATCH] systemd: stop lvm2-pvscan@.service before lvm2-lvmetad.service Michael Lass
2015-03-31 13:52 ` Peter Rajnoha

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.