Skip to content

Instantly share code, notes, and snippets.

View lukemarsden's full-sized avatar

lukemarsden

View GitHub Profile
core@ip-172-31-14-1 ~/gentoo/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999 $ cat configure.ac
/*
* This file is part of the ZFS Linux port.
*
* Copyright (c) 2009 Lawrence Livermore National Security, LLC.
* Produced at Lawrence Livermore National Laboratory
* Written by:
* Brian Behlendorf <[email protected]>,
* Herb Wartens <[email protected]>,
* Jim Garlick <[email protected]>
core@ip-172-31-14-1 ~/gentoo/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999 $ cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ /home/core/gentoo/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/configure --prefix=/home/core/gentoo/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/home/core/gentoo/usr/share/man --infodir=/home/core/gentoo/usr/share/info --datadir=/home/core/gentoo/usr/share --sysconfdir=/home/core/gentoo/etc --localstatedir=/home/core/gentoo/var/lib --libdir=/home/core/gentoo/usr/lib --disable-dependency-tracking --docdir=/home/core/gentoo/usr/share/doc/zfs-kmod-9999 --bindir=/home/core/gentoo/bin --with-spl=/home/core/gentoo/usr/src/spl-0.6.3 --with-spl-obj=/home/core/gentoo/usr/src/spl-0.6.3/3.18.1 --sbindir=/home/core/gentoo/sbin --with-config=kernel --wi
core@ip-172-31-14-1 ~/gentoo $ cat /home/core/gentoo/var/tmp/portage/sys-fs/zfs-kmod-9999/temp/build.log
* Package: sys-fs/zfs-kmod-9999
* Repository: gentoo_prefix
* Maintainer: [email protected]
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux prefix rootfs userland_GNU
* FEATURES: preserve-libs userpriv usersandbox
* Determining the location of the kernel source code
* Found kernel source directory:
* /home/core/kernel-coreos-3.18.1
* Found sources for kernel version:
depmod: WARNING: could not open /lib/modules/3.13.0-24-generic/modules.order: No such file or directory
depmod: WARNING: /lib/modules/3.13.0-24-generic/kernel/drivers/md/dm-multipath.ko needs unknown symbol dm_get_queue_limits
depmod: WARNING: could not open /lib/modules/3.13.0-24-generic/modules.builtin: No such file or directory
make[1]: Leaving directory `/home/hybrid/zfs/module'
make[1]: Entering directory `/home/hybrid/zfs'
make[1]: *** No rule to make target `module/Module.symvers', needed by `all-am'. Stop.
make[1]: Leaving directory `/home/hybrid/zfs'
make: *** [install-recursive] Error 1
@lukemarsden
lukemarsden / crashdump.rst
Last active August 29, 2015 14:01
Problem with Ubuntu kernel crashdump

Following the instructions here: https://help.ubuntu.com/12.04/serverguide/kernel-crash-dump.html

Seems to be correctly configured:

hybrid@node001:~$ sudo dmesg |grep -i crash
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.8.0-38-generic root=UUID=fa9a6a3c-a3fb-407c-8952-d4a5d642af84 ro        crashkernel=384M-2G:64M,2G-:128M
[    0.000000] Reserving 64MB of memory at 800MB for crashkernel (System RAM: 1023MB)
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.8.0-38-generic root=UUID=fa9a6a3c-a3fb-407c-8952-d4a5d642af84     ro crashkernel=384M-2G:64M,2G-:128M
hybrid@node002:~/docker$ sudo docker build -t docker .
Uploading context 56.04 MB
Uploading context
Step 0 : docker-version 0.6.1
# Skipping unknown instruction DOCKER-VERSION
Step 1 : FROM ubuntu:13.10
---> 5e019ab7bf6d
Step 2 : MAINTAINER Tianon Gravi <[email protected]> (@tianon)
---> Using cache
---> eba0b362b75a
My traceroute [v0.85]
beam.local (0.0.0.0) Wed Feb 12 22:41:37 2014
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. 192.168.1.1 0.0% 1802 1.0 1.0 0.8 22.0 1.2
2. 192.168.1.1 9.7% 1802 122.0 131.4 7.5 339.7 23.7
3. aztw-core-2a-ae6-623.network.vir 7.0% 1802 138.7 133.4 7.2 293.9 23.4
4. brnt-bb-1c-ae11-0.network.virgin 18.3% 1802 158.1 139.4 14.6 341.8 23.8
5. tele-ic-7-ae0-0.network.virginme 8.2% 1802 146.3 139.4 14.6 367.3 24.4
Configure the default network::
TODO
Create 4 instances in two different data centers, create storage drives for each node and attaching the disks::
gcutil addinstance node001 --image=freebsd --zone=europe-west1-b --machine_type=n1-standard-4 &
gcutil addinstance node002 --image=freebsd --zone=europe-west1-b --machine_type=n1-standard-4 &
gcutil addinstance node003 --image=freebsd --zone=us-central1-a --machine_type=n1-standard-4 &
gcutil addinstance node004 --image=freebsd --zone=us-central1-a --machine_type=n1-standard-4
[root@node002 /opt/HybridCluster]# zpool status
pool: hpool
state: ONLINE
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: http://illumos.org/msg/ZFS-8000-8A
scan: none requested
config:
[my.hybrid-sites.com ~/public_html] git diff
diff --git a/include/Site.class.php b/include/Site.class.php
index 9c779f7..5d5fcf0 100644
--- a/include/Site.class.php
+++ b/include/Site.class.php
@@ -250,8 +250,8 @@ PHP;
// v database v file
if((int)$old_db_version > (int)$this->db_version) {
- print "Warning: your site has been rolled back to an earlier version of the code than is represented in your database. Refusing to act.";