Skip to content

Instantly share code, notes, and snippets.

@samos123
Created April 14, 2018 07:37
Show Gist options
  • Save samos123/3b7764722889fdc8eba3b4bf70d031fb to your computer and use it in GitHub Desktop.
Save samos123/3b7764722889fdc8eba3b4bf70d031fb to your computer and use it in GitHub Desktop.
#!/bin/bash
BRICK=$1
setfattr -n trusted.glusterfs.volume-id -v 0x$(grep volume-id /var/lib/glusterd/vols/$BRICK/info | cut -d= -f2 | sed 's/-//g') /srv/glusterfs/$BRICK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment