[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [rhelv5-list] unable to delete .nfs000* files





[root server .data]# rm -rf .nfs000000000041331100000002
rm: cannot remove `.nfs000000000041331100000002': Device or resource busy

The device or resource busy might give some clue that some program is holding the file open.  Try 'lsof | grep nfs' or similar keyword to see what might be using the files.  Kill the program and delete the files.

I've also had good luck with renaming a file that won't delete for some reason, and the I can delete it.

Ahmed Kamal wrote:
Hi,
I am mounting a netapp to a server over NFS, and replicating /home of a remote server on that. Now, my rsync replication script is giving an error about it being unable to delete some files. I logged into the server and tried deleting them myself, but couldn't as well for some reason!
Are these .nfs000* files somehow "special" ?

-rw-rw-r--  1 1020 1024 5.6M May  4 13:23 .nfs000000000041331100000002
-rw-------  1 root root 2.0M May  6 19:57 .nfs0000000000a56d6000000001

[root server .data]# rm -rf .nfs000000000041331100000002
rm: cannot remove `.nfs000000000041331100000002': Device or resource busy

PS: root can create new files on the netapp mount, and they end up being owned by root (no_root_squash) option. For some reason I still can't delete those files!

Regards

_______________________________________________ rhelv5-list mailing list rhelv5-list redhat com https://www.redhat.com/mailman/listinfo/rhelv5-list

-- 
veritatas simplex oratio est
        -Seneca

Andrew Bacchi
Systems Programmer
Rensselaer Polytechnic Institute
phone: 518.276.6415  fax: 518.276.2809

http://www.rpi.edu/~bacchi/

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]