Sounds like a sync issue to me.<br><br>Add "sync" and "no_wdelay" to /etc/exports and "actimeo=0" to the mount command on the client side.<br><br>-Josh More<br><br>(Yeah, I'm new here... just moved to the cities.)<br>
<br><br><br><div class="gmail_quote">On Tue, Oct 25, 2011 at 8:55 AM, Wayne Johnson <span dir="ltr"><<a href="mailto:wdtj@yahoo.com">wdtj@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><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>still have the problem.</span></div>
<div><br><span></span></div><div><span>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></span></div><div><span>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></span></div>
<div><span>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"><a href="tel:%28612%29%20522-7003" value="+16125227003" target="_blank">(612) 522-7003</a>                         | <span style="color:rgb(191, 95, 0)">then,  have it your way." --C.S. Lewis</span><br>
</span></div></div></div><br>_______________________________________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/mailman/listinfo/tclug-list</a><br>
<br></blockquote></div><br>