Bug 762124 (GLUSTER-392) - rm -rf fails on distribute setup
Summary: rm -rf fails on distribute setup
Keywords:
Status: CLOSED NOTABUG
Alias: GLUSTER-392
Product: GlusterFS
Classification: Community
Component: distribute
Version: mainline
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Anand Avati
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-18 02:03 UTC by Raghavendra G
Modified: 2015-09-01 23:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Krishna Srinivas 2009-11-18 01:53:53 UTC
raghu the reason would be that there would be stale link files in the back end. best way to fix this would be to add selfhealing code to rmdir. before rmdir of dht returns with 'dir not empty' error it can delete the stale link files and try rmdir'ing the backend dirs again.

Comment 1 Raghavendra G 2009-11-18 02:03:30 UTC
root@booradley:/home/raghu/vol-specs/dht# ls /mnt/raghu

root@booradley:/home/raghu/vol-specs/dht# cp -rf /usr/ /mnt/raghu/

root@booradley:/home/raghu/vol-specs/dht# rm -rfv /mnt/raghu/usr  
rm: cannot remove directory `/mnt/raghu/usr': Directory not empty

root@booradley:/home/raghu/vol-specs/dht# ls /mnt/raghu/usr
root@booradley:/home/raghu/vol-specs/dht# 

setup consists of distribute over two clients. ls on backend shows that the directory usr/ is indeed not empty. But readdir is not able to read the dentries properly.

Comment 2 Raghavendra G 2009-11-19 19:28:36 UTC
Did a test again with fresh backend and the bug was not reproducible. Hence closing it.


Note You need to log in before you can comment on or make changes to this bug.