= glusterfs
* [[linux:filesystem:glusterfs:vagrantpoc]]
== links
* [[https://docs.gluster.org/en/latest/Quick-Start-Guide/Quickstart/]]
* [[https://kifarunix.com/install-and-setup-glusterfs-on-ubuntu-18-04/]]
* [[https://www.cyberciti.biz/faq/howto-add-new-brick-to-existing-glusterfs-replicated-volume/]]
* [[https://www.osradar.com/install-and-configure-glusterfs-debian-10/]]
* [[https://www.server-world.info/en/note?os=Debian_10&p=glusterfs&f=1]]
* [[https://www.server-world.info/en/note?os=Debian_10&p=glusterfs&f=4]]
* [[https://docs.gluster.org/en/latest/CLI-Reference/cli-main/]]
* [[https://docs.gluster.org/en/latest/Install-Guide/Install/]]
== logs
* [[https://docs.gluster.org/en/latest/Administrator%20Guide/Logging/]]
* [[https://rajeshjoseph.gitbooks.io/test-guide/content/cluster/chap-Managing_Gluster_Logs.html]]
* logrotation config: [[https://www.jamescoyle.net/how-to/807-advanced-glusterfs-log-rotation]]
* ''/etc/logrotate.d/glusterfs-common''
* force logrotation: [[https://www.jamescoyle.net/how-to/679-simple-glusterfs-log-rotation]]
* gluster volume info all | grep "Volume Name"
* gluster volume log rotate VOL_NAME [BRICK]:sudo gluster volume log rotate gv0 processing1:/exports/sdb1/brick1
* ''/var/log/glusterfs/bricks/exports-sdb1-brick1.log''
== commands
* /etc/init.d/glusterfs-server status
* config files:**/var/lib/glusterd**
=== generals
sudo gluster help
glusterfs --version
glusterfs 3.4.2 built on Jan 14 2014 18:05:35
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2013 Red Hat, Inc.
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.
=== volums
sudo gluster volume info
Volume Name: gv0
Type: Replicate
Volume ID: 39159af2-8a53-44f0-9379-43b86370302a
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: processing1:/exports/sdb1/brick1
Brick2: processing2:/exports/sda1/brick1
sudo gluster vol status
Status of volume: gv0
Gluster process Port Online Pid
------------------------------------------------------------------------------
Brick processing1:/exports/sdb1/brick1 49152 Y 2130
Brick processing2:/exports/sda1/brick1 49152 Y 1822
NFS Server on localhost 2049 Y 2119
Self-heal Daemon on localhost N/A Y 2125
NFS Server on processing2 2049 Y 1829
Self-heal Daemon on processing2 N/A Y 1821
There are no active volume tasks
gluster volume start gv0
gluster volume list
=== logs
* gluster volume log locate
<- no funciona encara que apareix a la documentació
* gluster volume log rotate
=== peers
* o TSP = Trusted Server Pool:gluster pool list
* afegir un nou node (ja configurat):gluster peer probe
* treure node:gluster peer detach
* status dels nodes:gluster peer status