Installation guide

Table Of Contents
tails about the command execution. The -vvvv argument provides the maximum amount of in-
formation 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 com-
mand.
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 ob-
ject. 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 see Section 4, “Recovering Physical Volume Metadata”.
2. Physical Volume Administration
This section describes the commands that perform the various aspects of physical volume ad-
ministration.
2.1. Creating Physical Volumes
The following subsections describe the commands used for creating physical volumes.
2.1.1. Setting the Partition Type
If you are using a whole disk device for your physical volume, the disk must have no partition ta-
ble. For DOS disk partitions, the partition id should be set to 0x8e using the fdisk or cfdisk
command or an equivalent. For whole disk devices only the partition table must be erased,
which will effectively destroy all data on that disk. You can remove an existing partition table by
zeroing the first sector with the following command:
2. Physical Volume Administration
19