Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

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 指​​​​​​​令​​​​​​​名​​​​​​​稱​​​​​​​”.

1.2.2.1. 本​​​​​​​文​​​​​​​相​​​​​​​關​​​​​​​的​​​​​​​路​​​​​​​徑​​​​​​​名​​​​​​​稱​​​​​​​

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.12, “Bind 掛​​​​​​​載​​​​​​​與​​​​​​​本​​​​​​​文​​​​​​​相​​​​​​​關​​​​​​​的​​​​​​​路​​​​​​​徑​​​​​​​名​​​​​​​稱​​​​​​​”.

1.2.2.2. gfs2.ko 模​​​​​​​組​​​​​​​

GFS 檔​​​​​​​案​​​​​​​系​​​​​​​統​​​​​​​的​​​​​​​核​​​​​​​心​​​​​​​模​​​​​​​組​​​​​​​是​​​​​​​ gfs.ko。​​​​​​​GFS2 檔​​​​​​​案​​​​​​​系​​​​​​​統​​​​​​​的​​​​​​​核​​​​​​​心​​​​​​​模​​​​​​​組​​​​​​​是​​​​​​​ gfs2.ko。​​​​​​​

1.2.2.3. 啟​​​​​​​用​​​​​​​ 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.5.4, “啟​​​​​​​用​​​​​​​/停​​​​​​​用​​​​​​​磁​​​​​​​碟​​​​​​​配​​​​​​​額​​​​​​​執​​​​​​​行​​​​​​​”.

1.2.2.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.

1.2.2.5. 動​​​​​​​態​​​​​​​新​​​​​​​增​​​​​​​日​​​​​​​誌​​​​​​​

In GFS file systems, journals are embedded metadata that exists outside of the file system, making it necessary to extend the size of the logical volume that contains the file system before adding journals. In GFS2 file systems, journals are plain (though hidden) files. This means that for GFS2 file systems, journals can be dynamically added as additional servers mount a filesystem, as long as space remains on the file system for the additional journals. For information on adding journals to a GFS2 file system, see 節 3.7, “新​​​​​​​增​​​​​​​日​​​​​​​誌​​​​​​​至​​​​​​​檔​​​​​​​案​​​​​​​系​​​​​​​統​​​​​​​”.

1.2.2.6. 移​​​​​​​除​​​​​​​ atime_quantum 參​​​​​​​數​​​​​​​

GFS2 檔​​​​​​​案​​​​​​​系​​​​​​​統​​​​​​​並​​​​​​​不​​​​​​​支​​​​​​​援​​​​​​​ atime_quantum 這​​​​​​​調​​​​​​​整​​​​​​​選​​​​​​​項​​​​​​​。​​​​​​​GFS 檔​​​​​​​案​​​​​​​系​​​​​​​統​​​​​​​中​​​​​​​的​​​​​​​這​​​​​​​個​​​​​​​選​​​​​​​項​​​​​​​是​​​​​​​用​​​​​​​來​​​​​​​決​​​​​​​定​​​​​​​ atime 更​​​​​​​新​​​​​​​多​​​​​​​久​​​​​​​會​​​​​​​發​​​​​​​生​​​​​​​一​​​​​​​次​​​​​​​。​​​​​​​GFS2 支​​​​​​​援​​​​​​​的​​​​​​​是​​​​​​​ relatime 與​​​​​​​ noatime 掛​​​​​​​載​​​​​​​選​​​​​​​項​​​​​​​,前​​​​​​​者​​​​​​​可​​​​​​​以​​​​​​​用​​​​​​​來​​​​​​​達​​​​​​​成​​​​​​​ GFS atime_quantum 參​​​​​​​數​​​​​​​類​​​​​​​似​​​​​​​的​​​​​​​功​​​​​​​能​​​​​​​。​​​​​​​

1.2.2.7. 掛​​​​​​​載​​​​​​​指​​​​​​​令​​​​​​​的​​​​​​​「​​​​​​​data=」​​​​​​​選​​​​​​​項​​​​​​​

掛​​​​​​​載​​​​​​​ GFS2 檔​​​​​​​案​​​​​​​系​​​​​​​統​​​​​​​時​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​指​​​​​​​定​​​​​​​ mount 指​​​​​​​令​​​​​​​的​​​​​​​ data=ordered 或​​​​​​​ data=writeback 選​​​​​​​項​​​​​​​。​​​​​​​當​​​​​​​ data=ordered 被​​​​​​​設​​​​​​​置​​​​​​​了​​​​​​​之​​​​​​​後​​​​​​​,經​​​​​​​過​​​​​​​一​​​​​​​項​​​​​​​交​​​​​​​易​​​​​​​所​​​​​​​被​​​​​​​修​​​​​​​改​​​​​​​的​​​​​​​用​​​​​​​戶​​​​​​​資​​​​​​​料​​​​​​​會​​​​​​​在​​​​​​​該​​​​​​​交​​​​​​​易​​​​​​​被​​​​​​​載​​​​​​​入​​​​​​​磁​​​​​​​碟​​​​​​​中​​​​​​​之​​​​​​​前​​​​​​​被​​​​​​​ flush 至​​​​​​​磁​​​​​​​碟​​​​​​​中​​​​​​​。​​​​​​​這​​​​​​​可​​​​​​​避​​​​​​​免​​​​​​​用​​​​​​​戶​​​​​​​在​​​​​​​當​​​​​​​機​​​​​​​後​​​​​​​在​​​​​​​檔​​​​​​​案​​​​​​​中​​​​​​​看​​​​​​​見​​​​​​​未​​​​​​​初​​​​​​​始​​​​​​​化​​​​​​​區​​​​​​​塊​​​​​​​。​​​​​​​當​​​​​​​設​​​​​​​為​​​​​​​ data=writeback 模​​​​​​​式​​​​​​​後​​​​​​​,任​​​​​​​何​​​​​​​時​​​​​​​候​​​​​​​只​​​​​​​要​​​​​​​用​​​​​​​戶​​​​​​​資​​​​​​​料​​​​​​​被​​​​​​​標​​​​​​​示​​​​​​​不​​​​​​​完​​​​​​​整​​​​​​​(dirty)的​​​​​​​話​​​​​​​,該​​​​​​​用​​​​​​​戶​​​​​​​資​​​​​​​料​​​​​​​便​​​​​​​會​​​​​​​被​​​​​​​寫​​​​​​​入​​​​​​​磁​​​​​​​碟​​​​​​​中​​​​​​​;這​​​​​​​無​​​​​​​法​​​​​​​提​​​​​​​供​​​​​​​和​​​​​​​ ordered 模​​​​​​​式​​​​​​​相​​​​​​​同​​​​​​​的​​​​​​​一​​​​​​​致​​​​​​​性​​​​​​​保​​​​​​​證​​​​​​​,不​​​​​​​過​​​​​​​它​​​​​​​對​​​​​​​於​​​​​​​某​​​​​​​些​​​​​​​工​​​​​​​作​​​​​​​來​​​​​​​說​​​​​​​速​​​​​​​度​​​​​​​會​​​​​​​較​​​​​​​快​​​​​​​。​​​​​​​預​​​​​​​設​​​​​​​值​​​​​​​為​​​​​​​ ordered 模​​​​​​​式​​​​​​​。​​​​​​​

1.2.2.8. gfs2_tool 指​​​​​​​令​​​​​​​

GFS2 的​​​​​​​ gfs2_tool 指​​​​​​​令​​​​​​​支​​​​​​​援​​​​​​​的​​​​​​​多​​​​​​​種​​​​​​​選​​​​​​​項​​​​​​​,與​​​​​​​ GFS 的​​​​​​​ gfs_tool 指​​​​​​​令​​​​​​​不​​​​​​​同​​​​​​​:
  • 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.

1.2.2.9. gfs2_edit 指​​​​​​​令​​​​​​​

gfs2_edit 指​​​​​​​令​​​​​​​支​​​​​​​援​​​​​​​多​​​​​​​種​​​​​​​ GFS2 的​​​​​​​選​​​​​​​項​​​​​​​,多​​​​​​​於​​​​​​​ GFS 的​​​​​​​gfs_edit 指​​​​​​​令​​​​​​​。​​​​​​​