Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/djmaze/gluster-on-docker
Containerized Gluster cluster using Docker
https://github.com/djmaze/gluster-on-docker
Last synced: 27 days ago
JSON representation
Containerized Gluster cluster using Docker
- Host: GitHub
- URL: https://github.com/djmaze/gluster-on-docker
- Owner: djmaze
- Created: 2015-06-08T16:31:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-08T16:39:49.000Z (over 9 years ago)
- Last Synced: 2024-12-08T20:41:24.427Z (about 1 month ago)
- Language: Shell
- Size: 113 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker images for testing a Gluster setup
## Usage
Run a new server:
docker-compose run server bash
In a new terminal, run a second server, connecting to the first one:
docker-compose run -e GLUSTER_PEER=$IP_OF_FIRST_SERVER server create
In a new terminal, start a third node:
docker-compose run server bash
From the first or second node's terminal, add the third node:
gluster peer probe $IP_OF_THIRD_NODE
gluster volume add-brick $VOLUME_NAME $IP_OF_THIRD_NODE:$VOLUME_PATH## Connect a client
Run a client, giving the IP of any gluster server:
docker-compose run client $IP_OF_ANY_SERVER
The volume is now mounted at `/mnt/gluster-volume`.
## Replace a server
To replace `$OLD_HOST` in a volume with `$NEW_HOST`, run (on one of the servers):
OLD_HOST=172.17.0.12
NEW_HOST=172.17.0.13gluster peer probe $NEW_HOST
gluster volume replace-brick $VOLUME_NAME $OLD_HOST:$VOLUME_PATH $NEW_HOST:$VOLUME_PATH commit force
gluster peer detach $OLD_HOST
gluster volume rebalance $VOLUME_NAME start## References
See [this post](https://www.gluster.org/pipermail/gluster-users/2012-October/011502.html) for how to replace bricks in volumes.