Skip to content

Instantly share code, notes, and snippets.

View ibotty's full-sized avatar

Tobias Florek ibotty

  • Bytes and Butter
View GitHub Profile
#!/bin/sh
set -e
local_repo="$(awk '/^local-repo:/ {print $2; exit}' ~/.cabal/config)"
package_ver="$(cabal info . |head -n 1 |cut -f2 -d\ )"
package="${package_ver/%-[0-9.]*/}"
version="${package_ver##*-}"
@ibotty
ibotty / gist:b2d873cb9527888da7b5dd79f133df3e
Created September 5, 2017 09:29
ceph bluestore osd with only block
> ls -R /var/lib/ceph/osd/ceph-4 -l
/var/lib/ceph/osd/ceph-4:
total 40
lrwxrwxrwx. 1 ceph ceph 25 Aug 24 12:39 block -> /dev/vg_centos/ceph-osd
-rw-r--r--. 1 ceph ceph 2 Aug 24 12:39 bluefs
-rw-r--r--. 1 ceph ceph 37 Aug 24 12:39 ceph_fsid
-rw-r--r--. 1 ceph ceph 37 Aug 24 12:39 fsid
-rw-------. 1 ceph ceph 56 Aug 24 12:39 keyring
-rw-r--r--. 1 ceph ceph 8 Aug 24 12:39 kv_backend
-rw-r--r--. 1 ceph ceph 21 Aug 24 12:39 magic