mirror of https://github.com/schoebel/mars
marsadm: hint on wasted disk space
This commit is contained in:
parent
c88965e24a
commit
c481f75cb8
|
@ -6577,7 +6577,8 @@ marsadm view mydata
|
||||||
\emph default
|
\emph default
|
||||||
suffix.
|
suffix.
|
||||||
It shows a one-line status summary for each resource, optionally followed
|
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:
|
The status line has the following fields:
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
|
@ -6670,6 +6671,25 @@ commstate
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\end_deeper
|
\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
|
\begin_layout Labeling
|
||||||
\labelwidthstring 00.00.0000
|
\labelwidthstring 00.00.0000
|
||||||
|
|
||||||
|
|
|
@ -3461,6 +3461,9 @@ my %complex_macros =
|
||||||
"default"
|
"default"
|
||||||
=> "%if{%{res}}{"
|
=> "%if{%{res}}{"
|
||||||
. " %{res} %include{diskstate} %include{replstate} %include{flags} %include{role} %include{primarynode} %include{commstate}\n"
|
. " %{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{}}}}{"
|
. "%if{%and{%is-attach{}}{%not{%sync-reached{}}}}{"
|
||||||
. "%include{syncinfo}"
|
. "%include{syncinfo}"
|
||||||
. "}"
|
. "}"
|
||||||
|
|
Loading…
Reference in New Issue