Last active
September 10, 2021 10:05
-
-
Save IvanCl4udio/84a5593bc2cc9fd96fb2b52594c4ed98 to your computer and use it in GitHub Desktop.
Simple GlusterFs single node (only for tests)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install on Debian 10 | |
apt-get install glusterfs-server | |
# Enable and start GlusterFS SystemD Unit | |
systemctl enable glusterd | |
systemctl start glusterd | |
# Create directory for brick | |
mkdir -p /data/glusterfs/myvol1/brick1 | |
# Create volume in gluster using parameter 'force' to skip verification to create from '/' | |
gluster volume create myvol1 $HOSTNAME:/data/glusterfs/myvol1/brick1/brick force | |
# Start serve | |
gluster volume start myvol1 | |
# To mount on clients | |
mkdir -p /mnt/glusterfs | |
mount -t glusterfs $HOSTNAME:myvol1 /mnt/glusterfs | |
# Thanks https://gist.github.com/smola/020b4bde91195b9c530a1540ffdf852e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment