LVM Configuration : Physical Volume (PV) Operations/Utilities

The first step in implementing LVM is to create physical volumes. In addition to creating physical volumes, commands exist to display the attributes of physical volumes, remove physical volumes, and perform other functions on physical volumes.

Creating Physical Volumes

Use the pvcreate command to create physical volumes. The syntax is:

# pvcreate [options] device

You can initialize multiple disks or partitions for use by LVM in the same command. For example, the following command initializes two disks (you can also use disk partitions here). The –v option makes the output more verbose:

In addition to pvdisplay, two other commands list information about physical volumes. The pvs command reports information about physical volumes in a more condensed form. The pvscan command scans all disks for physical volumes. Example: