005.LVM删除

扫码查看

一 删除LVM步骤

  • 卸载挂载点
  • 移除LV
  • 移除VG
  • 移除PV
  • 删除配置文件

二 卸载挂载点

 [root@kauai ~]# umount /dev/vg01/lv01			#先卸载挂载点

三 移除LV

 [root@kauai ~]# lvremove /dev/vg01/lv01			#移除lv
Do you really want to remove active logical volume lv01? [y/n]: y
Logical volume "lv01" successfully removed

四 移除VG

 [root@kauai ~]# vgremove vg01           		#移除vg
Volume group "vg01" successfully removed

五 移除PV

 [root@kauai ~]# pvremove /dev/sdb{5,6,}			#移除PV
Labels on physical volume "/dev/sdb5" successfully wiped
Labels on physical volume "/dev/sdb6" successfully wiped

六 验证查看

 [root@kauai ~]# pvscan
No matching physical volumes found
[root@kauai ~]# vgscan
Reading all physical volumes. This may take a while...
[root@kauai ~]# lvscan
05-11 11:11
查看更多