28
Chapter 5. Using the Pool Volume Manager
5.4. Creating a Configuration File for a New Volume
A pool configuration file is used as input to the
pool_tool
command when creating or growing a pool
volume. The configuration file defines the name and layout of a single pool volume. Refer to Figure
5-1 for the pool configuration file format. Refer to Table 5-9 for descriptions of the configuration file
keywords and variables.
An arbitrary name can be used for a pool configuration file; however, for consistency, it is recom-
mended that you name the file using the pool name followed by the
.cfg
extension (
poolname
.cfg
).
For example, the pool configuration file for a pool named
pool0
would be defined in configuration
file
pool0.cfg
.
Before creating a configuration file, you can check to see what devices are available by using the
pool_tool
command with the
-s
option.
poolname
name
minor
number
subpools
number
subpool
id stripe devices
[
type
]
pooldevice
subpool id device
Figure 5-1. File Structure: Pool Configuration File
File Line and
Keyword
Variable
Description
poolname
name
The name of the pool device that appears in
the
/dev/pool/
directory.
minor
number
Assigns a device minor number (0 to 64) to
a pool. If number is specified as 0 (or if the
minor line is omitted), the minor number of
the pool is assigned dynamically. The
default value is 0.
subpools
number
Represents the total number of subpools in
the pool. The
number
value should be set
to a value of 1 unless special data or journal
subpools are used.
subpool
id stripe devices
[
type
]
The details of each subpool:
id
is the subpool identifier. Number the
subpools in order beginning with 0.
stripe
is the stripe size in sectors (512
bytes per sector) for each device. A value
of 0 specifies no striping (concatenation).
devices
specifies the number of devices
in the subpool.
type
is optional and specifies the label
type to attach to the subpool. Values of
gfs_data
or
gfs_journal
are
acceptable. The default value is
gfs_data
.
Содержание GFS 5.2.1 -
Страница 1: ...Red Hat GFS 5 2 1 Administrator s Guide...
Страница 8: ......
Страница 14: ...vi Introduction...
Страница 24: ...10 Chapter 1 GFS Overview...
Страница 36: ...22 Chapter 4 Initial Configuration...
Страница 84: ...70 Chapter 6 Creating the Cluster Configuration System Files...
Страница 96: ...82 Chapter 8 Using Clustering and Locking Systems...
Страница 126: ...112 Chapter 10 Using the Fencing System...
Страница 132: ...118 Chapter 11 Using GNBD...
Страница 144: ...130 Appendix A Upgrading GFS...
Страница 184: ...170 Appendix B Basic GFS Examples...
Страница 190: ......
Страница 192: ...178...