mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
180 lines
5.5 KiB
Groff
180 lines
5.5 KiB
Groff
.TH LVM.CONF 5 "LVM TOOLS" "Sistina Software UK" \" -*- nroff -*-
|
|
.SH NAME
|
|
lvm.conf \- Configuration file for LVM2
|
|
.SH SYNOPSIS
|
|
.B /etc/lvm/lvm.conf
|
|
.SH DESCRIPTION
|
|
lvm.conf is loaded once, during the initialisation phase of
|
|
\fBlvm\fP.
|
|
.LP
|
|
.SH SYNTAX
|
|
.LP
|
|
This section describes the configuration file syntax.
|
|
.LP
|
|
Whitespace is not significant unless it is within quotes.
|
|
This provides a wide choice of acceptable indentation styles.
|
|
Comments begin with # and continue to the end of the line.
|
|
They are treated as whitespace.
|
|
.LP
|
|
Here is an informal grammar:
|
|
.TP
|
|
\fBfile = value*\fP
|
|
.br
|
|
A configuration file consists of a set of values.
|
|
.TP
|
|
\fBvalue = section | assignment\fP
|
|
.br
|
|
A value can either be a new section, or an assignment.
|
|
.TP
|
|
\fBsection = identifier '{' value* '}'\fP
|
|
.br
|
|
A section is groups associated values together.
|
|
.br
|
|
It is denoted by a name and delimited by curly brackets.
|
|
.br
|
|
e.g. backup {
|
|
.br
|
|
...
|
|
.br
|
|
}
|
|
.TP
|
|
\fBassignment = identifier '=' (array | type)\fP
|
|
.br
|
|
An assignment associates a type with an identifier.
|
|
.br
|
|
e.g. max_archives = 42
|
|
.br
|
|
.TP
|
|
\fBarray = '[' (type ',')* type ']' | '[' ']'\fP
|
|
.br
|
|
Inhomogeneous arrays are supported.
|
|
.br
|
|
Elements must be separated by commas.
|
|
.br
|
|
An empty array is acceptable.
|
|
.TP
|
|
\fBtype = integer | float | string\fP
|
|
\fBinteger = [0-9]*\fP
|
|
.br
|
|
\fBfloat = [0-9]*\.[0-9]*\fP
|
|
.br
|
|
\fBstring = '"' .* '"'\fP
|
|
.IP
|
|
Strings must be enclosed in double quotes.
|
|
|
|
.SH SECTIONS
|
|
.LP
|
|
The sections that may be present in the file are:
|
|
.TP
|
|
\fBdevices\fP \(em Device settings
|
|
.IP
|
|
\fBdir\fP \(em Directory in which to create volume group device nodes.
|
|
Defaults to "/dev".
|
|
.IP
|
|
\fBscan\fP \(em List of directories to scan recursively for
|
|
LVM physical volumes.
|
|
Devices in directories outside this hierarchy will be ignored.
|
|
Defaults to "/dev".
|
|
.IP
|
|
\fBfilter\fP \(em List of patterns to apply to devices found by a scan.
|
|
Patterns are regular expressions delimited by any character and preceded
|
|
by \fBa\fP (for accept) or \fBr\fP (for reject). The list is traversed
|
|
in order, and the first regex that matches determines if the device
|
|
will be accepted or rejected (ignored). Devices that don't match
|
|
any patterns are accepted.
|
|
For example, to ignore /dev/cdrom you could use:
|
|
\fBdevices { filter=["r|cdrom|"] }\fP
|
|
.IP
|
|
\fBcache\fP \(em Persistent filter cache file.
|
|
Defaults to "/etc/lvm/.cache".
|
|
.IP
|
|
\fBwrite_cache_state\fP \(em Set to 0 to disable the writing out of the
|
|
persistent filter cache file when \fBlvm\fP exits.
|
|
Defaults to 1.
|
|
.TP
|
|
\fBlog\fP \(em Default log settings
|
|
.IP
|
|
\fBfile\fP \(em Location of log file. If this entry is not present, no
|
|
log file is written.
|
|
.IP
|
|
\fBoverwrite\fP \(em Set to 1 to overwrite the log file each time a tool
|
|
is invoked. By default tools append messages to the log file.
|
|
.IP
|
|
\fBlevel\fP \(em Log level (0-9) of messages to write to the file.
|
|
9 is the most verbose; 0 should produce no output.
|
|
.IP
|
|
\fBverbose\fP \(em Default level (0-3) of messages sent to stdout or stderr.
|
|
3 is the most verbose; 0 should produce the least output.
|
|
.IP
|
|
\fBsyslog\fP \(em Set to 1 (the default) to send log messages through syslog.
|
|
Turn off by setting to 0. If you set to an integer greater than one,
|
|
this is used - unvalidated - as the facility. The default is LOG_USER.
|
|
See /usr/include/sys/syslog.h for safe facility values to use.
|
|
For example, LOG_LOCAL0 might be 128.
|
|
.IP
|
|
\fBindent\fP \(em When set to 1 (the default) messages are indented
|
|
according to their severity. Set to 0 to turn off indentation.
|
|
.IP
|
|
\fBcommand_names\fP \(em When set to 1, the command name is used as a
|
|
prefix for each message.
|
|
Default is 0 (off).
|
|
.IP
|
|
\fBprefix\fP \(em Prefix used for all messages (after the command name).
|
|
Default is two spaces.
|
|
.TP
|
|
\fBbackup\fP \(em Configuration for metadata backups.
|
|
.IP
|
|
\fBarchive_dir\fP \(em Directory used for automatic metadata archives.
|
|
Backup copies of former metadata for each volume group are archived here.
|
|
Defaults to "/etc/lvm/archive".
|
|
.IP
|
|
\fBbackup_dir\fP \(em Directory used for automatic metadata backups.
|
|
A single backup copy of the current metadata for each volume group
|
|
is stored here.
|
|
Defaults to "/etc/lvm/backup".
|
|
.IP
|
|
\fBarchive\fP \(em Whether or not tools automatically archive existing
|
|
metadata into \fBarchive_dir\fP before making changes to it.
|
|
Default is 1 (automatic archives enabled).
|
|
Set to 0 to disable.
|
|
Disabling this might make metadata recovery difficult or impossible
|
|
if something goes wrong.
|
|
.IP
|
|
\fBbackup\fP \(em Whether or not tools make an automatic backup
|
|
into \fBbackup_dir\fP after changing metadata.
|
|
Default is 1 (automatic backups enabled). Set to 0 to disable.
|
|
Disabling this might make metadata recovery difficult or impossible
|
|
if something goes wrong.
|
|
.IP
|
|
\fBretain_min\fP \(em Minimum number of archives to keep.
|
|
Defaults to 10.
|
|
.IP
|
|
\fBretain_days\fP \(em Minimum number of days to keep archive files.
|
|
Defaults to 30.
|
|
.TP
|
|
\fBshell\fP \(em LVM2 built-in readline shell settings
|
|
.IP
|
|
\fBhistory_size\fP \(em Maximum number of lines of shell history to retain (default 100) in $HOME/.lvm_history
|
|
.TP
|
|
\fBglobal\fP \(em Global settings
|
|
.IP
|
|
\fBtest\fP \(em If set to 1, run tools in test mode i.e. no metadata
|
|
gets updated.
|
|
.IP
|
|
\fBproc\fP \(em Mount point of proc filesystem.
|
|
Defaults to /proc.
|
|
.IP
|
|
\fBumask\fP \(em File creation mask for any files and directories created.
|
|
Interpreted as octal if the first digit is zero.
|
|
Defaults to 077.
|
|
Use 022 to allow other users to read the files by default.
|
|
.SH FILES
|
|
.I /etc/lvm/lvm.conf
|
|
.br
|
|
.I $HOME/.lvm_history
|
|
.SH SEE ALSO
|
|
.BR lvm (8)
|
|
.BR umask (2)
|
|
.BR syslog (3)
|
|
.BR syslog.conf (5)
|