* [PATCH] systemd: lvm2-activation-generator: add missing ordering deps between generated units
@ 2013-09-15 12:26 Alexander Tsoy
2013-09-16 10:04 ` Peter Rajnoha
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Tsoy @ 2013-09-15 12:26 UTC (permalink / raw)
To: lvm-devel
If two units run in parrallel, then one of them enter failing
state because device is busy:
"device-mapper: create ioctl on <VG-LV> failed: Device or resource
busy"
See: https://bugs.gentoo.org/show_bug.cgi?id=480066
---
scripts/lvm2_activation_generator_systemd_red_hat.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/lvm2_activation_generator_systemd_red_hat.c b/scripts/lvm2_activation_generator_systemd_red_hat.c
index 7e93d7d..cf6da2f 100644
--- a/scripts/lvm2_activation_generator_systemd_red_hat.c
+++ b/scripts/lvm2_activation_generator_systemd_red_hat.c
@@ -134,8 +134,8 @@ static int generate_unit(const char *dir, int unit)
"DefaultDependencies=no\n", f);
if (unit == UNIT_NET) {
- fputs("After=iscsi.service fcoe.service\n"
- "Before=remote-fs.target shutdown.target\n\n"
+ fputs("After=lvm2-activation-early.service iscsi.service fcoe.service\n"
+ "Before=lvm2-activation.service remote-fs.target shutdown.target\n\n"
"[Service]\n"
"ExecStartPre=/usr/bin/udevadm settle\n", f);
} else {
--
1.8.1.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] systemd: lvm2-activation-generator: add missing ordering deps between generated units
2013-09-15 12:26 [PATCH] systemd: lvm2-activation-generator: add missing ordering deps between generated units Alexander Tsoy
@ 2013-09-16 10:04 ` Peter Rajnoha
0 siblings, 0 replies; 2+ messages in thread
From: Peter Rajnoha @ 2013-09-16 10:04 UTC (permalink / raw)
To: lvm-devel
On 09/15/2013 02:26 PM, Alexander Tsoy (by way of Alexander Tsoy <alexander@tsoy.me>) wrote:
> If two units run in parrallel, then one of them enter failing
> state because device is busy:
>
> "device-mapper: create ioctl on <VG-LV> failed: Device or resource
> busy"
>
> See: https://bugs.gentoo.org/show_bug.cgi?id=480066
> ---
> scripts/lvm2_activation_generator_systemd_red_hat.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/lvm2_activation_generator_systemd_red_hat.c b/scripts/lvm2_activation_generator_systemd_red_hat.c
> index 7e93d7d..cf6da2f 100644
> --- a/scripts/lvm2_activation_generator_systemd_red_hat.c
> +++ b/scripts/lvm2_activation_generator_systemd_red_hat.c
> @@ -134,8 +134,8 @@ static int generate_unit(const char *dir, int unit)
> "DefaultDependencies=no\n", f);
>
> if (unit == UNIT_NET) {
> - fputs("After=iscsi.service fcoe.service\n"
> - "Before=remote-fs.target shutdown.target\n\n"
> + fputs("After=lvm2-activation-early.service iscsi.service fcoe.service\n"
> + "Before=lvm2-activation.service remote-fs.target shutdown.target\n\n"
> "[Service]\n"
> "ExecStartPre=/usr/bin/udevadm settle\n", f);
> } else {
>
Thanks for the patch! However, I've modified it a bit so the ordering is set to:
lvm2-activation-early.service -> lvm2-activation.service -> lvm2-activation-net.service
This was the originally intended order. The patch applied upstream:
https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=9742c5192e8871ebde12856170dae70ee861ef40
Peter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-16 10:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-15 12:26 [PATCH] systemd: lvm2-activation-generator: add missing ordering deps between generated units Alexander Tsoy
2013-09-16 10:04 ` 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.