Skip to content

Instantly share code, notes, and snippets.

@mflu
Created May 6, 2014 07:38
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 mflu/9f7322d4161fda752851 to your computer and use it in GitHub Desktop.
Save mflu/9f7322d4161fda752851 to your computer and use it in GitHub Desktop.
workload to re-produce gfid-mismatch
#!/bin/bash
mkdir -p /mnt/gluster/test_volume/test_dir
for i in `seq 1 10000`;do
echo $i;
md5=`echo $i | md5sum | awk '{print $1}'`
dir=${md5:0:2}/${md5:2:2}/${md5:4:2}
mkdir -p /mnt/gluster/test_volume/test_dir/$dir/a$i
mkdir -p /mnt/gluster/test_volume/test_dir/$dir/b$i
mkdir -p /mnt/gluster/test_volume/test_dir/$dir/c$i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment