On 9/9/2014 7:12 PM, Michael Bushey
wrote:
I have done this a few times, but it is not real recent, so I will try to explain in a way that is both correct and understandable. 1. As to the question about the "`gluster volume info`: Number of Bricks: 1 x 2 = 2" The first number is the number of bricks that the data is distributed across. If that number is 3, each of three bricks has 1/3 of the data. This is the "Distribute" mode of operating gluster. From what you describe, you are not interested in that. You are interested in the "Replicate" mode. The numbering was adopted because gluster makes it possible to use various combinations of Distribute and Replicate at the same time, and this numbering describes the arrangement very succinctly. 2. As to how to you add a brick to your volume, so you can add a server to your system. You use the 'gluster volume add-brick' command. You are telling gluster: You are currently a two-brick system and I want to make you a 3-brick system (each brick being on a different server) by adding 'server3'. Typing 'gluster volume add-brick help' returns gluster volume add-brick <VOLNAME> [<stripe|replica> <COUNT>] <NEW-BRICK> ... [force]Assuming that the brick is ready and freshly formatted with xfs, the command ends up looking something like: gluster volume add-brick upload replica 3 server3:/bricks/upload/uploadThis will create the gluster structure on the brick, and will start the process of replicating the gluster data onto the brick. The gluster mount should be usable at that point, pulling the data from other bricks if it has not been replicated onto the local brick yet. If this server has been in service before, it is probably best to reformat the brick before putting it into service. Otherwise gluster will see remnants of the past use on the brick, and not want to use it, assuming there may be valuable information already stored there. CAUTION: Unless they have fixed this issue, the replication process can bring a server to its knees until it is fully replicated. 3. To remove a server from your system, the process is basically reversed. If you want to go from 5 servers to 4, you issue the command: gluster volume remove-brick upload replica 4 server5:/bricks/upload/uploadThis tells gluster to drop the brick on server5 from the volume, and reassures gluster that you know that you will now have a replicated volume with 4 replicas on it. Hope this helps. Ted Miller Elkhart, IN P.S. I am not reading the list regularly, so if you need more info, best to copy me when sending to the list. Just saw your request and said "I've done that, I can share some information." |
_______________________________________________ Gluster-users mailing list Gluster-users@xxxxxxxxxxx http://supercolony.gluster.org/mailman/listinfo/gluster-users