The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
 

pvremove - Removing PV



pvremove is the reverse operation of pvcreate and is a Linux command related to LVM (Logical Volume Manager). Its purpose is to remove a physical volume (PV) from LVM.

The syntax for the pvremove command is as follows:
pvremove [OPTIONS] [PV_NAME]

Common options for the pvremove command include:


Example:
# pvremove /dev/sda1 /dev/sda2 ← Removes PVs "/dev/sda1" and "/dev/sda2"
Labels on physical volume "/dev/sda1" successfully wiped.
Labels on physical volume "/dev/sda2" successfully wiped.

For more examples and operations related to pvremove and LVM, please refer to the provided link.