<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>Here's a mystery for all you NFS guru's out there.</span></div><div><br><span></span></div><div><span>I have a RHEL zLinux system that mounts an NFS file system on an RHEL x64 system (PC disk space is much cheaper than mainframe). I have a build process that checks out thousands of files onto this one NFS file system. When the build process starts, I do a rm -rf of the whole directory to clean it out for the build before doing the checkout. Unfortunatly I get an error in the middle of the rm -rf. I get the error:</span></div><div><br><span></span></div><div><span>rm -r build/HEAD<br>rm: cannot remove directory `build/HEAD/qa/testcapi/scripts': Directory not empty<br></span></div><div><br><span></span></div><div><span>It appears that the rm did not remove some of the files in this directory. I can
then remove them by hand, so it's not a permission issue, besides the permissions are 644 and I'm the owner. I've rebooted and fscked everything involved and </span><span class="tab">still have the problem.</span></div><div><br><span class="tab"></span></div><div><span class="tab">Is there some sort of caching or locking issue with NFS that prevents these files from getting marked deleted before the rm command does it's rmdir (which is generating the error)? <br></span></div><div><br><span class="tab"></span></div><div><span class="tab">To get around this, I've doubled up the rm -rf command and this seems to work. The question I am having is why this is failing? <br></span></div><div><br><span class="tab"></span></div><div><span class="tab">Any suggestions would be appreciated.<br></span></div><div> </div><div><span style="font-family:courier;">--- </span><br style="font-family:courier;"><span
style="font-family:courier;">Wayne Johnson, | <span style="color:rgb(191, 95, 0);">There are two kinds of people: Those</span> </span><br style="font-family:courier;"><span style="font-family:courier;">3943 Penn Ave. N. | <span style="color:rgb(191, 95, 0);">who say to God, "Thy will be done," </span></span><br style="font-family:courier;"><span style="font-family:courier;">Minneapolis, MN 55412-1908 | <span style="color:rgb(191, 95, 0);">and those to whom God says, "All right, </span></span><br style="font-family:courier;"><span style="font-family:courier;">(612) 522-7003 | <span style="color:rgb(191, 95, 0);">then, have it your way." --C.S. Lewis</span><br></span></div></div></body></html>