linux 磁盘 space 数字不相加
linux disk space figures not adding up
我知道这个问题已经被问过很多次了,但是 none 的解决方案帮助我理解了我的问题。
这是我从 df -h
:
得到的输出
Filesystem Size Used Avail Use% Mounted on
udev 16G 4.0K 16G 1% /dev
tmpfs 3.2G 812K 3.2G 1% /run
/dev/disk/by-label/DOROOT 315G 297G 2.4G 100% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 16G 220K 16G 1% /run/shm
none 100M 28K 100M 1% /run/user
我不确定为什么 /dev/disk/by-label/DOROOT
缺少大约 15G。我用 lsof -n | grep -i deleted
检查了僵尸文件,一切正常。
这是我从 /sbin/tune2fs -l /dev/disk/by-label/DOROOT
得到的输出
tune2fs 1.42.9 (4-Feb-2014)
Filesystem volume name: DOROOT
Last mounted on: /
Filesystem UUID: 050e1e34-39e6-4072-a03e-ae0bf90ba13a
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 20971520
Block count: 83885568
Reserved block count: 4194262
Free blocks: 4737249
Free inodes: 20557856
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1004
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
RAID stride: 32639
Flex block group size: 16
Filesystem created: Thu Apr 17 11:45:13 2014
Last mount time: Mon Sep 12 07:58:15 2016
Last write time: Mon Sep 12 07:58:15 2016
Mount count: 37
Maximum mount count: -1
Last checked: Wed Feb 17 11:07:11 2016
Check interval: 0 (<none>)
Lifetime writes: 3729 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
First orphan inode: 2621902
Default directory hash: half_md4
Directory Hash Seed: ef1fcbab-03ff-497a-881b-3d32da9f753f
Journal backup: inode blocks
似乎 Reserved Block Count
也没有占用太多 space。
如何找到 /dev/disk/by-label/DOROOT
剩余的 15 场演出的现场?
您是否截断了任何保留 space 的文件?
用'losetup --all'试试看你的DOROOT里面有没有loop设备...
Reserved block count: 4194262
Block size: 4096
4096*4194262 小于 16 GiB。有什么玄机?
我知道这个问题已经被问过很多次了,但是 none 的解决方案帮助我理解了我的问题。
这是我从 df -h
:
Filesystem Size Used Avail Use% Mounted on
udev 16G 4.0K 16G 1% /dev
tmpfs 3.2G 812K 3.2G 1% /run
/dev/disk/by-label/DOROOT 315G 297G 2.4G 100% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 16G 220K 16G 1% /run/shm
none 100M 28K 100M 1% /run/user
我不确定为什么 /dev/disk/by-label/DOROOT
缺少大约 15G。我用 lsof -n | grep -i deleted
检查了僵尸文件,一切正常。
这是我从 /sbin/tune2fs -l /dev/disk/by-label/DOROOT
tune2fs 1.42.9 (4-Feb-2014)
Filesystem volume name: DOROOT
Last mounted on: /
Filesystem UUID: 050e1e34-39e6-4072-a03e-ae0bf90ba13a
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 20971520
Block count: 83885568
Reserved block count: 4194262
Free blocks: 4737249
Free inodes: 20557856
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1004
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
RAID stride: 32639
Flex block group size: 16
Filesystem created: Thu Apr 17 11:45:13 2014
Last mount time: Mon Sep 12 07:58:15 2016
Last write time: Mon Sep 12 07:58:15 2016
Mount count: 37
Maximum mount count: -1
Last checked: Wed Feb 17 11:07:11 2016
Check interval: 0 (<none>)
Lifetime writes: 3729 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
First orphan inode: 2621902
Default directory hash: half_md4
Directory Hash Seed: ef1fcbab-03ff-497a-881b-3d32da9f753f
Journal backup: inode blocks
似乎 Reserved Block Count
也没有占用太多 space。
如何找到 /dev/disk/by-label/DOROOT
剩余的 15 场演出的现场?
您是否截断了任何保留 space 的文件?
用'losetup --all'试试看你的DOROOT里面有没有loop设备...
Reserved block count: 4194262
Block size: 4096
4096*4194262 小于 16 GiB。有什么玄机?