Skip to content

Instantly share code, notes, and snippets.

View clintoncwolfe's full-sized avatar

Clinton Wolfe clintoncwolfe

  • Philadelphia Suburbs, PA
View GitHub Profile
@clintoncwolfe
clintoncwolfe / gist:e516976981908df868180608116f5639
Created July 5, 2016 20:01
syslog sample from failed raid5 activation
Jul 5 15:36:58 nimbus kernel: [ 9253.132888] device-mapper: raid: Failed to read superblock of device at position 0
Jul 5 15:36:58 nimbus kernel: [ 9253.134314] md/raid:mdX: device dm-18 operational as raid disk 2
Jul 5 15:36:58 nimbus kernel: [ 9253.134319] md/raid:mdX: device dm-16 operational as raid disk 1
Jul 5 15:36:58 nimbus kernel: [ 9253.134912] md/raid:mdX: allocated 0kB
Jul 5 15:36:58 nimbus kernel: [ 9253.135073] md/raid:mdX: not enough operational devices (2/4 failed)
Jul 5 15:36:58 nimbus kernel: [ 9253.135149] RAID conf printout:
Jul 5 15:36:58 nimbus kernel: [ 9253.135154] --- level:5 rd:4 wd:2
Jul 5 15:36:58 nimbus kernel: [ 9253.135157] disk 1, o:1, dev:dm-16
Jul 5 15:36:58 nimbus kernel: [ 9253.135160] disk 2, o:1, dev:dm-18
Jul 5 15:36:58 nimbus kernel: [ 9253.135162] disk 3, o:1, dev:dm-20
@clintoncwolfe
clintoncwolfe / gist:a5a2596a2bb97a93c1ec08733e4b1627
Created July 5, 2016 20:03
lvdisplay for 'home' LV, degraded with one PV missing
root@nimbus:~# lvdisplay -v nimbus-vg/home
DEGRADED MODE. Incomplete RAID LVs will be processed.
Using logical volume(s) on command line
Wiping cache of LVM-capable devices
Couldn't find device with uuid 1wf5XV-7X6v-xXcF-JGX5-FVzw-Yies-sfaEOz.
Couldn't find device with uuid 1wf5XV-7X6v-xXcF-JGX5-FVzw-Yies-sfaEOz.
Couldn't find device with uuid 1wf5XV-7X6v-xXcF-JGX5-FVzw-Yies-sfaEOz.
Couldn't find device with uuid 1wf5XV-7X6v-xXcF-JGX5-FVzw-Yies-sfaEOz.
Couldn't find device with uuid 1wf5XV-7X6v-xXcF-JGX5-FVzw-Yies-sfaEOz.
Couldn't find device with uuid 1wf5XV-7X6v-xXcF-JGX5-FVzw-Yies-sfaEOz.
root@nimbus:~# dmsetup table | grep home
nimbus--vg-home_rmeta_3: 0 8192 linear 8:32 1784702976
nimbus--vg-home_rmeta_2: 0 8192 linear 8:0 1784702976
nimbus--vg-home_rmeta_1: 0 8192 linear 8:16 1784702976
nimbus--vg-home_rmeta_0: 0 8192 linear 254:11 0
nimbus--vg-home_rimage_0-missing_0_0: 0 69910528 error
nimbus--vg-home_rmeta_0-missing_0_0: 0 8192 error
nimbus--vg-home_rimage_3: 0 69910528 linear 8:32 1784711168
nimbus--vg-home_rimage_2: 0 69910528 linear 8:0 1784711168
nimbus--vg-home_rimage_1: 0 69910528 linear 8:16 1784711168
[root@omnios-vagrant howl]# gcc --version
gcc (GCC) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@omnios-vagrant howl]# pkg list erlang
NAME (PUBLISHER) VERSION IFO
omniti/runtime/erlang (ms.omniti.com) 17.4.0-0.151014 i--
[root@omnios-vagrant howl]# cksum rebar3
[root@omnios-vagrant howl]# ISALIST=amd64 CFLAGS=-m64 LDFLAGS=-m64 ./rebar3 compile
===> Fetching rebar3_cuttlefish ({pkg,<<"rebar3_cuttlefish">>,
<<"0.11.0">>})
===> Downloaded package, caching at /root/.cache/rebar3/hex/default/packages/rebar3_cuttlefish-0.11.0.tar
===> Fetching cuttlefish ({pkg,<<"cuttlefish">>,<<"2.0.7">>})
===> Downloaded package, caching at /root/.cache/rebar3/hex/default/packages/cuttlefish-2.0.7.tar
===> Fetching getopt ({pkg,<<"getopt">>,<<"0.8.2">>})
===> Downloaded package, caching at /root/.cache/rebar3/hex/default/packages/getopt-0.8.2.tar
===> Fetching lager ({pkg,<<"lager">>,<<"3.0.2">>})
===> Downloaded package, caching at /root/.cache/rebar3/hex/default/packages/lager-3.0.2.tar
===> Port Cmd: /opt/gcc-4.8.1/bin/gcc -c -D_REENTRANT -m64 -m64 -O3 -std=c99 -g -Wall -fPIC -MMD -I"/opt/omni/lib/amd64/erlang/lib/erl_interface-3.7.20/include" -I"/opt/omni/lib/amd64/erlang/erts-6.3/include" /vagrant/build/howl/_build/default/lib/hdr_histogram/c_src/hdr_histogram_nif.c -o /vagrant/build/howl/_build/default/lib/hdr_histogram/c_src/hdr_histogram_nif.o
Port Opts: [{env,[{"A__z","\"*SHLVL"},
{"BINDIR","/opt/omni/lib/amd64/erlang/erts-6.3/bin"},
{"CC","/opt/gcc-4.8.1/bin/gcc"},
{"CFLAGS","-D_REENTRANT -m64 -m64 -O3 -std=c99"},
{"CXX","c++"},
{"CXXFLAGS","-D_REENTRANT -m64 "},
{"DEBUG","1"},
{"DRV_CC_TEMPLATE",
"/opt/gcc-4.8.1/bin/gcc -c -D_REENTRANT -m64 -m64 -O3 -std=c99 -g -Wall -fPIC -MMD -I\"/opt/omni/lib/amd64/erlang/lib/erl_interface-3.7.20/include\" -I\"/opt/omni/lib/amd64/erlang/erts-6.3/include\" $PORT_IN_FILES -o $PORT_OUT_FILE"},
[root@omnios-vagrant hdr_histogram]# /opt/gcc-4.8.1/bin/gcc -c -D_REENTRANT -m64 -m64 -O3 -std=c99 -g -Wall -fPIC -MMD -I"/opt/omni/lib/amd64/erlang/lib/erl_interface-3.7.20/include" -I"/opt/omni/lib/amd64/erlang/erts-6.3/include" /vagrant/build/howl/_build/default/lib/hdr_histogram/c_src/hdr_histogram_nif.c -o /vagrant/build/howl/_build/default/lib/hdr_histogram/c_src/hdr_histogram_nif.o
[root@omnios-vagrant hdr_histogram]# echo $?
1
[root@omnios-vagrant hdr_histogram]# pwd
/vagrant/build/howl/_build/default/lib/hdr_histogram
===> Compiling libsnarlmatch
===> run_hooks("/vagrant/build/snarl/_build/default/lib/libsnarlmatch", pre_hooks, compile) -> no hooks defined
===> run_hooks("/vagrant/build/snarl/_build/default/lib/libsnarlmatch", pre_hooks, erlc_compile) -> no hooks defined
===> erlopts [debug_info,debug_info,warnings_as_errors]
===> files to compile ["/vagrant/build/snarl/_build/default/lib/libsnarlmatch/src/libsnarlmatch.erl",
"/vagrant/build/snarl/_build/default/lib/libsnarlmatch/src/libsnarlmatch_tree.erl"]
===> Compiling _build/default/lib/libsnarlmatch/src/libsnarlmatch_tree.erl failed
_build/default/lib/libsnarlmatch/src/libsnarlmatch_tree.erl:88: illegal use of variable 'E' in map
@clintoncwolfe
clintoncwolfe / keybase.md
Last active August 3, 2017 03:09
keybase verification

Keybase proof

I hereby claim:

  • I am clintoncwolfe on github.
  • I am clintoncwolfe (https://keybase.io/clintoncwolfe) on keybase.
  • I have a public key ASCLwPLe9xbscLOqvRORhKPiZBtYwL0ddyWtCACWFUsu9Ao

To claim this, I am signing this object:

@clintoncwolfe
clintoncwolfe / weekly-devops-346.txt
Created August 15, 2017 21:45
DevOps Weekly #346
DEVOPS WEEKLY
ISSUE #346 - 13th August 2017
Some solid advanced topics this week, with in-depth articles on packaging, code repository organisation and observability, and a discussion of immutable infrastructure featuring yours truly.
Sponsor
======
Being on-call sucks - but is it getting better? See what 800+ professionals have to say about being on-call in VictorOps’ annual “State of On-Call” report.