Hi Phong, as long as we are talking about replicated volumes, what you have to do is:
1-Kill the proccess associated to that brick
2-Umount the drive
3-Replace the drive
4-Format the drive
5-Mount the new drive
6- Set the attr
setfattr -n trusted.glusterfs.volume-id -v 0x$(grep volume-id /var/lib/glusterd/vols/VOL_NAME/info | cut -d= -f2 | sed 's/-//g') /brick/MOUNT_POINTs
7- Restart glusterfs so the proccess associated to that brick will be back
8-Let it heal
9-Take a coffe (big one).
If you need a more detailed proccess let me know!
2014-08-15 0:22 GMT-03:00 Phong Tran <phongthvn@xxxxxxxxx>:
Hi, I have a problem, try to search how to fix. I have one brick failure in replicate volume. How can i replace with new hard disk?[root@brick05 ~]# gluster volume statusStatus of volume: hdviet
Gluster process Port Online Pid------------------------------------------------------------------------------Brick brick01:/export/hdd00/hdd00 49152 Y 2515Brick brick02:/export/hdd00/hdd00 49152 Y 2358Brick brick01:/export/hdd01/hdd01 49153 Y 2526Brick brick02:/export/hdd01/hdd01 49153 Y 2369Brick brick01:/export/hdd02/hdd02 49154 Y 2537Brick brick02:/export/hdd02/hdd02 49154 Y 2380Brick brick01:/export/hdd03/hdd03 49155 Y 2548Brick brick02:/export/hdd03/hdd03 49155 Y 2391Brick brick01:/export/hdd04/hdd04 49156 Y 2559Brick brick02:/export/hdd04/hdd04 49156 Y 2402Brick brick01:/export/hdd05/hdd05 49157 Y 2570Brick brick02:/export/hdd05/hdd05 49157 Y 2413Brick brick01:/export/hdd06/hdd06 49158 Y 2581Brick brick02:/export/hdd06/hdd06 49158 Y 2424Brick brick01:/export/hdd07/hdd07 49159 Y 2592Brick brick02:/export/hdd07/hdd07 49159 Y 2435Brick brick03:/export/hdd00/hdd00 49152 Y 2208Brick brick04:/export/hdd00/hdd00 49152 Y 2352Brick brick03:/export/hdd01/hdd01 49153 Y 2219Brick brick04:/export/hdd01/hdd01 49153 Y 2363Brick brick03:/export/hdd02/hdd02 49154 Y 2230Brick brick04:/export/hdd02/hdd02 49154 Y 2374Brick brick03:/export/hdd03/hdd03 49155 Y 2241Brick brick04:/export/hdd03/hdd03 49155 Y 2385Brick brick03:/export/hdd04/hdd04 49156 Y 2252Brick brick04:/export/hdd04/hdd04 49156 Y 2396Brick brick03:/export/hdd05/hdd05 49157 Y 2263Brick brick04:/export/hdd05/hdd05 49157 Y 2407Brick brick03:/export/hdd06/hdd06 49158 Y 2274Brick brick04:/export/hdd06/hdd06 49158 Y 2418Brick brick03:/export/hdd07/hdd07 49159 Y 2285Brick brick04:/export/hdd07/hdd07 49159 Y 2429Brick brick05:/export/hdd00/hdd00 49152 Y 2321Brick brick06:/export/hdd00/hdd00 49152 Y 2232Brick brick05:/export/hdd01/hdd01 49153 Y 2332Brick brick06:/export/hdd01/hdd01 49153 Y 2243Brick brick05:/export/hdd02/hdd02 N/A N N/ABrick brick06:/export/hdd02/hdd02 49154 Y 13976Brick brick05:/export/hdd03/hdd03 49155 Y 2354Brick brick06:/export/hdd03/hdd03 49155 Y 2265Brick brick05:/export/hdd04/hdd04 49156 Y 2365Brick brick06:/export/hdd04/hdd04 49156 Y 2276Brick brick05:/export/hdd05/hdd05 49157 Y 2376Brick brick06:/export/hdd05/hdd05 49157 Y 2287Brick brick05:/export/hdd06/hdd06 49158 Y 2387Brick brick06:/export/hdd06/hdd06 49158 Y 2298Brick brick05:/export/hdd07/hdd07 49159 Y 2398Brick brick06:/export/hdd07/hdd07 49159 Y 2309Brick brick07:/export/hdd00/hdd00 49152 Y 2357Brick brick08:/export/hdd00/hdd00 49152 Y 2261Brick brick07:/export/hdd01/hdd01 49153 Y 2368Brick brick08:/export/hdd01/hdd01 49153 Y 2272Brick brick07:/export/hdd02/hdd02 49154 Y 2379Brick brick08:/export/hdd02/hdd02 49154 Y 2283Brick brick07:/export/hdd03/hdd03 49155 Y 2390Brick brick08:/export/hdd03/hdd03 49155 Y 2294Brick brick07:/export/hdd04/hdd04 49156 Y 2401Brick brick08:/export/hdd04/hdd04 49156 Y 2305Brick brick07:/export/hdd05/hdd05 49157 Y 2412Brick brick08:/export/hdd05/hdd05 49157 Y 2316Brick brick07:/export/hdd06/hdd06 49158 Y 2423Brick brick08:/export/hdd06/hdd06 49158 Y 2327Brick brick07:/export/hdd07/hdd07 49159 Y 2434Brick brick08:/export/hdd07/hdd07 49159 Y 2338NFS Server on localhost 2049 Y 15604Self-heal Daemon on localhost N/A Y 15614NFS Server on brick04 2049 Y 2443Self-heal Daemon on brick04 N/A Y 2447NFS Server on brick03 2049 Y 2300Self-heal Daemon on brick03 N/A Y 2304NFS Server on brick02 2049 Y 2449Self-heal Daemon on brick02 N/A Y 2453NFS Server on 192.168.200.1 2049 Y 2606Self-heal Daemon on 192.168.200.1 N/A Y 2610NFS Server on brick06 2049 Y 14021Self-heal Daemon on brick06 N/A Y 14028NFS Server on brick08 2049 Y 2352Self-heal Daemon on brick08 N/A Y 2356NFS Server on brick07 2049 Y 2448Self-heal Daemon on brick07 N/A Y 2452Task Status of Volume hdviet------------------------------------------------------------------------------There are no active volume tasks[root@brick05 ~]# gluster volume infoVolume Name: hdvietType: Distributed-ReplicateVolume ID: fe3a2ed8-d727-499b-9cc6-b11ffb80fc5dStatus: StartedNumber of Bricks: 32 x 2 = 64Transport-type: tcpBricks:Brick1: brick01:/export/hdd00/hdd00Brick2: brick02:/export/hdd00/hdd00Brick3: brick01:/export/hdd01/hdd01Brick4: brick02:/export/hdd01/hdd01Brick5: brick01:/export/hdd02/hdd02Brick6: brick02:/export/hdd02/hdd02Brick7: brick01:/export/hdd03/hdd03Brick8: brick02:/export/hdd03/hdd03Brick9: brick01:/export/hdd04/hdd04Brick10: brick02:/export/hdd04/hdd04Brick11: brick01:/export/hdd05/hdd05Brick12: brick02:/export/hdd05/hdd05Brick13: brick01:/export/hdd06/hdd06Brick14: brick02:/export/hdd06/hdd06Brick15: brick01:/export/hdd07/hdd07Brick16: brick02:/export/hdd07/hdd07Brick17: brick03:/export/hdd00/hdd00Brick18: brick04:/export/hdd00/hdd00Brick19: brick03:/export/hdd01/hdd01Brick20: brick04:/export/hdd01/hdd01Brick21: brick03:/export/hdd02/hdd02Brick22: brick04:/export/hdd02/hdd02Brick23: brick03:/export/hdd03/hdd03Brick24: brick04:/export/hdd03/hdd03Brick25: brick03:/export/hdd04/hdd04Brick26: brick04:/export/hdd04/hdd04Brick27: brick03:/export/hdd05/hdd05Brick28: brick04:/export/hdd05/hdd05Brick29: brick03:/export/hdd06/hdd06Brick30: brick04:/export/hdd06/hdd06Brick31: brick03:/export/hdd07/hdd07Brick32: brick04:/export/hdd07/hdd07Brick33: brick05:/export/hdd00/hdd00Brick34: brick06:/export/hdd00/hdd00Brick35: brick05:/export/hdd01/hdd01Brick36: brick06:/export/hdd01/hdd01Brick37: brick05:/export/hdd02/hdd02Brick38: brick06:/export/hdd02/hdd02Brick39: brick05:/export/hdd03/hdd03Brick40: brick06:/export/hdd03/hdd03Brick41: brick05:/export/hdd04/hdd04Brick42: brick06:/export/hdd04/hdd04Brick43: brick05:/export/hdd05/hdd05Brick44: brick06:/export/hdd05/hdd05Brick45: brick05:/export/hdd06/hdd06Brick46: brick06:/export/hdd06/hdd06Brick47: brick05:/export/hdd07/hdd07Brick48: brick06:/export/hdd07/hdd07Brick49: brick07:/export/hdd00/hdd00Brick50: brick08:/export/hdd00/hdd00Brick51: brick07:/export/hdd01/hdd01Brick52: brick08:/export/hdd01/hdd01Brick53: brick07:/export/hdd02/hdd02Brick54: brick08:/export/hdd02/hdd02Brick55: brick07:/export/hdd03/hdd03Brick56: brick08:/export/hdd03/hdd03Brick57: brick07:/export/hdd04/hdd04Brick58: brick08:/export/hdd04/hdd04Brick59: brick07:/export/hdd05/hdd05Brick60: brick08:/export/hdd05/hdd05Brick61: brick07:/export/hdd06/hdd06Brick62: brick08:/export/hdd06/hdd06Brick63: brick07:/export/hdd07/hdd07Brick64: brick08:/export/hdd07/hdd07[root@brick05 ~]# gluster peer statusNumber of Peers: 7Hostname: brick08Uuid: ae52d2c7-6966-4261-9d51-b789010c78c7State: Peer in Cluster (Connected)Hostname: brick06Uuid: 88910c4e-3b3c-4797-adfd-9236f161051aState: Peer in Cluster (Connected)Hostname: brick03Uuid: b30eb4f4-19a8-4309-9c14-02893a52f0b8State: Peer in Cluster (Connected)Hostname: brick04Uuid: b0cd18a8-b5b1-4bf2-b6d1-2803be86e955State: Peer in Cluster (Connected)Hostname: 192.168.200.1Uuid: 574acf46-22b0-45f4-a4d0-768417202bf5State: Peer in Cluster (Connected)Hostname: brick02Uuid: 068389b6-8f4c-4eaf-be91-f7aac490078bState: Peer in Cluster (Connected)Hostname: brick07Uuid: 7ff99e83-31fb-4eac-9b82-5a0e54feb761State: Peer in Cluster (Connected)
_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-users
Pavlik Salles Juan José
_______________________________________________ Gluster-users mailing list Gluster-users@xxxxxxxxxxx http://supercolony.gluster.org/mailman/listinfo/gluster-users