Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am mflu on github.
* I am cloudbase (https://keybase.io/cloudbase) on keybase.
* I have a public key ASDR1TilBk46RQFipw-6uqAqchgzT2Ry-bw0wVudgVjQzAo
To claim this, I am signing this object:
@mflu
mflu / ovs_setup_format_error
Created November 26, 2014 09:32
ovs setup failed for formatting error
[root@openvstorage]# ovs setup
+++++++++++++++++++++++++++++
+++ Open vStorage Setup +++
+++++++++++++++++++++++++++++
+++ Setting up connections +++
Enter the root password for this node
Password:
@mflu
mflu / django_gunicorn_ovs.error
Created November 26, 2014 09:08
django_gunicorn_ovs
[root@ovs]# cat django_gunicorn_ovs.error
[2014-11-26 15:24:02 +0000] [7675] [DEBUG] Current configuration:
proxy_protocol: False
worker_connections: 1000
syslog: False
statsd_host: None
post_fork: <function post_fork at 0x2a90f50>
pythonpath: None
enable_stdio_inheritance: False
worker_class: gevent
@mflu
mflu / gist:9f7322d4161fda752851
Created May 6, 2014 07:38
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
@mflu
mflu / gist:11166168
Last active August 29, 2015 14:00
client-bind-insecure
I have created a volume named test_auth and set server.allow-insecure on
Volume Name: test_auth
Type: Distribute
Volume ID: d9bdc43e-15ce-4072-8d89-a34063e82427
Status: Started
Number of Bricks: 3
Transport-type: tcp
Bricks:
Brick1: server1:/mnt/xfsd/test_auth
#!/bin/bash
if [[ "$#" < "2" || "$#" > "3" ]]; then
cat <<END
Glusterfs GFID resolver -- turns a GFID into a real file path
Usage: $0 <brick-path> <gfid> [-q]
<brick-path> : the path to your glusterfs brick (required)