How to expand GlusterFS replicated clusters by one server
来源:互联网 发布:数据库遍历.zip 编辑:程序博客网 时间:2024/06/05 04:58
How to expand GlusterFS replicated clusters by one server
Posted by Joe Julian2 years, 1 month ago (comments)
This has come up several times in the last week. "I have 2n servers with 2 or 4 bricks each and I want to add 1 more server. How do I ensure the new server isn't a replica of itself?"
This isn't a simple thing to do. When you add bricks, replicas are added with each set of bricks in the replica count. For "replica 2", each 2 new bricks added forms a replica pair. To prevent your two new bricks on the new server from being replicas of themselves, you'll need to move an old brick to the new server. This is done with the replace-brick command.
So first we move server1:/data/brick2 to server3:/data/brick2
volname=myvol1from=server1:/data/brick2to=server3:/data/brick2gluster volume replace-brick $volname $from $to start
Monitor for completion
watch gluster volume replace-brick $volname $from $to status
Once it's completed then commit the change
gluster volume replace-brick $volname $from $to commit
Check your data to ensure it's all working right. If not, panic! Well, I suppose you could come join us in the IRC channel to help you figure out why, but it really should just work. First thing we're going to tell you is to check the logs, so might as well do that too.
Ok, now that your data's all moved, your volume is completely operational and all it's circuits are functioning perfectly, you're ready to add your two new bricks.
Save yourself some time and just format the brick store that's mounted at server1:/data/brick2. You'll have to wipe it and it's xattrs anyway, so that's much quicker.
gluster volume add-brick $volname server1:/data/brick2 server3:/data/brick1gluster volume rebalance $volname start
And you're all set.
- How to expand GlusterFS replicated clusters by one server
- how to install glusterfs
- How to Install GlusterFS
- How to remove GlusterFS Volumes
- How to expand the BOM using ABAP?
- How to Run Multiple Tomcat Instances on One Server?
- 搭建GlusterFS集群-Replicated Volumes
- How to first sort by one attribute, if equal, then sort by another attribute.
- how to insert a talbe making the no asc by one step
- 【转】 Can any one explain How to get StatusInformation Object by
- 搭建GlusterFS集群-Distributed Replicated Volumes
- How to define One-Many and One-One relationships
- How to access to remote server by root directly on solaris
- How to By Pass Proxy
- another one: how to do research?
- FFMPEG -- How to add one new CODEC
- How to test only one benchmark function?
- How to provide the capability to expand empty rows of a master view to be able to add child rows
- 第一次写博客
- SWIG - 同Java的混合编程
- 程序员的九阳真经
- oracle 的数据库、表空间、表是什么关系
- UVA 10891
- How to expand GlusterFS replicated clusters by one server
- android zip4j之--解压zip文件并实时显示解压进度
- 不用 ?: > < if 定义MAX(a,b)/MIN(a,b) 宏
- 杭电 1097
- 自适应网页设计分享
- launchMode
- vim 编码方式配置
- mysql操作记录
- Linux下时间编程