Flag
Parameter
Description
verbosity level to display more information.
-q
Quiet. Turns down the verbosity level.
-V
Displays command version information.
-v
Turns up the verbosity of messages.
Table 4.4. GFS-specific Options Available When Adding Journals
7. Direct I/O
Direct I/O is a feature of the file system whereby file reads and writes go directly from the
applications to the storage device, bypassing the operating system read and write caches.
Direct I/O is used only by applications (such as databases) that manage their own caches.
An application invokes direct I/O by opening a file with the
O_DIRECT
flag. Alternatively, GFS
can attach a direct I/O attribute to a file, in which case direct I/O is used regardless of how the
file is opened.
When a file is opened with
O_DIRECT
, or when a GFS direct I/O attribute is attached to a file, all
I/O operations must be done in block-size multiples of 512 bytes. The memory being read from
or written to must also be 512-byte aligned.
One of the following methods can be used to enable direct I/O on a file:
•
O_DIRECT
• GFS file attribute
• GFS directory attribute
7.1.
O_DIRECT
If an application uses the
O_DIRECT
flag on an
open()
system call, direct I/O is used for the
opened file.
To cause the
O_DIRECT
flag to be defined with recent glibc libraries, define
_GNU_SOURCE
at the
beginning of a source file before any includes, or define it on the cc line when compiling.
7.2. GFS File Attribute
The
gfs_tool
command can be used to assign (set) a direct I/O attribute flag,
directio
, to a
GFS file. The
directio
flag can also be cleared.
Usage
Chapter 4. Managing GFS
32
Summary of Contents for GLOBAL FILE SYSTEM 4.5
Page 1: ...Global File System 4 5 Red Hat Global File System ISBN N A Publication date ...
Page 4: ...Global File System ...
Page 11: ...Table 1 Recommended References Table Recommended References xi ...
Page 12: ...xii ...
Page 24: ...12 ...
Page 55: ...fileC Example 43 ...
Page 56: ...44 ...
Page 60: ...48 ...