marsadm: hint on wasted disk space

This commit is contained in:
Thomas Schoebel-Theuer 2015-03-17 13:58:08 +01:00
parent c88965e24a
commit c481f75cb8
2 changed files with 24 additions and 1 deletions

View File

@ -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

View File

@ -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}"
. "}"