[root@SBackup ~]# lvremove /dev/vg_storage1/lei Logical volume vg_storage1/lei in use.
查看是否被占用
[root@SBackup ~]# lvdisplay /dev/vg_storage1/lei |grep open # open 1 --被打开了 [root@SBackup ~]# fuser -kuc /dev/vg_storage1/lei /dev/vg_storage1/lei: 1726(root) --也可以看到进程号1726的root用户正在使用
杀掉该进程
ps -ef | grep 1726
kill 1726
再次删除
[root@SBackup ~]# lvremove /dev/vg_storage1/lei Do you really want to remove active logical volume lei? [y/n]: y Logical volume "lei" successfully removed