1.2.2. GFS 和​​​​​​​ GFS2 之​​​​​​​间​​​​​​​的​​​​​​​其​​​​​​​它​​​​​​​不​​​​​​​同​​​​​​​之​​​​​​​处​​​​​​​


This section summarizes the additional differences in GFS and GFS2 administration that are not described in 第 1.2.1 节 “GFS2 命​​​​​​​令​​​​​​​名​​​​​​​称​​​​​​​”.

上​​​​​​​下​​​​​​​文​​​​​​​关​​​​​​​联​​​​​​​路​​​​​​​径​​​​​​​名​​​​​​​

GFS2 file systems do not provide support for context-dependent path names, which allow you to create symbolic links that point to variable destination files or directories. For this functionality in GFS2, you can use the bind option of the mount command. For information on managing pathnames in GFS2, see 第 3.11 节 “绑​​​​​​​定​​​​​​​挂​​​​​​​载​​​​​​​以​​​​​​​及​​​​​​​上​​​​​​​下​​​​​​​文​​​​​​​关​​​​​​​联​​​​​​​路​​​​​​​径​​​​​​​名​​​​​​​”.

gfs2.ko 模​​​​​​​块​​​​​​​

使​​​​​​​用​​​​​​​ GFS 文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​的​​​​​​​内​​​​​​​核​​​​​​​模​​​​​​​块​​​​​​​是​​​​​​​ gfs.ko。​​​​​​​使​​​​​​​用​​​​​​​ GFS2 文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​的​​​​​​​内​​​​​​​核​​​​​​​模​​​​​​​块​​​​​​​是​​​​​​​ gfs2.ko。​​​​​​​

在​​​​​​​ GFS2 中​​​​​​​启​​​​​​​用​​​​​​​配​​​​​​​额​​​​​​​强​​​​​​​制​​​​​​​

In GFS2 file systems, quota enforcement is disabled by default and must be explicitly enabled. To enable and disable quotas for GFS2 file systems, you use the quota=on|off|account option for the mount command. For information on enabling and disabling quota enforcement, see 第 3.4.4 节 “启​​​​​​​用​​​​​​​/禁​​​​​​​用​​​​​​​配​​​​​​​额​​​​​​​强​​​​​​​制​​​​​​​”.

数​​​​​​​据​​​​​​​日​​​​​​​志​​​​​​​

GFS2 file systems support the use of the chattr command to set and clear the j flag on a file or directory. Setting the +j flag on a file enables data journaling on that file. Setting the +j flag on a directory means "inherit jdata", which indicates that all files and directories subsequently created in that directory are journaled. Using the chattr command is the preferred way to enable and disable data journaling on a file.

动​​​​​​​态​​​​​​​添​​​​​​​加​​​​​​​日​​​​​​​志​​​​​​​

In GFS2 file systems, journals are plain (though hidden) files instead of embedded metadata. This means that journals can be dynamically added as additional servers mount a filesystem. For information on adding journals to a GFS2 file system, see 第 3.6 节 “在​​​​​​​文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​中​​​​​​​添​​​​​​​加​​​​​​​日​​​​​​​志​​​​​​​”.

删​​​​​​​除​​​​​​​ atime_quantum 参​​​​​​​数​​​​​​​

GFS2 文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​不​​​​​​​支​​​​​​​持​​​​​​​ atime_quantum 可​​​​​​​调​​​​​​​节​​​​​​​参​​​​​​​数​​​​​​​,GFS 文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​可​​​​​​​使​​​​​​​用​​​​​​​该​​​​​​​参​​​​​​​数​​​​​​​指​​​​​​​定​​​​​​​ atime 更​​​​​​​新​​​​​​​的​​​​​​​频​​​​​​​率​​​​​​​。​​​​​​​在​​​​​​​ GFS2 中​​​​​​​支​​​​​​​持​​​​​​​ relatime 和​​​​​​​ noatime 挂​​​​​​​载​​​​​​​选​​​​​​​项​​​​​​​。​​​​​​​建​​​​​​​议​​​​​​​您​​​​​​​使​​​​​​​用​​​​​​​ relatime 挂​​​​​​​载​​​​​​​选​​​​​​​项​​​​​​​获​​​​​​​得​​​​​​​与​​​​​​​在​​​​​​​ GFS 中​​​​​​​使​​​​​​​用​​​​​​​ atime_quantum 参​​​​​​​数​​​​​​​时​​​​​​​得​​​​​​​到​​​​​​​的​​​​​​​类​​​​​​​似​​​​​​​行​​​​​​​为​​​​​​​。​​​​​​​

mount 命​​​​​​​令​​​​​​​的​​​​​​​ data= 选​​​​​​​项​​​​​​​

在​​​​​​​挂​​​​​​​载​​​​​​​ GFS2 文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​时​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​指​​​​​​​定​​​​​​​ mount 命​​​​​​​令​​​​​​​的​​​​​​​ data=ordered 或​​​​​​​者​​​​​​​ data=writeback 选​​​​​​​项​​​​​​​。​​​​​​​当​​​​​​​设​​​​​​​定​​​​​​​ data=ordered 时​​​​​​​,传​​​​​​​输​​​​​​​中​​​​​​​修​​​​​​​改​​​​​​​的​​​​​​​用​​​​​​​户​​​​​​​数​​​​​​​据​​​​​​​会​​​​​​​在​​​​​​​传​​​​​​​输​​​​​​​被​​​​​​​递​​​​​​​交​​​​​​​到​​​​​​​磁​​​​​​​盘​​​​​​​前​​​​​​​被​​​​​​​冲​​​​​​​入​​​​​​​磁​​​​​​​盘​​​​​​​。​​​​​​​这​​​​​​​样​​​​​​​可​​​​​​​以​​​​​​​让​​​​​​​用​​​​​​​户​​​​​​​无​​​​​​​法​​​​​​​在​​​​​​​崩​​​​​​​溃​​​​​​​后​​​​​​​的​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​看​​​​​​​到​​​​​​​未​​​​​​​初​​​​​​​始​​​​​​​化​​​​​​​的​​​​​​​块​​​​​​​。​​​​​​​设​​​​​​​定​​​​​​​ data=writeback 时​​​​​​​,用​​​​​​​户​​​​​​​数​​​​​​​据​​​​​​​会​​​​​​​在​​​​​​​磁​​​​​​​盘​​​​​​​有​​​​​​​数​​​​​​​据​​​​​​​后​​​​​​​的​​​​​​​任​​​​​​​何​​​​​​​时​​​​​​​候​​​​​​​被​​​​​​​写​​​​​​​入​​​​​​​磁​​​​​​​盘​​​​​​​。​​​​​​​这​​​​​​​样​​​​​​​无​​​​​​​法​​​​​​​提​​​​​​​供​​​​​​​ ordered 模​​​​​​​式​​​​​​​可​​​​​​​提​​​​​​​供​​​​​​​的​​​​​​​一​​​​​​​致​​​​​​​性​​​​​​​保​​​​​​​障​​​​​​​,但​​​​​​​对​​​​​​​某​​​​​​​些​​​​​​​工​​​​​​​作​​​​​​​负​​​​​​​载​​​​​​​来​​​​​​​说​​​​​​​可​​​​​​​稍​​​​​​​微​​​​​​​加​​​​​​​快​​​​​​​一​​​​​​​些​​​​​​​速​​​​​​​度​​​​​​​。​​​​​​​默​​​​​​​认​​​​​​​设​​​​​​​置​​​​​​​是​​​​​​​ ordered 模​​​​​​​式​​​​​​​。​​​​​​​

gfs2_tool 命​​​​​​​令​​​​​​​

gfs2_tool 为​​​​​​​ GFS2 支​​​​​​​持​​​​​​​的​​​​​​​选​​​​​​​项​​​​​​​组​​​​​​​与​​​​​​​ gfs_tool 命​​​​​​​令​​​​​​​为​​​​​​​ GFS 支​​​​​​​持​​​​​​​的​​​​​​​选​​​​​​​项​​​​​​​组​​​​​​​不​​​​​​​同​​​​​​​:
  • gfs2_tool 命​​​​​​​令​​​​​​​支​​​​​​​持​​​​​​​ journals 参​​​​​​​数​​​​​​​,它​​​​​​​可​​​​​​​输​​​​​​​出​​​​​​​当​​​​​​​前​​​​​​​配​​​​​​​置​​​​​​​日​​​​​​​志​​​​​​​有​​​​​​​关​​​​​​​信​​​​​​​息​​​​​​​,其​​​​​​​中​​​​​​​包​​​​​​​括​​​​​​​文​​​​​​​件​​​​​​​系​​​​​​​统​​​​​​​包​​​​​​​含​​​​​​​的​​​​​​​日​​​​​​​志​​​​​​​数​​​​​​​。​​​​​​​
  • gfs2_tool 命​​​​​​​令​​​​​​​不​​​​​​​支​​​​​​​持​​​​​​​ counters 标​​​​​​​签​​​​​​​,而​​​​​​​ gfs_tool 命​​​​​​​令​​​​​​​可​​​​​​​使​​​​​​​用​​​​​​​该​​​​​​​标​​​​​​​签​​​​​​​显​​​​​​​示​​​​​​​ GFS 统​​​​​​​计​​​​​​​。​​​​​​​
  • The gfs2_tool command does not support the inherit_jdata flag. To flag a directory as "inherit jdata", you can set the jdata flag on the directory or you can use the chattr command to set the +j flag on the directory. Using the chattr command is the preferred way to enable and disable data journaling on a file.

gfs2_edit 命​​​​​​​令​​​​​​​

gfs2_edit 命​​​​​​​令​​​​​​​为​​​​​​​ GFS2 支​​​​​​​持​​​​​​​的​​​​​​​选​​​​​​​项​​​​​​​组​​​​​​​与​​​​​​​ gfs_edit 命​​​​​​​令​​​​​​​为​​​​​​​ GFS 支​​​​​​​持​​​​​​​的​​​​​​​选​​​​​​​项​​​​​​​组​​​​​​​不​​​​​​​同​​​​​​​。​​​​​​​
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.