lvm-lv删除告警 Logical volume openeuler/home contains a filesystem in use.

[root@lydb /]# lvremove /dev/mapper/openeuler-home

Logical volume openeuler/home contains a filesystem in use.

[root@lydb /]# df -h

Filesystem Size Used Avail Use% Mounted on

devtmpfs 4.0M 0 4.0M 0% /dev

tmpfs 7.6G 0 7.6G 0% /dev/shm

tmpfs 3.1G 8.6M 3.1G 1% /run

tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup

/dev/mapper/openeuler-root 60G 13G 45G 22% /

tmpfs 7.6G 0 7.6G 0% /tmp

/dev/vda1 974M 264M 643M 30% /boot

[root@lydb /]# mount /dev/mapper/openeuler-home /home

[root@lydb /]# df -h

Filesystem Size Used Avail Use% Mounted on

devtmpfs 4.0M 0 4.0M 0% /dev

tmpfs 7.6G 0 7.6G 0% /dev/shm

tmpfs 3.1G 8.6M 3.1G 1% /run

tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup

/dev/mapper/openeuler-root 60G 13G 45G 22% /

tmpfs 7.6G 0 7.6G 0% /tmp

/dev/vda1 974M 264M 643M 30% /boot

/dev/mapper/openeuler-home 30G 28K 28G 1% /home

[root@lydb /]# lsof /home

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

bash 840672 oracle cwd DIR 253,2 0 1700609 /oracle (deleted)

[root@lydb /]# kill -9 840672

[root@lydb /]# lsof /home/

[root@lydb /]# umount -l /home

[root@lydb /]# df -h

Filesystem Size Used Avail Use% Mounted on

devtmpfs 4.0M 0 4.0M 0% /dev

tmpfs 7.6G 0 7.6G 0% /dev/shm

tmpfs 3.1G 8.6M 3.1G 1% /run

tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup

/dev/mapper/openeuler-root 60G 13G 45G 22% /

tmpfs 7.6G 0 7.6G 0% /tmp

/dev/vda1 974M 264M 643M 30% /boot

[root@lydb /]# lvremove /dev/mapper/openeuler-home

Do you really want to remove active logical volume openeuler/home? [y/n]: y

Logical volume "home" successfully removed.

相关推荐
dessler32 分钟前
Docker-run命令详细讲解
linux·运维·后端·docker
群联云防护小杜1 小时前
如何给负载均衡平台做好安全防御
运维·服务器·网络·网络协议·安全·负载均衡
PyAIGCMaster1 小时前
ubuntu装P104驱动
linux·运维·ubuntu
奈何不吃鱼1 小时前
【Linux】ubuntu依赖安装的各种问题汇总
linux·运维·服务器
icy、泡芙1 小时前
T527-----音频调试
linux·驱动开发·音视频
aherhuo1 小时前
kubevirt网络
linux·云原生·容器·kubernetes
zzzhpzhpzzz1 小时前
Ubuntu如何查看硬件型号
linux·运维·ubuntu
蜜獾云1 小时前
linux firewalld 命令详解
linux·运维·服务器·网络·windows·网络安全·firewalld
陌北v11 小时前
Docker Compose 配置指南
运维·docker·容器·docker-compose
只会copy的搬运工2 小时前
Jenkins 持续集成部署——Jenkins实战与运维(1)
运维·ci/cd·jenkins