Skip to content

Instantly share code, notes, and snippets.

@atinmu
Created April 5, 2016 05:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atinmu/a3682ba6782e1d79cf4362d040a89bd1 to your computer and use it in GitHub Desktop.
Save atinmu/a3682ba6782e1d79cf4362d040a89bd1 to your computer and use it in GitHub Desktop.
#! /bin/bash
BRICKS=`grep -rns "path=" /var/lib/glusterd/ | grep -v "device_path" | awk -F "=" '{print $2}'`
for brick in $BRICKS
do
echo "creating brick" $brick
mkdir -p $brick
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment