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来改变,文件的拥有者

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值