Description of problem: root@vostro:~# gluster volume info Volume Name: vol Type: Distribute Status: Created Number of Bricks: 2 Transport-type: tcp Bricks: Brick1: vostro:/home/vijay/bricks/doa/b1 Brick2: vostro:/home/vijay/bricks/doa/b2 Volume Name: doa Type: Distribute Status: Created Number of Bricks: 2 Transport-type: tcp Bricks: Brick1: vostro:/home/vijay/bricks/doa/b3 Brick2: vostro:/home/vijay/bricks/doa/b4 root@vostro:~# gluster volume add-brick vol vostro:/home/vijay/bricks/doa/b3 Add Brick successful root@vostro:~# gluster volume start vol Starting volume vol has been successful root@vostro:~# gluster volume start doa 'vostro:/home/vijay/bricks/doa/b3' has been part of a deleted volume with id 9b8dad66-eb7a-47cf-9929-527a35a4e1e4. Please re-create the brick directory. Version-Release number of selected component (if applicable):master How reproducible:Always
CHANGE: http://review.gluster.com/2607 (glusterd: prevent adding bricks already in use) merged in master by Vijay Bellur (vijay)
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# Volume Name: test2 Type: Distribute Volume ID: 0213ed95-79e3-417c-8b66-65b7ede0832b Status: Started Number of Bricks: 2 Transport-type: tcp Bricks: Brick1: dhcp201-181.englab.pnq.redhat.com:/tmp/test2 Brick2: dhcp201-154.englab.pnq.redhat.com:/tmp/test2 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# [root@dhcp201-181 ~]# gluster volume add-brick test2 dhcp201-181.englab.pnq.redhat.com:/tmp/test2 Add Brick unsuccessful [root@dhcp201-181 ~]# #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# Volume Name: test2 Type: Distribute Volume ID: 0213ed95-79e3-417c-8b66-65b7ede0832b Status: Started Number of Bricks: 2 Transport-type: tcp Bricks: Brick1: dhcp201-181.englab.pnq.redhat.com:/tmp/test2 Brick2: dhcp201-154.englab.pnq.redhat.com:/tmp/test2 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# [2012-05-19 06:20:09.020368] I [glusterd-utils.c:855:glusterd_volume_brickinfo_get_by_brick] 0-: brick: dhcp201-181.englab.pnq.redhat.com:/tmp/test2 [2012-05-19 06:20:09.023625] I [glusterd-utils.c:812:glusterd_volume_brickinfo_get] 0-management: Found brick [2012-05-19 06:20:09.023690] E [glusterd-brick-ops.c:1141:glusterd_op_stage_add_brick] 0-management: Adding duplicate brick: dhcp201-181.englab.pnq.redhat.com:/tmp/test2 [2012-05-19 06:20:09.023720] E [glusterd-op-sm.c:1999:glusterd_op_ac_send_stage_op] 0-: Staging failed #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# Verified: glusterfs-3.3.0beta4-1.x86_64