Команды контроля кластера GlusterFS

Virsh

Посмотреть список всех доступных пулов:

Copy
virsh# pool-list Name State Autostart ----------------------------------------- default active yes vg_virtual active yes

Посмотреть список томов в пуле:

Copy
virsh # vol-list vg_virtual Name Path ----------------------------------------- backend2.aa.ff /dev/vg_virtual/backend2.aa.ff balancer1-1.aa.ff /dev/vg_virtual/balancer1-1.aa.ff db1.aa.ff /dev/vg_virtual/db1.aa.ff konkurs-clone1.aa.ff /dev/vg_virtual/konkurs-clone1.aa.ff konkurs-clone1_data /dev/vg_virtual/konkurs-clone1_data konkurs-clone1_logs /dev/vg_virtual/konkurs-clone1_logs konkurs-clone1z.aa.ff /dev/vg_virtual/konkurs-clone1z.aa.ff konkurs.aa.ff /dev/vg_virtual/konkurs.aa.ff konkurs_data /dev/vg_virtual/konkurs_data konkurs_logs /dev/vg_virtual/konkurs_logs konkurs_mysql /dev/vg_virtual/konkurs_mysql temp_vol /dev/vg_virtual/temp_vol temp_vol2 /dev/vg_virtual/temp_vol2 var /dev/vg_virtual/var

Утилита Gluster

Посмотреть информацию по томам:

Copy
[root@gluster1 sani]# gluster gluster> volume info Volume Name: konkurs-storage Type: Replicate Volume ID: d1e7f838-57d4-4953-bee7-131f1ec01036 Status: Started Number of Bricks: 1 x 2 = 2 Transport-type: tcp Bricks: Brick1: gluster1.aa.ff:/gl/konkurs/storage/brick Brick2: gluster2.aa.ff:/gl/konkurs/storage/brick Options Reconfigured: network.ping-timeout: 15 Volume Name: konkurs-beta-storage Type: Replicate Volume ID: 325dddf5-615c-44db-8bf5-7f979c037db2 Status: Started Number of Bricks: 1 x 2 = 2 Transport-type: tcp Bricks: Brick1: gluster2.aa.ff:/gl/konkurs-beta/storage/brick Brick2: gluster1.aa.ff:/gl/konkurs-beta/storage/brick Options Reconfigured: network.ping-timeout: 15

Посмотреть статус тома:

Copy
gluster> volume status konkurs-storage Status of volume: konkurs-storage Gluster process Port Online Pid ------------------------------------------------------------------------------ Brick gluster1.aa.ff:/gl/konkurs/storage/brick 49152 Y 1981 Brick gluster2.aa.ff:/gl/konkurs/storage/brick 49152 Y 1746 NFS Server on localhost 2049 Y 1995 Self-heal Daemon on localhost N/A Y 2000 NFS Server on 192.168.138.201 2049 Y 1762 Self-heal Daemon on 192.168.138.201 N/A Y 1761 There are no active volume tasks

Опубликовано: 17.10.2016