Daftar Gluster Command atau perintah dasar gluster kami tulis disini secara lengkap beserta penjelasannya
glusterfsd --version
Hasil yang keluar
glusterfs 3.7.6 built on Nov 9 2015 15:19:41 Repository revision: git://git.gluster.com/glusterfs.git Copyright (c) 2006-2013 Red Hat, Inc. <http://www.redhat.com/> GlusterFS comes with ABSOLUTELY NO WARRANTY. It is licensed to you under your choice of the GNU Lesser General Public License, version 3 or any later version (LGPLv3 or later), or the GNU General Public License, version 2 (GPLv2), in all cases as published by the Free Software Foundation.
gluster peer probe HOSTNAME
peer detach HOSTNAME
Peer artinya total server yang terhubung di glusterfs
gluster peer status
Hasilnya
Number of Peers: 1 Hostname: stor2 Uuid: f10c357e-34ef-4a48-a674-f960309f417f State: Peer in Cluster (Connected)
Hasil diatas menandakan terdapat 1 server terhubung dengan nama stor2.
gluster --remote-host=HOSTNAME peer status
gluster volume create nama_volume hostname:/path/.brick/
anda bisa menggunakan fungsi force untuk memaksakan pembuatan volume contoh seperti ini
gluster volume create nama_volume hostname:/path/.brick/ force
gluster delete NAMA_VOLUME
gluster volume start nama_volume
gluster volume stop nama_volume
gluster volume rename NAMA_VOLUME NAMA_BARU_VOLUME
gluster volume info all
gluster volume info nama_volume
gluster volume status nama_volume
gluster volume status VOLUME_NAME clients
volume add-brick VOLNAME NEW-BRICK
gluster volume replace-brick VOLNAME (BRICK NEW-BRICK) start | pause | abort | status
gluster volume remove-brick VOLNAME [(replica COUNT)|(stripe COUNT)] BRICK
gluster volume rebalance VOLNAME start
gluster volume rebalance VOLNAME stop
gluster volume rebalance VOLNAME status
gluster volume log filename VOLNAME [BRICK] DIRECTORY
volume log locate VOLNAME [BRICK]
volume log rotate VOLNAME [BRICK]
mount -t glusterfs HOSTNAME:/VOLUME_NAME /mount/path
Untuk membuka akses pada ip address tertentu harus tidak ada client yang terhubung dengan volume terkait
gluster volume set NAMA_VOLUME auth.allow IP_ADDRESS
untuk melihat informasi auth.allow anda bisa menggunakan gluster volume info