initramfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mdraid: add grow continue service.
@ 2020-08-26  7:52 Mariusz Tkaczyk
       [not found] ` <20200826075259.9416-1-mariusz.tkaczyk-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Mariusz Tkaczyk @ 2020-08-26  7:52 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: harald.hoyer-Re5JQEeQqe8AvxtiuMwx3w

During raid assembly mdadm will call mdadm-grow-continue.service if reshape is
in progress.
If service doesn't exist then it is done via fork. But systemd will kill
it unconditionally after processing all events. 

Add proper service and allow systemd to manage reshape correctly.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
 modules.d/90mdraid/module-setup.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh
index f59d84a8..67acb047 100755
--- a/modules.d/90mdraid/module-setup.sh
+++ b/modules.d/90mdraid/module-setup.sh
@@ -136,6 +136,9 @@ install() {
         if [ -e $dracutsysrootdir$systemdsystemunitdir/mdadm-last-resort@.timer ]; then
             inst_simple $systemdsystemunitdir/mdadm-last-resort@.timer
         fi
+        if [ -e $dracutsysrootdir$systemdsystemunitdir/mdadm-grow-continue@.service ]; then
+            inst_simple $systemdsystemunitdir/mdadm-grow-continue@.service
+        fi
     fi
     inst_hook pre-shutdown 30 "$moddir/mdmon-pre-shutdown.sh"
     dracut_need_initqueue
-- 
2.25.0


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

* RE: [PATCH] mdraid: add grow continue service.
       [not found] ` <20200826075259.9416-1-mariusz.tkaczyk-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
@ 2020-10-26  9:37   ` Tkaczyk, Mariusz
  0 siblings, 0 replies; 2+ messages in thread
From: Tkaczyk, Mariusz @ 2020-10-26  9:37 UTC (permalink / raw)
  To: Tkaczyk, Mariusz, initramfs-u79uwXL29TY76Z2rM5mHXA
  Cc: harald.hoyer-Re5JQEeQqe8AvxtiuMwx3w

Hi,
Could someone guide me? Did I send patch correctly?
Is there another place where dracut is maintained?

TIA.
Mariusz

-----Original Message-----
From: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org <initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org> On Behalf Of Mariusz Tkaczyk
Sent: Wednesday, August 26, 2020 9:53 AM
To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: harald.hoyer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Subject: [PATCH] mdraid: add grow continue service.

During raid assembly mdadm will call mdadm-grow-continue.service if reshape is in progress.
If service doesn't exist then it is done via fork. But systemd will kill it unconditionally after processing all events. 

Add proper service and allow systemd to manage reshape correctly.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
 modules.d/90mdraid/module-setup.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh
index f59d84a8..67acb047 100755
--- a/modules.d/90mdraid/module-setup.sh
+++ b/modules.d/90mdraid/module-setup.sh
@@ -136,6 +136,9 @@ install() {
         if [ -e $dracutsysrootdir$systemdsystemunitdir/mdadm-last-resort@.timer ]; then
             inst_simple $systemdsystemunitdir/mdadm-last-resort@.timer
         fi
+        if [ -e $dracutsysrootdir$systemdsystemunitdir/mdadm-grow-continue@.service ]; then
+            inst_simple $systemdsystemunitdir/mdadm-grow-continue@.service
+        fi
     fi
     inst_hook pre-shutdown 30 "$moddir/mdmon-pre-shutdown.sh"
     dracut_need_initqueue

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

end of thread, other threads:[~2020-10-26  9:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-26  7:52 [PATCH] mdraid: add grow continue service Mariusz Tkaczyk
     [not found] ` <20200826075259.9416-1-mariusz.tkaczyk-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2020-10-26  9:37   ` Tkaczyk, Mariusz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).