一 删除LVM步骤
- 卸载挂载点
- 移除LV
- 移除VG
- 移除PV
- 删除配置文件
二 卸载挂载点
1 [root@kauai ~]# umount /dev/vg01/lv01 #先卸载挂载点
三 移除LV
1 [root@kauai ~]# lvremove /dev/vg01/lv01 #移除lv
2 Do you really want to remove active logical volume lv01? [y/n]: y
3 Logical volume "lv01" successfully removed
四 移除VG
1 [root@kauai ~]# vgremove vg01 #移除vg
2 Volume group "vg01" successfully removed
五 移除PV
1 [root@kauai ~]# pvremove /dev/sdb{5,6,} #移除PV
2 Labels on physical volume "/dev/sdb5" successfully wiped
3 Labels on physical volume "/dev/sdb6" successfully wiped
六 验证查看
1 [root@kauai ~]# pvscan
2 No matching physical volumes found
3 [root@kauai ~]# vgscan
4 Reading all physical volumes. This may take a while...
5 [root@kauai ~]# lvscan