* [PATCH] mdadm: add man page for --add-journal
@ 2016-08-12 0:10 Song Liu
2016-08-12 14:58 ` Jes Sorensen
0 siblings, 1 reply; 5+ messages in thread
From: Song Liu @ 2016-08-12 0:10 UTC (permalink / raw)
To: linux-raid; +Cc: yizhan, Song Liu, Shaohua Li
Add the following to man page:
--add-journal
Recreate journal for RAID-4/5/6 array that losts journal
devices. In current implementation, this command cannot
add journal to an array that had failed journal. To
avoid interrupting on-going write opertions,
--add-journal only works for array in Read-Only state.
Reported-by: Yi Zhang <yizhan@redhat.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
---
mdadm.8.in | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/mdadm.8.in b/mdadm.8.in
index 1a04bd1..a335c53 100644
--- a/mdadm.8.in
+++ b/mdadm.8.in
@@ -1444,6 +1444,14 @@ number. The receiving node must acknowledge this message
with \-\-cluster\-confirm. Valid arguments are <slot>:<devicename> in case
the device is found or <slot>:missing in case the device is not found.
+.TP
+.BR \-\-add-journal
+Recreate journal for RAID-4/5/6 array that losts journal devices. In current
+implementation, this command cannot add journal to an array that had failed
+journal. To avoid interrupting on-going write opertions,
+.B \-\-add-journal
+only works for array in Read-Only state.
+
.P
Each of these options requires that the first device listed is the array
to be acted upon, and the remainder are component devices to be added,
--
2.8.0.rc2
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] mdadm: add man page for --add-journal 2016-08-12 0:10 [PATCH] mdadm: add man page for --add-journal Song Liu @ 2016-08-12 14:58 ` Jes Sorensen 2016-08-13 5:13 ` Adam Goryachev 0 siblings, 1 reply; 5+ messages in thread From: Jes Sorensen @ 2016-08-12 14:58 UTC (permalink / raw) To: Song Liu; +Cc: linux-raid, yizhan, Shaohua Li Song Liu <songliubraving@fb.com> writes: > Add the following to man page: > > --add-journal > Recreate journal for RAID-4/5/6 array that losts journal > devices. In current implementation, this command cannot > add journal to an array that had failed journal. To > avoid interrupting on-going write opertions, > --add-journal only works for array in Read-Only state. > > Reported-by: Yi Zhang <yizhan@redhat.com> > Signed-off-by: Song Liu <songliubraving@fb.com> > Signed-off-by: Shaohua Li <shli@fb.com> > --- > mdadm.8.in | 8 ++++++++ > 1 file changed, 8 insertions(+) Applied, with a few minor mods. I changed it to say this, I hope you are fine with that: "Recreate journal for RAID-4/5/6 array that lost a journal device. In the current implementation, this command cannot add a journal to an array that had a failed journal. To avoid interrupting on-going write opertions, " If I botched it up please let me know. Jes > > diff --git a/mdadm.8.in b/mdadm.8.in > index 1a04bd1..a335c53 100644 > --- a/mdadm.8.in > +++ b/mdadm.8.in > @@ -1444,6 +1444,14 @@ number. The receiving node must acknowledge this message > with \-\-cluster\-confirm. Valid arguments are <slot>:<devicename> in case > the device is found or <slot>:missing in case the device is not found. > > +.TP > +.BR \-\-add-journal > +Recreate journal for RAID-4/5/6 array that losts journal devices. In current > +implementation, this command cannot add journal to an array that had failed > +journal. To avoid interrupting on-going write opertions, > +.B \-\-add-journal > +only works for array in Read-Only state. > + > .P > Each of these options requires that the first device listed is the array > to be acted upon, and the remainder are component devices to be added, ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mdadm: add man page for --add-journal 2016-08-12 14:58 ` Jes Sorensen @ 2016-08-13 5:13 ` Adam Goryachev 2016-08-15 14:42 ` Jes Sorensen 0 siblings, 1 reply; 5+ messages in thread From: Adam Goryachev @ 2016-08-13 5:13 UTC (permalink / raw) To: Jes Sorensen, Song Liu; +Cc: linux-raid, yizhan, Shaohua Li On 13/08/2016 00:58, Jes Sorensen wrote: > Song Liu <songliubraving@fb.com> writes: >> Add the following to man page: >> >> --add-journal >> Recreate journal for RAID-4/5/6 array that losts journal >> devices. In current implementation, this command cannot >> add journal to an array that had failed journal. To >> avoid interrupting on-going write opertions, >> --add-journal only works for array in Read-Only state. >> >> Reported-by: Yi Zhang <yizhan@redhat.com> >> Signed-off-by: Song Liu <songliubraving@fb.com> >> Signed-off-by: Shaohua Li <shli@fb.com> >> --- >> mdadm.8.in | 8 ++++++++ >> 1 file changed, 8 insertions(+) > Applied, with a few minor mods. > > I changed it to say this, I hope you are fine with that: > > "Recreate journal for RAID-4/5/6 array that lost a journal device. In the > current implementation, this command cannot add a journal to an array > that had a failed journal. To avoid interrupting on-going write > opertions, " I think this might be more correct: "Recreate journal for RAID-4/5/6 array that lost a journal device. In the current implementation, this command cannot add a journal to an array that *has* a failed journal. To avoid interrupting on-going write *operations*, " Note the two words modified have ** has mean currently, if it had (past) a failed journal, but that has already been fixed, then it currently has a working journal, and so I assume this patch is not relevant. It's only related to if the array is currently missing a journal... The second operations is just a typo... Hope you don't mind my jumping in here, I can't help much with code, but hopefully contribution is still helpful. Regards, Adam > If I botched it up please let me know. > > Jes > > >> diff --git a/mdadm.8.in b/mdadm.8.in >> index 1a04bd1..a335c53 100644 >> --- a/mdadm.8.in >> +++ b/mdadm.8.in >> @@ -1444,6 +1444,14 @@ number. The receiving node must acknowledge this message >> with \-\-cluster\-confirm. Valid arguments are <slot>:<devicename> in case >> the device is found or <slot>:missing in case the device is not found. >> >> +.TP >> +.BR \-\-add-journal >> +Recreate journal for RAID-4/5/6 array that losts journal devices. In current >> +implementation, this command cannot add journal to an array that had failed >> +journal. To avoid interrupting on-going write opertions, >> +.B \-\-add-journal >> +only works for array in Read-Only state. >> + >> .P >> Each of these options requires that the first device listed is the array >> to be acted upon, and the remainder are component devices to be added, > -- > To unsubscribe from this list: send the line "unsubscribe linux-raid" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mdadm: add man page for --add-journal 2016-08-13 5:13 ` Adam Goryachev @ 2016-08-15 14:42 ` Jes Sorensen 2016-08-15 17:16 ` Song Liu 0 siblings, 1 reply; 5+ messages in thread From: Jes Sorensen @ 2016-08-15 14:42 UTC (permalink / raw) To: Adam Goryachev; +Cc: Song Liu, linux-raid, yizhan, Shaohua Li Adam Goryachev <mailinglists@websitemanagers.com.au> writes: > On 13/08/2016 00:58, Jes Sorensen wrote: >> Song Liu <songliubraving@fb.com> writes: >>> Add the following to man page: >>> >>> --add-journal >>> Recreate journal for RAID-4/5/6 array that losts journal >>> devices. In current implementation, this command cannot >>> add journal to an array that had failed journal. To >>> avoid interrupting on-going write opertions, >>> --add-journal only works for array in Read-Only state. >>> >>> Reported-by: Yi Zhang <yizhan@redhat.com> >>> Signed-off-by: Song Liu <songliubraving@fb.com> >>> Signed-off-by: Shaohua Li <shli@fb.com> >>> --- >>> mdadm.8.in | 8 ++++++++ >>> 1 file changed, 8 insertions(+) >> Applied, with a few minor mods. >> >> I changed it to say this, I hope you are fine with that: >> >> "Recreate journal for RAID-4/5/6 array that lost a journal device. In the >> current implementation, this command cannot add a journal to an array >> that had a failed journal. To avoid interrupting on-going write >> opertions, " > I think this might be more correct: > > "Recreate journal for RAID-4/5/6 array that lost a journal device. In the > current implementation, this command cannot add a journal to an array > that *has* a failed journal. To avoid interrupting on-going write > *operations*, " > > > Note the two words modified have ** > has mean currently, if it had (past) a failed journal, but that has > already been fixed, then it currently has a working journal, and so I > assume this patch is not relevant. It's only related to if the array > is currently missing a journal... > The second operations is just a typo... > > Hope you don't mind my jumping in here, I can't help much with code, > but hopefully contribution is still helpful. If Song is happy with this and you send me a patch, I'll be happy to apply it. Cheers, Jes ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mdadm: add man page for --add-journal 2016-08-15 14:42 ` Jes Sorensen @ 2016-08-15 17:16 ` Song Liu 0 siblings, 0 replies; 5+ messages in thread From: Song Liu @ 2016-08-15 17:16 UTC (permalink / raw) To: Jes Sorensen, Adam Goryachev Cc: linux-raid@vger.kernel.org, yizhan@redhat.com, Shaohua Li Thanks Adam and Jes. These looks good to me. PS: we will make “add-journal” more flexible, and revise the man page accordingly. Song >> On 8/15/16, 7:42 AM, "Jes Sorensen" <Jes.Sorensen@redhat.com> wrote: Adam Goryachev <mailinglists@websitemanagers.com.au> writes: > On 13/08/2016 00:58, Jes Sorensen wrote: >> Song Liu <songliubraving@fb.com> writes: >>> Add the following to man page: >>> >>> --add-journal >>> Recreate journal for RAID-4/5/6 array that losts journal >>> devices. In current implementation, this command cannot >>> add journal to an array that had failed journal. To >>> avoid interrupting on-going write opertions, >>> --add-journal only works for array in Read-Only state. >>> >>> Reported-by: Yi Zhang <yizhan@redhat.com> >>> Signed-off-by: Song Liu <songliubraving@fb.com> >>> Signed-off-by: Shaohua Li <shli@fb.com> >>> --- >>> mdadm.8.in | 8 ++++++++ >>> 1 file changed, 8 insertions(+) >> Applied, with a few minor mods. >> >> I changed it to say this, I hope you are fine with that: >> >> "Recreate journal for RAID-4/5/6 array that lost a journal device. In the >> current implementation, this command cannot add a journal to an array >> that had a failed journal. To avoid interrupting on-going write >> opertions, " > I think this might be more correct: > > "Recreate journal for RAID-4/5/6 array that lost a journal device. In the > current implementation, this command cannot add a journal to an array > that *has* a failed journal. To avoid interrupting on-going write > *operations*, " > > > Note the two words modified have ** > has mean currently, if it had (past) a failed journal, but that has > already been fixed, then it currently has a working journal, and so I > assume this patch is not relevant. It's only related to if the array > is currently missing a journal... > The second operations is just a typo... > > Hope you don't mind my jumping in here, I can't help much with code, > but hopefully contribution is still helpful. If Song is happy with this and you send me a patch, I'll be happy to apply it. Cheers, Jes ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-08-15 17:16 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-08-12 0:10 [PATCH] mdadm: add man page for --add-journal Song Liu 2016-08-12 14:58 ` Jes Sorensen 2016-08-13 5:13 ` Adam Goryachev 2016-08-15 14:42 ` Jes Sorensen 2016-08-15 17:16 ` Song Liu
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.