/dev/sda1 dan /dev/sdc1 pada server221
/dev/sda1 dan /dev/sdc1 pada server222
tambahkan di /etc/fstab kedua server
/dev/sda1 /data/hdd4T-01/ xfs defaults 0 0
/dev/sdc1 /data/hdd4T-02/ xfs defaults 0 0
gluster volume create gv01 replica 2 server221:/data/hdd4T-01/gv01 server222:/data/hdd4T-01/gv01
gluster volume start gv01
gluster volume profile gv01 start
untuk extend volume/add brick.
gluster volume add-brick gv01 server221:/data/hdd4T-02/gv01 server222:/data/hdd4T-02/gv01
untuk meremove brick
gluster volume remove-brick gv01 replica 2 server221:/data/hdd4T-01/gv01 server222:/data/hdd4T-01/gv01 start
gluster volume remove-brick gv01 replica 2 server221:/data/hdd4T-01/gv01 server222:/data/hdd4T-01/gv01 commit
untuk rebalance isi volume
gluster volume rebalance VOLNAME status
Ketika unmount volume, pastikan gluster di kedua server, mati atau service stop
/etc/init.d/glusterfs-server stop
No comments:
Post a Comment
have a question, just spill it :D