[root@web ~]
[root@web ~]
LVM(8) LVM(8)
NAME
lvm - LVM2 tools
SYNOPSIS
lvm [command| file]
DESCRIPTION
lvm provides the command-line tools forLVM2. A separate manual page describes eachcommandindetail.
If lvm is invoked with no arguments it presents a readline prompt (assuming it was compiled with readline sup-
port). LVM commands may be entered interactively at this prompt with readline facilities including historyand
commandname and option completion. Refer to readline(3) fordetails.
If lvm is invoked with argv[0] setto the name of a specific LVM command(forexample by using a hard or soft
link) it acts as that command.
On invocation, lvm requires that only the standard filedescriptors stdin, stdout and stderr are available. If
others are found, they get closed and messages are issued warning about the leak.
Where commands take VG or LV names as arguments, the full path name is optional. An LV called "lvol0"ina VG
called "vg0"can be specified as "vg0/lvol0". Where a list of VGs is required but is left empty, a list of all
VGs will be substituted. Where a list of LVs is required but a VG is given, a list of all the LVs inthat VG
will be substituted. So lvdisplay vg0 will display all the LVs in"vg0". Tags can also be used - see --addtag
below.
One advantage of using the built-inshell is that configuration information gets cached internally between com-
mands.
A filecontaining a simple script with one commandper line can also be given on thecommandline. The script
can also be executed directly ifthe first line is