| Summary: | replace brick of empty brick never says migration completed | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | M S Vishwanath Bhat <vbhat> |
| Component: | unclassified | Assignee: | krishnan parthasarathi <kparthas> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | mainline | CC: | gluster-bugs, mzywusko, nsathyan, vijay |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
M S Vishwanath Bhat
2011-05-17 11:07:06 UTC
PATCH: http://patches.gluster.com/patch/7264 in master (pump: Detect 'empty' brick and finish migration.) The patch detects an empty source brick and logs the same. Additionally, it ensures that 'status' command gets an accurate response, ie. "Migration complete". Steps to verify fix: - Create a volume with one or more bricks. - Start replace brick with an empty source brick - you must see an entry in the 'glusterfsd' log file saying "Empty source brick. Nothing to be done". - replace-brick status command must return "Migration complete" along with other relevant information. PATCH: http://patches.gluster.com/patch/7316 in release-3.1 (pump: Detect 'empty' brick and finish migration.) PATCH: http://patches.gluster.com/patch/7317 in release-3.2 (pump: Detect 'empty' brick and finish migration.) With 3.2.1 this issue is fixed. root@tortuga:/tmp# /opt/321/sbin/gluster volume create hosdu replica 2 tortuga:/tmp/brick1/ tortuga:/tmp/brick2/ tortuga:/tmp/brick3/ tortuga:/tmp/brick4/ Creation of volume hosdu has been successful. Please start the volume to access data. root@tortuga:/tmp# /opt/321/sbin/gluster volume start hosdu Starting volume hosdu has been successful root@tortuga:/tmp# /opt/321/sbin/gluster volume info Volume Name: hosdu Type: Distributed-Replicate Status: Started Number of Bricks: 2 x 2 = 4 Transport-type: tcp Bricks: Brick1: tortuga:/tmp/brick1 Brick2: tortuga:/tmp/brick2 Brick3: tortuga:/tmp/brick3 Brick4: tortuga:/tmp/brick4 root@tortuga:/tmp# gluster volume replace-brick hosdu tortuga:/tmp/brick4/ tortuga:/tmp/brick5/ start replace-brick started successfully root@tortuga:/tmp# gluster volume replace-brick hosdu tortuga:/tmp/brick4/ tortuga:/tmp/brick5/ status Number of files migrated = 0 Migration complete root@tortuga:/tmp# gluster volume replace-brick hosdu tortuga:/tmp/brick4/ tortuga:/tmp/brick5/ status Number of files migrated = 0 Migration complete root@tortuga:/tmp# gluster volume replace-brick hosdu tortuga:/tmp/brick4/ tortuga:/tmp/brick5/ commit replace-brick commit successful Also I saw the following in the 'glusterfsd' log file. [2011-06-02 16:03:43.588500] I [pump.c:534:gf_pump_traverse_directory] 0-hosdu-pump: Empty source brick. Nothing to be done. [2011-06-02 16:03:43.597886] W [socket.c:1494:__socket_proto_state_machine] 0-tcp.hosdu-server: reading from socket failed. Error (Transport endpoint is not connected), peer (127.0.0.1:1000) |