pvcreate

From RaySoft

pvcreate initializes a Physical Volume for later use by the Logical Volume Manager (LVM). Each Physical Volume can be a disk partition, whole disk, meta device, or loopback file.[1]

Documentation

Syntax

pvcreate [PARAMETER ...] VOLUME [VOLUME ...]

Parameters

-f, --force
Force the creation without any confirmation. You can not recreate (reinitialize) a physical volume belonging to an existing volume group. In an emergency you can override this behaviour with -ff.
-u UUID, --uuid UUID
Specify the UUID for the device. Without this option, pvcreate generates a random uuid. All of your physical volumes must have unique uuids. You need to use this option before restoring a backup of LVM metadata onto a replacement device.
-y, --yes
Answer yes to all questions.

References

  1. man 8 'pvcreate'