Bug 763240 (GLUSTER-1508) - add-brick works but files are not distributed to newly added server
Summary: add-brick works but files are not distributed to newly added server
Keywords:
Status: CLOSED DUPLICATE of bug 763213
Alias: GLUSTER-1508
Product: GlusterFS
Classification: Community
Component: glusterd
Version: 3.1-alpha
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Amar Tumballi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-02 07:28 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:
Embargoed:


Attachments (Terms of Use)

Description Lakshmipathi G 2010-09-02 05:29:39 UTC
after using "gluster volume rebalance volname start", the files created under new directory goes to new brick.but files created under existing directory goes to old bricks, not to new brick.

Comment 1 Lakshmipathi G 2010-09-02 07:28:35 UTC
using add-brick,I have added new brick to exising 2 dht server.
----------
gluster volume info
Number of Volumes: 1

Volume Name: simpledht
Type: None
Status: Started
Number of Bricks: 3
Bricks:
Brick1: 172.24.21.132:/mnt/dht
Brick2: 172.24.21.131:/mnt/dht
Brick3: 172.24.21.134:/mnt/dht
---------
creating new files from client mount point,
touch {200..20000}
all files  goes to brick1 and brick2,but not to brick3

Comment 2 Lakshmipathi G 2010-09-02 07:52:55 UTC
Now adding 2 servers instead of one,
gluster volume add-brick chk 172.24.21.133:/mnt/dht 172.24.21.134:/mnt/dht
Add Brick successful

created files - 
# touch F{1..100}

these new files distributed into new bricks without doing rebalance.

Comment 3 Vijay Bellur 2010-09-02 09:56:53 UTC
PATCH: http://patches.gluster.com/patch/4485 in master (cluster/dht: fixes to handle 'fix.layout' attribute properly.)

Comment 4 Vijay Bellur 2010-09-02 10:31:54 UTC
PATCH: http://patches.gluster.com/patch/4488 in master (cluster/distribute: add option 'use-readdirp' to force readdirp)

Comment 5 Vijay Bellur 2010-09-02 10:31:59 UTC
PATCH: http://patches.gluster.com/patch/4489 in master (mgmt/glusterd: fix rebalance with new option use-readdirp)

Comment 6 Lakshmipathi G 2010-09-04 03:50:05 UTC
tested this issue with qa15 - 
added third brick and ran rebalance -

#gluster volume rebalance bug763241 start
starting defrag on volume bug763241 has been successful
10.192.141.187#gluster volume rebalance bug763241 status
rebalance completed: rebalanced 0 files of size 0 (total files scanned 1001)

new brick is empty.

======================
# getfattr -n trusted.glusterfs.pathinfo .
# file: .
trusted.glusterfs.pathinfo="(bug763241-dht-layout (bug763241-client-2 0 0) (bug763241-client-0 0 2147483646) (bug763241-client-1 2147483647 4294967295))\000"
======================


created a new directory "f1"  under mnt-pt:
==============
[root@ip-10-245-210-193 mnt]# getfattr -n trusted.glusterfs.pathinfo f1
# file: f1
trusted.glusterfs.pathinfo="(bug763241-dht-layout (bug763241-client-0 2863311530 4294967295) (bug763241-client-1 0 1431655764) (bug763241-client-2 1431655765 2863311529))\000"
======================

Comment 7 Amar Tumballi 2010-09-07 13:28:18 UTC

*** This bug has been marked as a duplicate of bug 1481 ***

Comment 8 Vijay Bellur 2010-10-18 07:25:44 UTC
PATCH: http://patches.gluster.com/patch/5504 in release-3.0 (cluster/distribute: add option 'use-readdirp' to force readdirp)


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