diff --git a/docu/mars-manual.lyx b/docu/mars-manual.lyx index d15e8bf3..adcbc166 100644 --- a/docu/mars-manual.lyx +++ b/docu/mars-manual.lyx @@ -6577,7 +6577,8 @@ marsadm view mydata \emph default suffix. It shows a one-line status summary for each resource, optionally followed - by progress bars whenever a sync or a fetch of logfiles is currently running. + by informational lines such as progress bars whenever a sync or a fetch + of logfiles is currently running. The status line has the following fields: \end_layout @@ -6670,6 +6671,25 @@ commstate \end_layout \end_deeper +\begin_layout Labeling +\labelwidthstring 00.00.0000 +\begin_inset space ~ +\end_inset + + After that, optional lines such as progress bars are appearing only when + something unusual is happening. + These lines are subject to future changes. + For examples, wasted disk space due to missing +\family typewriter +resize +\family default + is reported when +\family typewriter +%{threshold} +\family default + is exceeded. +\end_layout + \begin_layout Labeling \labelwidthstring 00.00.0000 diff --git a/userspace/marsadm b/userspace/marsadm index a06a8992..0e549a15 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -3461,6 +3461,9 @@ my %complex_macros = "default" => "%if{%{res}}{" . " %{res} %include{diskstate} %include{replstate} %include{flags} %include{role} %include{primarynode} %include{commstate}\n" + . "%if{%>{%-{%disk-size{}}{%resource-size{}}}{%{threshold}}}{" + . " Hint: you are wasting %human-numbers{}{ }{ }{%-{%disk-size{}}{%resource-size{}}} on disk %get-disk{}\n" + . "}" . "%if{%and{%is-attach{}}{%not{%sync-reached{}}}}{" . "%include{syncinfo}" . "}"