<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 13, 2016 at 10:00 PM, David F. Robinson <span dir="ltr">&lt;<a href="mailto:david.robinson@corvidtec.com" target="_blank">david.robinson@corvidtec.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div><div>I am running into two problems (possibly related?).   </div><div><br></div><div>1) Every once in a while, when I do a &#39;rm -rf DIRNAME&#39;, it comes back with an error: </div><div>        rm: cannot remove `DIRNAME` : Directory not empty</div><div><br></div><div>        If I try the &#39;rm -rf&#39; again after the error, it deletes the directory.  The issue is that I have scripts that clean up directories, and they are failing unless I go through the deletes a 2nd time.</div></div></blockquote><div><br></div><div style="">What kind of mount are you using? Is it a FUSE or NFS mount? Recently we saw a similar issue on NFS clients on RHEL6 where rm -rf used to fail with ENOTEMPTY in some specific cases.</div><div style=""> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br></div><div>2) I have different scripts to move a large numbers of files (5-25k) from one directory to another.  Sometimes I receive an error: </div><div>    /bin/mv: cannot move `xyz` to `../bkp00/xyz`: File exists</div></div></blockquote><div><br></div><div style="">Does ./bkp00/xyz exist on backend? If yes, what is the value of gfid xattr (key: &quot;trusted.gfid&quot;) for &quot;xyz&quot; and &quot;./bkp00/xyz&quot; on backend bricks (I need gfid from all the bricks) when this issue happens?</div><div style=""><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br></div><div>    The move is done using &#39;/bin/mv -f&#39;, so it should overwrite the file if it exists.  I have tested this with hundreds of files, and it works as expected.  However, every few days the script that moves the files will have problems with 1 or 2 files during the move.  This is one move problem out of roughly 10,000 files that are being moved and I cannot figure out any reason for the intermittent problem.</div><div><br></div><div>Setup details for my gluster configuration shown below.</div><div><br></div><div><div>[root@gfs01bkp logs]# gluster volume info</div><div> </div><div>Volume Name: gfsbackup</div><div>Type: Distribute</div><div>Volume ID: e78d5123-d9bc-4d88-9c73-61d28abf0b41</div><div>Status: Started</div><div>Number of Bricks: 7</div><div>Transport-type: tcp</div><div>Bricks:</div><div>Brick1: gfsib01bkp.corvidtec.com:/data/brick01bkp/gfsbackup</div><div>Brick2: gfsib01bkp.corvidtec.com:/data/brick02bkp/gfsbackup</div><div>Brick3: gfsib02bkp.corvidtec.com:/data/brick01bkp/gfsbackup</div><div>Brick4: gfsib02bkp.corvidtec.com:/data/brick02bkp/gfsbackup</div><div>Brick5: gfsib02bkp.corvidtec.com:/data/brick03bkp/gfsbackup</div><div>Brick6: gfsib02bkp.corvidtec.com:/data/brick04bkp/gfsbackup</div><div>Brick7: gfsib02bkp.corvidtec.com:/data/brick05bkp/gfsbackup</div><div>Options Reconfigured:</div><div>nfs.disable: off</div><div>server.allow-insecure: on</div><div>storage.owner-gid: 100</div><div>server.manage-gids: on</div><div>cluster.lookup-optimize: on</div><div>server.event-threads: 8</div><div>client.event-threads: 8</div><div>changelog.changelog: off</div><div>storage.build-pgfid: on</div><div>performance.readdir-ahead: on</div><div>diagnostics.brick-log-level: WARNING</div><div>diagnostics.client-log-level: WARNING</div><div>cluster.rebal-throttle: aggressive</div><div>performance.cache-size: 1024MB</div><div>performance.write-behind-window-size: 10MB</div><div><br></div><div><br></div><div>[root@gfs01bkp logs]# rpm -qa | grep gluster</div><div>glusterfs-server-3.7.9-1.el6.x86_64</div><div>glusterfs-debuginfo-3.7.9-1.el6.x86_64</div><div>glusterfs-api-3.7.9-1.el6.x86_64</div><div>glusterfs-resource-agents-3.7.9-1.el6.noarch</div><div>gluster-nagios-common-0.1.1-0.el6.noarch</div><div>glusterfs-libs-3.7.9-1.el6.x86_64</div><div>glusterfs-fuse-3.7.9-1.el6.x86_64</div><div>glusterfs-extra-xlators-3.7.9-1.el6.x86_64</div><div>glusterfs-geo-replication-3.7.9-1.el6.x86_64</div><div>glusterfs-3.7.9-1.el6.x86_64</div><div>glusterfs-cli-3.7.9-1.el6.x86_64</div><div>glusterfs-devel-3.7.9-1.el6.x86_64</div><div>glusterfs-rdma-3.7.9-1.el6.x86_64</div><div>samba-vfs-glusterfs-4.1.11-2.el6.x86_64</div><div>glusterfs-client-xlators-3.7.9-1.el6.x86_64</div><div>glusterfs-api-devel-3.7.9-1.el6.x86_64</div><div>python-gluster-3.7.9-1.el6.noarch</div></div><div><br></div>
</div><br>_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Raghavendra G<br></div>
</div></div>