3.8.2. 使​​​​​​​用​​​​​​​ gfs2_tool 指​​​​​​​令​​​​​​​來​​​​​​​啟​​​​​​​用​​​​​​​或​​​​​​​停​​​​​​​用​​​​​​​資​​​​​​​料​​​​​​​日​​​​​​​誌​​​​​​​功​​​​​​​能​​​​​​​

以​​​​​​​下​​​​​​​指​​​​​​​令​​​​​​​會​​​​​​​啟​​​​​​​用​​​​​​​ GFS2 檔​​​​​​​案​​​​​​​ /mnt/gfs2/gfs2file 的​​​​​​​資​​​​​​​料​​​​​​​日​​​​​​​誌​​​​​​​功​​​​​​​能​​​​​​​
[root@roth-01 ~]# gfs2_tool setflag jdata /mnt/gfs2/gfs2file 
您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​ lsattr 指​​​​​​​令​​​​​​​來​​​​​​​檢​​​​​​​查​​​​​​​ jdata 旗​​​​​​​標​​​​​​​是​​​​​​​否​​​​​​​已​​​​​​​經​​​​​​​設​​​​​​​定​​​​​​​正​​​​​​​確​​​​​​​。​​​​​​​
[root@roth-01 ~]# lsattr /mnt/gfs2
---------j--- /mnt/gfs2/gfs2file
當​​​​​​​一​​​​​​​個​​​​​​​目​​​​​​​錄​​​​​​​設​​​​​​​定​​​​​​​了​​​​​​​ jdata 旗​​​​​​​標​​​​​​​之​​​​​​​後​​​​​​​,所​​​​​​​有​​​​​​​在​​​​​​​該​​​​​​​目​​​​​​​錄​​​​​​​中​​​​​​​建​​​​​​​立​​​​​​​的​​​​​​​檔​​​​​​​案​​​​​​​與​​​​​​​目​​​​​​​錄​​​​​​​,都​​​​​​​會​​​​​​​啟​​​​​​​用​​​​​​​日​​​​​​​誌​​​​​​​功​​​​​​​能​​​​​​​。​​​​​​​
以​​​​​​​下​​​​​​​指​​​​​​​令​​​​​​​會​​​​​​​在​​​​​​​ /mnt/gfs2 目​​​​​​​錄​​​​​​​中​​​​​​​建​​​​​​​立​​​​​​​名​​​​​​​為​​​​​​​ gfs2_dir 的​​​​​​​子​​​​​​​目​​​​​​​錄​​​​​​​,設​​​​​​​定​​​​​​​該​​​​​​​目​​​​​​​錄​​​​​​​的​​​​​​​ jdata 旗​​​​​​​標​​​​​​​,然​​​​​​​後​​​​​​​檢​​​​​​​查​​​​​​​該​​​​​​​旗​​​​​​​標​​​​​​​是​​​​​​​否​​​​​​​設​​​​​​​定​​​​​​​正​​​​​​​確​​​​​​​。​​​​​​​之​​​​​​​後​​​​​​​,這​​​​​​​指​​​​​​​令​​​​​​​會​​​​​​​在​​​​​​​目​​​​​​​錄​​​​​​​裡​​​​​​​建​​​​​​​立​​​​​​​ gfs2file,然​​​​​​​後​​​​​​​檢​​​​​​​查​​​​​​​該​​​​​​​檔​​​​​​​案​​​​​​​的​​​​​​​旗​​​​​​​標​​​​​​​是​​​​​​​否​​​​​​​設​​​​​​​定​​​​​​​正​​​​​​​確​​​​​​​。​​​​​​​
[root@roth-01 ~]# mkdir /mnt/gfs2/gfs2_dir
[root@roth-01 ~]# gfs2_tool setflag jdata /mnt/gfs2/gfs2_dir
[root@roth-01 ~]# lsattr /mnt/gfs2
---------j--- /mnt/gfs2/gfs2_dir
[root@roth-01 ~]# touch /mnt/gfs2/gfs2_dir/newfile
[root@roth-01 ~]# lsattr /mnt/gfs2/gfs2_dir
---------j--- /mnt/gfs2/gfs2_dir/newfile
要​​​​​​​清​​​​​​​除​​​​​​​一​​​​​​​個​​​​​​​檔​​​​​​​案​​​​​​​或​​​​​​​目​​​​​​​錄​​​​​​​的​​​​​​​ jdata 旗​​​​​​​標​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​ gfs2_tool clearflag jdata 指​​​​​​​令​​​​​​​,如​​​​​​​以​​​​​​​下​​​​​​​範​​​​​​​例​​​​​​​所​​​​​​​示​​​​​​​。​​​​​​​
[root@roth-01 ~]# gfs2_tool clearflag jdata /mnt/gfs2/gfs2file 
[root@roth-01 ~]# lsattr /mnt/gfs2
------------- /mnt/gfs2/gfs2file