迁移卷
可以在线迁移卷
1、在此例中,使用server 5的brick来迁移,确保server5已经加入到了集群
2、将server3:/exp3迁移到server:/exp5
# gluster volume replace-brick test-volume server3:/exp3 server5:exp5 start
Replace brick start operation successful
执行迁移 replace-brick命令的服务器必须安装FUSE 包
3、如果有必要,可以暂停迁移
# gluster volume replace-brick test-volume server3:/exp3 server5:/exp5 pause
Replace brick pause operation successful
4、也可以通过以下命令来取消迁移
# gluster volume replace-brick test-volume server3:/exp3 server5:exp5 abort
Replace brick abort operation successful
5、检查迁移状态
# gluster volume replace-brick test-volume server3:/exp3 server5:/exp5 status
Current File = /usr/src/linux-headers-2.6.31-14/block/Makefile
Number of files migrated = 10567
Migration complete
6、提交迁移的数据
# gluster volume replace-brick test-volume server3:/exp3 server5:/exp5 commit
replace-brick commit successful
7、查看卷的信息
# gluster volume info test-volume
Volume Name: testvolume
Type: Replicate
Status: Started
Number of Bricks: 4
Transport-type: tcp
Bricks:
Brick1: server1:/exp1
Brick2: server2:/exp2
Brick3: server4:/exp4
Brick4: server5:/exp5
The new volume details are displayed.
阅读(2275) | 评论(0) | 转发(0) |