TrumanWong

pvremove

Delete an existing physical volume

Supplementary instructions

pvremove command is used to delete an existing physical volume. When you use the pvremove command to delete a physical volume, it deletes the physical volume information on the LVM partition so that it is no longer considered a physical volume.

grammar

pvremove(options)(parameters)

Options

-d # debug mode;
-f #Force deletion;
-y # Answer "yes" to the question.

Parameters

Physical volume: Specify the device file name corresponding to the physical volume to be deleted.

Example

Use the pvremove command to delete the physical volume /dev/sdb2. Enter the following command at the command line:

pvremove /dev/sdb2 # Delete physical volume
Labels on physical volume "/dev/sdb2" successfully wiped