用了多少 inode、多少空间,还剩多少,是否快爆满、是否应该通知客户升级 Xen 硬盘
这些 xentop 就心有余而力不足啦
[root@Rocky ~]# xentop
这里使用 dumpe2fs 为您排除忧愁哦
虽然不是特别准确、但也不会太离谱了啦
[root@localhost ~]# dumpe2fs -h /dev/xvda1 dumpe2fs 1.39 (29-May-2006) Filesystem volume name: / Last mounted on: <not available> Filesystem UUID: 218c169f-a405-4862-afe6-3913c81beb37 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file Default mount options: user_xattr acl Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 767232 Block count: 767095 Reserved block count: 38354 Free blocks: 439490 Free inodes: 716246 First block: 0 Block size: 4096 Fragment size: 4096 Reserved GDT blocks: 187 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 31968 Inode blocks per group: 999 Filesystem created: Tue Apr 9 01:07:47 2013 Last mount time: Tue Apr 9 09:44:18 2013 Last write time: Tue Apr 9 09:44:18 2013 Mount count: 3 Maximum mount count: -1 Last checked: Tue Apr 9 01:07:47 2013 Check interval: 0 (<none>) Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Journal inode: 8 First orphan inode: 171042 Default directory hash: tea Directory Hash Seed: 839d1c07-6fc3-4794-9526-92d5ef94fa19 Journal backup: inode blocks Journal size: 64M
从上面的:
Inode count, Block count, Free blocks, Free inodes, Block size
等就可以判断出硬盘的使用率情况