On Wed, Apr 13, 2016 at 10:00 PM, David F. Robinson <david.robinson@xxxxxxxxxxxxx> wrote:
I am running into two problems (possibly related?).1) Every once in a while, when I do a 'rm -rf DIRNAME', it comes back with an error:rm: cannot remove `DIRNAME` : Directory not emptyIf I try the 'rm -rf' 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.
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.
2) I have different scripts to move a large numbers of files (5-25k) from one directory to another. Sometimes I receive an error:/bin/mv: cannot move `xyz` to `../bkp00/xyz`: File exists
Does ./bkp00/xyz exist on backend? If yes, what is the value of gfid xattr (key: "trusted.gfid") for "xyz" and "./bkp00/xyz" on backend bricks (I need gfid from all the bricks) when this issue happens?
The move is done using '/bin/mv -f', 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.Setup details for my gluster configuration shown below.[root@gfs01bkp logs]# gluster volume infoVolume Name: gfsbackupType: DistributeVolume ID: e78d5123-d9bc-4d88-9c73-61d28abf0b41Status: StartedNumber of Bricks: 7Transport-type: tcpBricks:Brick1: gfsib01bkp.corvidtec.com:/data/brick01bkp/gfsbackupBrick2: gfsib01bkp.corvidtec.com:/data/brick02bkp/gfsbackupBrick3: gfsib02bkp.corvidtec.com:/data/brick01bkp/gfsbackupBrick4: gfsib02bkp.corvidtec.com:/data/brick02bkp/gfsbackupBrick5: gfsib02bkp.corvidtec.com:/data/brick03bkp/gfsbackupBrick6: gfsib02bkp.corvidtec.com:/data/brick04bkp/gfsbackupBrick7: gfsib02bkp.corvidtec.com:/data/brick05bkp/gfsbackupOptions Reconfigured:nfs.disable: offserver.allow-insecure: onstorage.owner-gid: 100server.manage-gids: oncluster.lookup-optimize: onserver.event-threads: 8client.event-threads: 8changelog.changelog: offstorage.build-pgfid: onperformance.readdir-ahead: ondiagnostics.brick-log-level: WARNINGdiagnostics.client-log-level: WARNINGcluster.rebal-throttle: aggressiveperformance.cache-size: 1024MBperformance.write-behind-window-size: 10MB[root@gfs01bkp logs]# rpm -qa | grep glusterglusterfs-server-3.7.9-1.el6.x86_64glusterfs-debuginfo-3.7.9-1.el6.x86_64glusterfs-api-3.7.9-1.el6.x86_64glusterfs-resource-agents-3.7.9-1.el6.noarchgluster-nagios-common-0.1.1-0.el6.noarchglusterfs-libs-3.7.9-1.el6.x86_64glusterfs-fuse-3.7.9-1.el6.x86_64glusterfs-extra-xlators-3.7.9-1.el6.x86_64glusterfs-geo-replication-3.7.9-1.el6.x86_64glusterfs-3.7.9-1.el6.x86_64glusterfs-cli-3.7.9-1.el6.x86_64glusterfs-devel-3.7.9-1.el6.x86_64glusterfs-rdma-3.7.9-1.el6.x86_64samba-vfs-glusterfs-4.1.11-2.el6.x86_64glusterfs-client-xlators-3.7.9-1.el6.x86_64glusterfs-api-devel-3.7.9-1.el6.x86_64python-gluster-3.7.9-1.el6.noarch
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-devel
Raghavendra G
_______________________________________________ Gluster-devel mailing list Gluster-devel@xxxxxxxxxxx http://www.gluster.org/mailman/listinfo/gluster-devel