Installation guide

Chapter 4. LVM Administration with CLI Commands
22
Found volume group "new_vg"
Creating new_vg-lvol0
Loading new_vg-lvol0 table
Resuming new_vg-lvol0 (253:2)
Clearing start of logical volume "lvol0"
Creating volume group backup "/etc/lvm/backup/new_vg" (seqno 5).
Logical volume "lvol0" created
You could also have used the -vv, -vvv or the -vvvv argument to display increasingly more details
about the command execution. The -vvvv argument provides the maximum amount of information at
this time. The following example shows only the first few lines of output for the lvcreate command
with the -vvvv argument specified.
# lvcreate -vvvv -L 50MB new_vg
#lvmcmdline.c:913 Processing: lvcreate -vvvv -L 50MB new_vg
#lvmcmdline.c:916 O_DIRECT will be used
#config/config.c:864 Setting global/locking_type to 1
#locking/locking.c:138 File-based locking selected.
#config/config.c:841 Setting global/locking_dir to /var/lock/lvm
#activate/activate.c:358 Getting target version for linear
#ioctl/libdm-iface.c:1569 dm version OF [16384]
#ioctl/libdm-iface.c:1569 dm versions OF [16384]
#activate/activate.c:358 Getting target version for striped
#ioctl/libdm-iface.c:1569 dm versions OF [16384]
#config/config.c:864 Setting activation/mirror_region_size to 512
...
You can display help for any of the LVM CLI commands with the --help argument of the command.
# commandname --help
To display the man page for a command, execute the man command:
# man commandname
The man lvm command provides general online information about LVM.
All LVM objects are referenced internally by a UUID, which is assigned when you create the object.
This can be useful in a situation where you remove a physical volume called /dev/sdf which is part
of a volume group and, when you plug it back in, you find that it is now /dev/sdk. LVM will still find
the physical volume because it identifies the physical volume by its UUID and not its device name.
For information on specifying the UUID of a physical volume when creating a physical volume, see
Section 6.4, “Recovering Physical Volume Metadata”.
4.2. Physical Volume Administration
This section describes the commands that perform the various aspects of physical volume
administration.
4.2.1. Creating Physical Volumes