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來改變,文件的擁有者

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM