updated some document files
This commit is contained in:
parent
3c24395d57
commit
45edd344b8
@ -1,3 +1,4 @@
|
|||||||
* [Home](/)
|
- [Home](/)
|
||||||
* [Vitess](vitess.md "Vitess")
|
- [GlusterFS](glusterfs.md "GlusterFS")
|
||||||
|
- [OpenSSL](openssl.md "OpenSSL")
|
||||||
|
- [Vitess](vitess.md "Vitess")
|
||||||
|
26
web-doc/glusterfs.md
Normal file
26
web-doc/glusterfs.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# GlusterFS cheatsheet
|
||||||
|
|
||||||
|
## systemd
|
||||||
|
- systemctl enable glusterd
|
||||||
|
- systemctl start glusterd
|
||||||
|
|
||||||
|
|
||||||
|
## Add nodes
|
||||||
|
- gluster peer probe node1 node2 node3
|
||||||
|
|
||||||
|
|
||||||
|
## Volume Management
|
||||||
|
- gluster volume info
|
||||||
|
- gluster volume create gfs0-volume replica 3 node1:/gfs node2:/gfs node3:/gfs force
|
||||||
|
- gluster volume start gfs0-volume
|
||||||
|
- gluster volume set gfs0-volume auth.allow localhost
|
||||||
|
- gluster volume set gfs0-volume performance.cache-size 256MB
|
||||||
|
- gluster volume add-brick gfs0-volume replica 5 node4:/gfs node5:gfs
|
||||||
|
- gluster volume remove-brick gfs0-volume replica3 node4:/gfs node5:/gfs force
|
||||||
|
- gluster volume quota gfs0-volume enable
|
||||||
|
- gluster volume quota gfs0-volume limit-usage / 50GB
|
||||||
|
- gluster volume stop gfs0-volume force
|
||||||
|
- gluster volume delete gfs0-volume
|
||||||
|
|
||||||
|
## /etc/fstab
|
||||||
|
localhost:gfs0-volume /mnt/gfs-data glusterfs defaults,_netdev,noauto,x-systemd.automount 0 0
|
Loading…
Reference in New Issue
Block a user