Pvcreate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 6: | Line 6: | ||
=Overview= | =Overview= | ||
pvcreate initializes a disk or partition for use by the Logical Volume Manager (LVM), in the form of a physical volume. Each physical volume can be a disk partition, whole disk, meta device, or loopback file. For whole disk devices the partition table must be erased | pvcreate initializes a disk or partition for use by the Logical Volume Manager (LVM), in the form of a physical volume. Each physical volume can be a disk partition, whole disk, meta device, or loopback file. For whole disk devices the partition table must be erased. | ||
=Initialize Partition for use by LVM= | =Initialize Partition for use by LVM= | ||
Whole disk initialization: | |||
<pre> | |||
pvcreate /dev/sdb | |||
</pre> | |||
Partition initialization: | |||
<pre> | <pre> |
Revision as of 23:03, 23 May 2017
Internal
Overview
pvcreate initializes a disk or partition for use by the Logical Volume Manager (LVM), in the form of a physical volume. Each physical volume can be a disk partition, whole disk, meta device, or loopback file. For whole disk devices the partition table must be erased.
Initialize Partition for use by LVM
Whole disk initialization:
pvcreate /dev/sdb
Partition initialization:
pvcreate /dev/sdb1
Physical volume "/dev/sdb1" successfully created.