[root@centos7-1 ~]# lvremove /dev/vg_storage/lv_vo Do you really want to remove active logical volume vg_storage/lv_vo? [y/n]: y Logical volume "lv_vo" successfully removed
第3步:删除卷组,此处只写卷组名称即可,不需要设备的绝对路径。
[root@centos7-1 ~]# vgremove vg_storage Volume group "vg_storage" successfully removed
第4步:删除物理卷设备。
[root@centos7-1 ~]# pvremove /dev/vdb /dev/vdc Labels on physical volume "/dev/vdb" successfully wiped. Labels on physical volume "/dev/vdc" successfully wiped.
在上述操作执行完毕之后,再执行lvdisplay、vgdisplay、pvdisplay命令来查看LVM的信息时就不会再看到信息了(前提是上述步骤的操作是正确的)。
Linux公社的RSS地址:https://www.linuxidc.com/rssFeed.aspx