The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

pvcreate - Creating Physical Volumes (PV) in LVM




pvcreate is a command in the LVM (Logical Volume Manager) context that is used to initialize a disk or partition and convert it into a physical volume (PV). This operation is a fundamental step in setting up an LVM storage configuration. The pvcreate command must be executed by the root user or a user with sudo privileges.

The basic syntax of the pvcreate command is pvcreate [OPTIONS] DEVICE_NAME.

Some commonly used options for the pvcreate command include:

例:
# pvcreate -v /dev/sda1 /dev/sda2 ←# Convert partitions /dev/sda1 and /dev/sda2 into PVs

For more pvcreate examples, explanations, and operations related to LVM, you can refer to the provided link.