Bug 763297 (GLUSTER-1565) - deleting files after dht rebalance
Summary: deleting files after dht rebalance
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-1565
Product: GlusterFS
Classification: Community
Component: distribute
Version: 3.1-alpha
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Amar Tumballi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-08 07:14 UTC by Lakshmipathi G
Modified: 2015-12-01 16:45 UTC (History)
3 users (show)

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


Attachments (Terms of Use)

Description Lakshmipathi G 2010-09-08 07:14:37 UTC
Created a simple 2 server dht setup. mounted & created files at client.
added new brick and started "rebalance" , files are distributed across 3 bricks.

While trying to remove all files (rm -rf /mnt/*) - few files are not removed.

in the backend running ls shows -

server#ls -l 
---------T 1 root root 0 Sep  8 02:52 14938
---------T 1 root root 0 Sep  8 02:52 14940
---------T 1 root root 0 Sep  8 02:52 14944
---------T 1 root root 0 Sep  8 02:52 14945
---------T 1 root root 0 Sep  8 02:52 14947
---------T 1 root root 0 Sep  8 02:52 14948

Comment 1 Lakshmipathi G 2010-09-09 03:49:43 UTC
checked with 3.1.0qa19, unable to reproduce this issue.

Comment 2 Lakshmipathi G 2010-09-15 04:43:30 UTC
update with 3.1.0qa22 - 
in 4dht cluster 

client#touch 1..20000

remove a brick -
now do 
client#rm -rf * 
client#ls 
show files.
server1#ls -l
-rw-r--r-- 1 root root 0 Sep 15 03:29 file9979
-rw-r--r-- 1 root root 0 Sep 15 03:29 file9980
-rw-r--r-- 1 root root 0 Sep 15 03:29 file9981
-rw-r--r-- 1 root root 0 Sep 15 03:29 file9987
-rw-r--r-- 1 root root 0 Sep 15 03:29 file9992
-rw-r--r-- 1 root root 0 Sep 15 03:29 file9993
-rw-r--r-- 1 root root 0 Sep 15 03:29 file9997

server2#ls -l 
-rw-r--r-- 1 root root 0 Sep 15 03:27 file708
---------T 1 root root 0 Sep 15 03:32 file71
---------T 1 root root 0 Sep 15 03:32 file710
---------T 1 root root 0 Sep 15 03:32 file711
---------T 1 root root 0 Sep 15 03:32 file714
---------T 1 root root 0 Sep 15 03:32 file717
---------T 1 root root 0 Sep 15 03:32 file718
---------T 1 root root 0 Sep 15 03:32 file721
-rw-r--r-- 1 root root 0 Sep 15 03:27 file723
---------T 1 root root 0 Sep 15 03:32 file724
-rw-r--r-- 1 root root 0 Sep 15 03:27 file725
---------T 1 root root 0 Sep 15 03:32 file726
---------T 1 root root 0 Sep 15 03:32 file727
---------T 1 root root 0 Sep 15 03:32 file729
-rw-r--r-- 1 root root 0 Sep 15 03:27 file73
---------T 1 root root 0 Sep 15 03:32 file730
-rw-r--r-- 1 root root 0 Sep 15 03:27 file731
---------T 1 root root 0 Sep 15 03:32 file733
---------T 1 root root 0 Sep 15 03:32 file734
---------T 1 root root 0 Sep 15 03:32 file75
-rw-r--r-- 1 root root 0 Sep 15 03:27 file80
---------T 1 root root 0 Sep 15 03:32 file86
-rw-r--r-- 1 root root 0 Sep 15 03:27 file87
---------T 1 root root 0 Sep 15 03:32 file9
-rw-r--r-- 1 root root 0 Sep 15 03:27 file93
-rw-r--r-- 1 root root 0 Sep 15 03:27 file97

Comment 3 Vijay Bellur 2010-09-22 12:23:04 UTC
PATCH: http://patches.gluster.com/patch/4931 in master (distribute: in linkfile creation check for valid gfid in inode)


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