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

[EMAIL PROTECTED] .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


.nfs000* are the ghosts of departed files. For example, if you have a file handle for /home/user/foo open on an nfs client and the file gets removed somewhere else, then the .nfs* file shows up/is used by the original process until it closes the file handle.

Use "fuser .nfs*" to see which process is using it.

Hugh

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to