Linux
fuser -contains a filesystem in use 에러 발생시
CecilDeSK
2025. 3. 4. 13:57
반응형
lvm으로 묶여있던 HDD를 분리하기 위해 작업하던중 Logical volume rl/lvhome contains a filesystem in use.
~ contains a filesystem in use. 에러가 발생했다.
해당에러가 발생하면서 umount가 되지 않는다. 위작업은 lvremove 명령 실행시 발생했다.
fuser 명령을 이용해 kill 하고 진행하도록 한다.
root@debian40:/# lvremove /dev/rl/lvhome
Logical volume rl/lvhome contains a filesystem in use.
root@debian40:/# lsof | grep home
sftp-serv 472944 cecil cwd DIR 254,0 4096 1572866 /home/cecil
bash 473062 cecil cwd DIR 254,0 4096 1572866 /home/cecil
root@debian40:/# fuser -kuc /home/cecil
반응형