Red Hat GLOBAL FILE SYSTEM 5.1 Manual page 44

Hide thumbs Also See for GLOBAL FILE SYSTEM 5.1:
Table of Contents

Advertisement

Chapter 4. Managing GFS
data is written to the journal, which can be substantially faster than the time it takes to write the
file data to the main file system.
Applications that rely on
journaling. Data journaling can be enabled automatically for any GFS files created in a flagged
directory (and all its subdirectories). Existing files with zero length can also have data journaling
turned on or off.
Using the
command, data journaling is enabled on a directory (and all its
gfs_tool
subdirectories) or on a zero-length file by setting the
the directory or file, respectively. The directory and file attribute flags can also be cleared.
Usage
Setting and Clearing the
gfs_tool setflag inherit_jdata Directory
gfs_tool clearflag inherit_jdata Directory
Setting and Clearing the
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.
Examples
This example shows setting the
directory or any of its subdirectories will have the
written to the files will be journaled.
gfs_tool setflag inherit_jdata /gfs1/data/
This example shows setting the
to the file will be journaled.
gfs_tool setflag jdata /gfs1/datafile
34
to sync file data may see improved performance by using data
fsync()
Flag
inherit_jdata
Flag
jdata
inherit_jdata
flag on a file. The file must be zero size. Any data written
jdata
or
inherit_jdata
flag on a directory. All files created in the
flag assigned automatically. Any data
jdata
attribute flags to
jdata

Advertisement

Table of Contents
loading

Table of Contents