|
|
599352 |
% storage.conf(5) Container Storage Configuration File
|
|
|
599352 |
% Dan Walsh
|
|
|
599352 |
% May 2017
|
|
|
599352 |
|
|
|
599352 |
# NAME
|
|
|
599352 |
storage.conf - Syntax of Container Storage configuration file
|
|
|
599352 |
|
|
|
599352 |
# DESCRIPTION
|
|
|
599352 |
The STORAGE configuration file specifies all of the available container storage options
|
|
|
599352 |
for tools using shared container storage, but in a TOML format that can be more easily modified
|
|
|
599352 |
and versioned.
|
|
|
599352 |
|
|
|
599352 |
# FORMAT
|
|
|
599352 |
The [TOML format][toml] is used as the encoding of the configuration file.
|
|
|
599352 |
Every option and subtable listed here is nested under a global "storage" table.
|
|
|
599352 |
No bare options are used. The format of TOML can be simplified to:
|
|
|
599352 |
|
|
|
599352 |
[table]
|
|
|
599352 |
option = value
|
|
|
599352 |
|
|
|
599352 |
[table.subtable1]
|
|
|
599352 |
option = value
|
|
|
599352 |
|
|
|
599352 |
[table.subtable2]
|
|
|
599352 |
option = value
|
|
|
599352 |
|
|
|
599352 |
## STORAGE TABLE
|
|
|
599352 |
|
|
|
599352 |
The `storage` table supports the following options:
|
|
|
599352 |
|
|
|
599352 |
**graphroot**=""
|
|
|
599352 |
container storage graph dir (default: "/var/lib/containers/storage")
|
|
|
599352 |
Default directory to store all writable content created by container storage programs
|
|
|
599352 |
|
|
|
599352 |
**runroot**=""
|
|
|
599352 |
container storage run dir (default: "/var/run/containers/storage")
|
|
|
599352 |
Default directory to store all temporary writable content created by container storage programs
|
|
|
599352 |
|
|
|
599352 |
**driver**=""
|
|
|
599352 |
container storage driver (default is "overlay")
|
|
|
599352 |
Default Copy On Write (COW) container storage driver
|
|
|
599352 |
|
|
|
599352 |
### STORAGE OPTIONS TABLE
|
|
|
599352 |
|
|
|
599352 |
The `storage.options` table supports the following options:
|
|
|
599352 |
|
|
|
599352 |
**additionalimagestores**=[]
|
|
|
599352 |
Paths to additional container image stores. Usually these are read/only and stored on remote network shares.
|
|
|
599352 |
|
|
|
599352 |
**size**=""
|
|
|
599352 |
Maximum size of a container image. Default is 10GB. This flag can be used to set quota
|
|
|
599352 |
on the size of container images.
|
|
|
599352 |
|
|
|
599352 |
**override_kernel_check**=""
|
|
|
599352 |
Tell storage drivers to ignore kernel version checks. Some storage drivers assume that if a kernel is too
|
|
|
599352 |
old, the driver is not supported. But for kernels that have had the drivers backported, this flag
|
|
|
599352 |
allows users to override the checks
|
|
|
599352 |
|
|
|
599352 |
[storage.options.thinpool]
|
|
|
599352 |
|
|
|
599352 |
Storage Options for thinpool
|
|
|
599352 |
|
|
|
599352 |
The `storage.options.thinpool` table supports the following options:
|
|
|
599352 |
|
|
|
599352 |
**autoextend_percent**=""
|
|
|
599352 |
|
|
|
599352 |
Tells the thinpool driver the amount by which the thinpool needs to be grown. This is specified in terms of % of pool size. So a value of 20 means that when threshold is hit, pool will be grown by 20% of existing pool size. (Default is 20%)
|
|
|
599352 |
|
|
|
599352 |
**autoextend_threshold**=""
|
|
|
599352 |
|
|
|
599352 |
Tells the driver the thinpool extension threshold in terms of percentage of pool size. For example, if threshold is 60, that means when pool is 60% full, threshold has been hit. (80% is the default)
|
|
|
599352 |
|
|
|
599352 |
**basesize**=""
|
|
|
599352 |
|
|
|
599352 |
Specifies the size to use when creating the base device, which limits the size of images and containers. (10g is the default)
|
|
|
599352 |
|
|
|
599352 |
**blocksize**=""
|
|
|
599352 |
|
|
|
599352 |
Specifies a custom blocksize to use for the thin pool. (64k is the default)
|
|
|
599352 |
|
|
|
599352 |
**directlvm_device**=""
|
|
|
599352 |
|
|
|
599352 |
Specifies a custom block storage device to use for the thin pool. Required if you setup devicemapper
|
|
|
599352 |
|
|
|
599352 |
**directlvm_device_force**=""
|
|
|
599352 |
|
|
|
599352 |
Tells driver to wipe device (directlvm_device) even if device already has a filesystem. Default is False
|
|
|
599352 |
|
|
|
599352 |
**fs**="xfs"
|
|
|
599352 |
|
|
|
599352 |
Specifies the filesystem type to use for the base device. (Default is xfs)
|
|
|
599352 |
|
|
|
599352 |
**log_level**=""
|
|
|
599352 |
|
|
|
599352 |
Sets the log level of devicemapper.
|
|
|
599352 |
|
|
|
599352 |
0: LogLevelSuppress 0 (Default)
|
|
|
599352 |
2: LogLevelFatal
|
|
|
599352 |
3: LogLevelErr
|
|
|
599352 |
4: LogLevelWarn
|
|
|
599352 |
5: LogLevelNotice
|
|
|
599352 |
6: LogLevelInfo
|
|
|
599352 |
7: LogLevelDebug
|
|
|
599352 |
|
|
|
599352 |
**min_free_space**=""
|
|
|
599352 |
|
|
|
599352 |
Specifies the min free space percent in a thin pool require for new device creation to succeed. Valid values are from 0% - 99%. Value 0% disables (10% is the default)
|
|
|
599352 |
|
|
|
599352 |
**mkfsarg**=""
|
|
|
599352 |
|
|
|
599352 |
Specifies extra mkfs arguments to be used when creating the base device.
|
|
|
599352 |
|
|
|
599352 |
**mountopt**=""
|
|
|
599352 |
|
|
|
599352 |
Specifies extra mount options used when mounting the thin devices.
|
|
|
599352 |
|
|
|
599352 |
**use_deferred_removal**=""
|
|
|
599352 |
|
|
|
599352 |
Marks device for deferred removal. If the device is in use when it driver attempts to remove it, driver will tell the kernel to remove it as soon as possible. (Default is true).
|
|
|
599352 |
|
|
|
599352 |
**use_deferred_deletion**=""
|
|
|
599352 |
|
|
|
599352 |
Marks device for deferred deletion. If the device is in use when it driver attempts to delete it, driver continue to attempt to delete device every 30 seconds, or when it restarts. (Default is true).
|
|
|
599352 |
|
|
|
599352 |
**xfs_nospace_max_retries**=""
|
|
|
599352 |
|
|
|
599352 |
Specifies the maximum number of retries XFS should attempt to complete IO when ENOSPC (no space) error is returned by underlying storage device. (Default is 0, which means to try continuously.
|
|
|
599352 |
|
|
|
599352 |
# HISTORY
|
|
|
599352 |
May 2017, Originally compiled by Dan Walsh <dwalsh@redhat.com>
|
|
|
599352 |
Format copied from crio.conf man page created by Aleksa Sarai <asarai@suse.de>
|