Is it possible to set the STORAGE parameter to 100% of the disk without specifying the volume in gigabytes?
No, and we recommend to specify not more than 90% of free space on case of a bug, otherwise your node could be broken, if there would be no free space.
You can use the value of free space taken in binary units and provide it as an allocation, but using SI (decimal) units.
For example,
df -h
take the value of free space and provide it in the STORAGE
parameter using SI units (MB, GB, TB instead of MiB, GiB, TiB), this would be roughly 90% of the free space.
I guess you mean on an empty disk. I would use the total size instead. It works on an empty and used disk.
Did you mean df -h
?
df -H
gives me a bigger value than df -h
. So the lower value would be safe to use.
You can use both, depends what you want to use in the config:
TiB (used in windows explorer but shown as TB)
-h, --human-readable - print sizes in powers of 1024 (e.g., 1023M)
TB (specified drive size)
-H, --si - print sizes in powers of 1000 (e.g., 1.1G)
I know, but @Alexey wanted to use the value of TiB as TB, but ended up in using the value of TB as TB.
Ah I see, take TiB and use TB, then yes better other way around, else its ~10% more. Sorry.
Now you got it …
You are correct, updated my typo.