收缩卷
可以在线收缩,当一个brick变得不可用时,可以使用该命令来删除brick,当删除时,只是该brick的配置信息被删除,你可以继续直接访问brick中的数据
如果要收缩一个条带数为2的分布式条带卷,你必须删除2的整数倍的brick,例如4,6,8,此外删除的brick必须来自于同一个子卷sub-volume(相同的副本或条带集)
删除server2:/exp2 brick
1、# gluster volume remove-brick test-volume server2:/exp2 force
Removing brick(s) can result in data loss. Do you want to Continue? (y/n)
2、输入"y"来确认操作
Remove Brick successful
3、查看删除的brick
# gluster volume remove-brick test-volume server2:/exp2 status
Node Rebalanced-files size scanned status
--------- ---------------- ---- ------- -----------
617c923e-6450-4065-8e33-865e28d9428f 34 340 162 in progress
4、检查卷信息
# gluster volume info
# gluster volume info
Volume Name: test-volume
Type: Distribute
Status: Started
Number of Bricks: 3
Bricks:
Brick1: server1:/exp1
Brick3: server3:/exp3
Brick4: server4:/exp4
阅读(2000) | 评论(0) | 转发(0) |