Skip to content

Gluster

Troubleshooting

gluster volume info
sudo gluster peer probe kube2
sudo gluster peer status
gluster volume status all clients
sudo gluster volume create gluster-vol-1 replica 2 transport tcp kube1:/gluster/gluster-vol-1 kube2:/gluster/gluster-vol-1

No replicate - single server.

gluster volume create $VOLUME_NAME $IPADDRESS_OR_DOMAINNAME:/$ROOT_MOUNT_POINT/$SUBFOLDER
gluster volume start $VOLUME_NAME

Mount a gluster share.

mount -t glusterfs $GLUSTER_SERVER_IP:$SHARE_NAME $LOCAL_PATH
sudo gluster volume start gluster-vol-1

Enable nfs on a gluster (non-ganesha) volume

gluster volume set media nfs
gluster volume set media nfs.disable off
gluster volume set openstack-storage nfs.disable off

Disable ctime for Rancher to be able to mount Gluster volumes.

root@gluster01:~# history | grep ctime
  481  gluster volume set kube_vol ctime off
  498  gluster volume set kube_vol ctime on
  499  gluster volume set kube_vol ctime off
  501  history | grep ctime