作家
登录

Linux中管理EXT2、 EXT3和EXT4文件系统健康状况的4个工具

作者: 来源: 2017-11-23 10:16:26 阅读 我要评论

  • show_debugfs_params, params 
  • Show debugfs parameters 
  • open_filesys, open       Open a filesystem 
  • close_filesys, close     Close the filesystem 
  • freefrag, e2freefrag     Report free space fragmentation 
  • feature, features        Set/print superblock features 
  • dirty_filesys, dirty     Mark the filesystem as dirty 
  • init_filesys             Initialize a filesystem (DESTROYS DATA) 
  • show_super_stats, stats  Show superblock statistics 
  • ncheck                   Do inode->name translation 
  • icheck                   Do block->inode translation 
  • change_root_directory, chroot 
  • .... 
  • 要展示未应用空间的碎片,应用 freefrag 请求,像如许:

    1. debugfs: freefrag 

    示例输出:

    1. Device: /dev/sda10 
    2. Blocksize: 4096 bytes 
    3. Total blocks: 86154752 
    4. Free blocks: 22387732 (26.0%) 
    5. Minfree extent: 4 KB  
    6. Maxfree extent: 2064256 KB 
    7. Avgfree extent: 2664 KB 
    8. Num. free extent: 33625 
    9. HISTOGRAM OF FREE EXTENT SIZES: 
    10. Extent Size Range :  Free extents   Free Blocks  Percent 
    11. 4K...    8K-  :          4883          4883    0.02% 
    12. 8K...   16K-  :          4029          9357    0.04% 
    13. 16K...   32K-  :          3172         15824    0.07% 
    14. 32K...   64K-  :          2523         27916    0.12% 
    15. 64K...  128K-  :          2041         45142    0.20% 
    16. 128K...  256K-  :          2088         95442    0.43% 

        推荐阅读

        现代IM系统中消息推送和存储架构的实现

      Tech Neo技巧沙龙 | 11月25号,九州云/ZStack与您一路商量云时代收集界线治理实践 媒介IM全称是『Instant Mess>>>详细阅读


      本文标题:Linux中管理EXT2、 EXT3和EXT4文件系统健康状况的4个工具

      地址:http://www.17bianji.com/lsqh/39174.html

    关键词: 探索发现

    乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

    网友点评
    自媒体专栏

    评论

    热度

    精彩导读
    栏目ID=71的表不存在(操作类型=0)