首页 > 代码库 > xfs参数简介
xfs参数简介
age_buffer_centisecs
age_buffer_centisecs:(Min: 100 Default: 1500 Max: 720000) 多长时间设置为脏数据
xfsbufd_centisecs
xfsbufd_centisecs: (Min: 50 Default: 100Max: 3000)xfsbufd扫瞄脏buffer的时间间隔
xfssyncd_centisecs
xfssyncd_centisecs: (Min: 100 Default: 3000 Max: 720000)xfssyncd 刷新时间间隔(写到磁盘)
XFS sysctls - Debug
error_level (Min: 0 Default: 3 Max: 11)
文件系统出错时会显示详细信息
– A volume knob for error reporting when internal errors occur.
– This will generate detailed messages & backtraces for filesystem shutdowns, for example.
– Current threshold(阀值) values are:
• XFS_ERRLEVEL_OFF: 0
• XFS_ERRLEVEL_LOW: 1
• XFS_ERRLEVEL_HIGH: 5
panic_mask (Min: 0 Default: 0 Max: 127)
遇到指定的错误时调用BUG()(调试时用)
• XFS_NO_PTAG 0
• XFS_PTAG_IFLUSH 0x00000001
• XFS_PTAG_LOGRES 0x00000002
• XFS_PTAG_AILDELETE 0x00000004
• XFS_PTAG_ERROR_REPORT 0x00000008
• XFS_PTAG_SHUTDOWN_CORRUPT 0x00000010
• XFS_PTAG_SHUTDOWN_IOERROR 0x00000020
• XFS_PTAG_SHUTDOWN_LOGERROR 0x00000040
• This option is intended for debugging only.
XFS sysctls - Compatibility
irix_symlink_mode (Min: 0 Default: 0 Max: 1)
控制符号链接的模式是不是0777(默认)
irix_sgid_inherit (Min: 0 Default: 0 Max: 1)
把一个和文件夹不是同一个组ID的文件,放在这个文件夹里。组ID会不会变成文件夹的组ID。(默认不会)
XFS sysctls – Attribute Inheritence
inherit_sync (Min: 0 Default: 1 Max: 1)
xfs_io 下chattr 命令设置sync标志
– Setting this to "1" will cause the "sync" flag set by the xfs_io(8) chattr command on a
directory to be inherited by files in that directory.
inherit_nodump (Min: 0 Default: 1 Max: 1)
xfs_io 下chattr 命令设置nodump标志
– Setting this to "1" will cause the "nodump" flag set by the xfs_io(8) chattr command
on a directory to be inherited by files in that directory.
inherit_noatime (Min: 0 Default: 1 Max: 1)
xfs_io 下chattr 命令设置noatime标志
– Setting this to "1" will cause the "noatime" flag set by the xfs_io(8) chattr command
on a directory to be inherited by files in that directory.
inherit_nosymlinks (Min: 0 Default: 1 Max: 1)
xfs_io 下chattr 命令设置nosymlinks标志
– Setting this to "1" will cause the "nosymlinks" flag set by the xfs_io(8) chattr
command on a directory to be inherited by files in that directory.
XFS sysctls - Misc
stats_clear (Min: 0 Default: 0 Max: 1)
清除状态信息
设为1的话,会清除xfs系统累积的状态,并马上重置为0
restrict_chown (Min: 0 Default: 1 Max: 1)
控制的用户是否能够用chown来改变,文件的拥有者
xfs参数简介