If I create a glusterfs cluster using GlusterFS stack from rancher’s catalog, I can’t find a way to specify that I want to use a specific directory for gluster’s bricks. For example, I’d like to use /data/brick1. Is there any way to do this?
I installed rancher on Ubuntu servers with 2 HDs. I want to use the second disk for my replicated storage volume, create a glusterfs cluster (using rancher’s catalog) and then use convoy stack for glusterfs.
Since the gluster bricks are in volume containers, I could be wrong, but I don’t think that you can move them to a specific device. They just end up where docker puts its containers (/var/lib/docker in my case).
What I ended up doing was moving /var/lib/docker to an lvm volume so I could expand it as needed.
As I didn’t find the way to parameterize this volume, I ended up creating a private catalog cloning rancher’s glusterfs catalog and adding the following “volume” line in docker-compose.yml:
This is not related to convoy but you shouldn’t keep /var/lib/docker for production deployments. Should create 2 LVM volumes and then assign them to docker with the devicemapper storage driver.
If you are going through the effort of creating a private custom catalog, you can parameterize the volume location by adding another question to the rancher-compose.yml