FreeBSD / Junos df - disk space usage shows 108% used space - tunefs
On FreeBSD (also valid for Junos), all filesystem have, by default, 8% of the space that can only be filled by root user processes or kernel threads.
"df" utility will always show filesystem usage as percentage of the unreserved space.
Quote from FreeBSD documentation:
Quote:
How is it possible for a partition to be more than 100% full?
A portion of each UFS partition (8%, by default) is reserved for use by the operating system and the root user. df(1) does not count that space when calculating the Capacity column, so it can exceed 100%. Also, you will notice that the Blocks column is always greater than the sum of the Used and Avail columns, usually by a factor of 8%.
How to check the percentage of disk space reserved for root in FreeBSD / Junos using the
tunefs filesystem utility:
Code:
% tunefs -p /cf/var
tunefs: ACLs: (-a) disabled
tunefs: MAC multilabel: (-l) disabled
tunefs: soft updates: (-n) disabled
tunefs: maximum blocks per file in a cylinder group: (-e) 2048
tunefs: average file size: (-f) 16384
tunefs: average number of files in a directory: (-s) 64
tunefs: minimum percentage of free space: (-m) 8%
tunefs: optimization preference: (-o) time
tunefs: volume label: (-L)