zoukankan      html  css  js  c++  java
  • rhel与aix中,fsck -f的区别

    先看redhat中的man fsck.ext4

    -f   Force checking even if the file system seems clean.

    强制 fsck 检查标记为“clean”的文件系统。

    f force


    再看AN15中6-8页里关于fsck这一段

    The root file system, hd4, is checked by fsck. The option -f means that the file system is checked only if it was not unmounted cleanly during the last shutdown.
    This improves the boot performance. If the check fails, LED 555 (FSCK ERROR) is shown

    knowledge center的解释

    -f Performs a fast check. Under normal circumstances, the only file systems likely to be affected by halting the system without shutting down properly are those that are mounted when the system stops. The -f flag prompts thefsck command not to check file systems that were unmounted successfully. Thefsck command determines this by inspecting thes_fmod flag in the file system superblock.

    This flag is set whenever a file system is mounted and cleared when it is unmounted successfully. If a file system is unmounted successfully, it is unlikely to have any problems. Because most file systems are unmounted successfully, not checking those file systems can reduce the checking time.

    进行快速检查。在正常情况下,通过非正确方式关闭系统来停机,受影响的文件系统仅可能是当系统停止时被挂载的那些。 -f 标志会提示 fsck 命令不要检查已经成功被卸载的文件系统。fsck 命令通过检查文件系统超级块中的 s_fmod 标志来决定这件事(是否成功卸载)。
    无论文件系统何时被挂载,或当它成功卸载的时候被清除,这个标志都将被设定。如果文件系统被成功的卸载,这不大可能会存在什么问题。因为多数文件系统被成功卸载,不检查这些文件系统能减少检查时间。

    f fast




  • 相关阅读:
    开启sftp服务日志并限制sftp访问目录
    Django-16-安装前端项目
    sql
    Django-15-用户模块、认证授权、session会话认证和token认证
    Django-14-项目工程搭建
    开发小技巧
    Django-13-类视图设计原则
    Django-11-自动生成routers路由、自定义action
    Django-9-序列化器中各种校验方式
    Django—问题—生成迁移脚本时报错:You are trying to add a non-nullable field 'gender' to interfaces without a default
  • 原文地址:https://www.cnblogs.com/jonathanyue/p/9301232.html
Copyright © 2011-2022 走看看