Skip to content

Instantly share code, notes, and snippets.

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@olafbuitelaar
olafbuitelaar / clean-stale-gluster-fh.sh
Last active January 2, 2019 20:12
file to clean stale file handles within a gluster volume
#!/bin/bash
# call as ./clean-stale-gluster-fh.sh --host="192.168.0.42" --volume=test --backup="/backup/gfs/x"
# saner programming env: these switches turn some bugs into errors
set -o errexit -o pipefail -o noclobber -o nounset
glusterVolume="" #the gluster volume to fix
glusterNode="" #the node name as found in gluster v info [vol]
shardFile="" #optional shard file to fix only: 94915a76-2dfb-439e-9863-a3c4020676c9.3859 otherwise the whole .shard volume will be checked
logFile="fix-gluster-fd.log"
backupDir="" #location to store the stale file handles