From: Peter Rajnoha <prajnoha@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH] systemd: lvm2-activation-generator: add missing ordering deps between generated units
Date: Mon, 16 Sep 2013 12:04:18 +0200 [thread overview]
Message-ID: <5236D7A2.90501@redhat.com> (raw)
In-Reply-To: <201309151311.r8FDBgTB032554@mx1.redhat.com>
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
prev parent reply other threads:[~2013-09-16 10:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5236D7A2.90501@redhat.com \
--to=prajnoha@redhat.com \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.