Case:
“df” command shows total capacity of mount point is 2.7TB . Used space is 2.2TB so free space must be 0.5TB . The problem is that available space is 4.0K .
#df -h Filesystem Size Used Avail Use% Mounted on /dev/sdk1 2.7T 2.2T 4.0K 100% /data/10
Analyze:
$strace df -h
f_bavail=1 means that there is only one block which available 4K . But we know that there must be nearly 500GB free space.
f_type=”EXT2_SUPER_MAGIC”, f_bsize=4096, f_blocks=721063224, f_bfree=146511617, f_bavail=1, f_files=183140352, f_ffree=183119269, f_fsid={-1946669160, -1538398616}, f_namelen=255, f_frsize=4096}) = 0
# tune2fs -l /dev/sdk1 | grep "Reserved block count" Reserved block count: 146511616 # tune2fs -l /dev/sdk1 | grep "Reserved block count" Block size: 4096
Solution:
**How to disable “Reserved block count” ?
#tune2fs -m 0 /dev/sdk1 #tune2fs -l /dev/sdk1|grep "Reserved block count" Reserved block count:<strong> 0</strong> #df -h Filesystem Size Used Avail Use% Mounted on /dev/sdk1 2.7T 2.2T 559G 80% /data/10