Pvcreate: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Linux =Initialize Partition for use by LVM= <pre> pvcreate /dev/sdb1 </pre> <pre> Physical volume "/dev/sdb1" successfully created. </pre>...")
 
 
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:


* [[Linux#Commands|Linux]]
* [[Linux#Commands|Linux]]
* [[Linux_Logical_Volume_Management_Operations#Physical_Volume_Operations|Logical Volume Operations]]
=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.
If signatures are found on storage, pvcreate will offer to delete them.


=Initialize Partition for use by LVM=
=Initialize Partition for use by LVM=
Whole disk initialization:


<pre>
<pre>
pvcreate /dev/sdb1
pvcreate /dev/sdb
</pre>
</pre>


<pre>
<pre>
Physical volume "/dev/sdb1" successfully created.
Physical volume "/dev/sdb" successfully created.
</pre>
</pre>


Partition initialization:


=a=
<pre>
 
pvcreate /dev/sdb1
=b=
</pre>

Latest revision as of 23:04, 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.

If signatures are found on storage, pvcreate will offer to delete them.

Initialize Partition for use by LVM

Whole disk initialization:

pvcreate /dev/sdb
Physical volume "/dev/sdb" successfully created.

Partition initialization:

pvcreate /dev/sdb1