I'm using OpenVZ to create containers and it creates a folder for each container to store its files. I stopped the creation of a container before it gets completed, so it created a folder for that container, but when I try to remove that folder using rm -rf
, I get the 'Device or resource busy'
error, but when I do 'lsof <container folder>'
or 'fuser <container folder>'
, it returns nothing, even when I do umount <container folder>
nothing happens. So I'm not sure which process or device is using it. How can I remove this folder?
I did several umount commands and it worked well for me. For some reason, the folder has been mounted several times by openvz, so I had to umount it several times to be able to remove it.
So I tried with
and it works for me.