Pvremove: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
pvremove <partition-on-which-physical-volume-resides>
pvremove <partition-on-which-physical-volume-resides>
</pre>
</pre>
If the physical volume is used by a volume group, the association must be deleted with [[vgreduce]], or --force should be used.


Example:
Example:


<pre>
<pre>
pvremove /dev/sdb1
</pre>

Revision as of 13:51, 23 May 2017

Internal

Overview

Removes a physical volume by removing all LVM labels.

The association between volume groups and physical volumes can be obtained with with pvs or pvscan.

pvremove <partition-on-which-physical-volume-resides>

If the physical volume is used by a volume group, the association must be deleted with vgreduce, or --force should be used.

Example:

pvremove /dev/sdb1