glusterfs
links
logs
- 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. <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.
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 <VOLNAME>
← no funciona encara que apareix a la documentació
gluster volume log rotate <VOLNAME> <BRICK>
peers
- o TSP = Trusted Server Pool:
gluster pool list
- afegir un nou node (ja configurat):
gluster peer probe <HOSTNAME>
- treure node:
gluster peer detach <HOSTNAME>
- status dels nodes:
gluster peer status