Chapter 9. Managing GFS
105
tory (and all its subdirectories). Existing files with zero length can also have data journaling turned on
or off.
Using the
gfs_tool
command, data journaling is enabled on a directory (and all its subdirectories)
or on a zero-length file by setting the
inherit_jdata
or
jdata
attribute flags to the directory or
file, respectively. The directory and file attribute flags can also be cleared.
9.8.1. Usage
Setting and Clearing the
inherit_jdata
Flag
gfs_tool setflag
inherit_jdata
Directory
gfs_tool clearflag
inherit_jdata
Directory
Setting and Clearing the
jdata
Flag
gfs_tool setflag
jdata
File
gfs_tool clearflag
jdata
File
Directory
Specifies the directory where the flag is set or cleared.
File
Specifies the zero-length file where the flag is set or cleared.
9.8.2. Examples
This example shows setting the
inherit_jdata
flag on a directory. All files created in the directory
or any of its subdirectories will have the
jdata
flag assigned automatically. Any data written to the
files will be journaled.
gfs_tool setflag inherit_jdata /gfs1/data/
This example shows setting the
jdata
flag on a file. The file must be zero size. Any data written to
the file will be journaled.
gfs_tool setflag jdata /gfs1/datafile
9.9. Configuring
atime
Updates
Each file inode and directory inode has three time stamps associated with it:
•
ctime
— The last time the inode status was changed
•
mtime
— The last time the file (or directory) data was modified
•
atime
— The last time the file (or directory) data was accessed
Summary of Contents for GFS 6.0 -
Page 1: ...Red Hat GFS 6 0 Administrator s Guide...
Page 8: ......
Page 88: ...74 Chapter 6 Creating the Cluster Configuration System Files...
Page 98: ...84 Chapter 7 Using the Cluster Configuration System...
Page 102: ...88 Chapter 8 Using Clustering and Locking Systems...
Page 128: ...114 Chapter 9 Managing GFS...
Page 134: ...120 Chapter 10 Using the Fencing System...
Page 144: ...130 Chapter 12 Using GFS init d Scripts...
Page 148: ...134 Appendix A Using Red Hat GFS with Red Hat Cluster Suite...
Page 184: ...170 Appendix C Basic GFS Examples...
Page 190: ......