My TrueNAS Scale server recently started throwing the following zfs module kernel panic on boot:
PANIC at space_map.c:405:space_map_load_callback()
What follows are the steps I took to retrieve the data from the corrupted zfs pool.
How to install phpredis extension on Centos6 using pecl:
# Enable EPEL repository
yum install epel-release
# Install Autoconf v2.68
yum install autoconf268
# Install the extensiondnf install ICAClientWeb-rhel-13.10.0.20-0.x86_64.rpmsudo dnf install compat-openssl10 motif libXaw libidn1.34 libjpeg-turbo-utils
/usr/share/applications/wfica.desktop:| #!/bin/bash | |
| # Given a list of IP addresses (in file 'ips') find what the SSL CN (subject) is for each one. | |
| echo -en "IP\tSSL CN\n" | |
| for i in `cat ips`; do | |
| echo -en "$i\t" | |
| out=`timeout 2 bash -c "openssl s_client -showcerts -connect $i:443 < /dev/null 2> /dev/null | openssl x509 -noout -subject 2> /dev/null | grep 'subject=' | sed -rn 's/.*CN=([^ /]+).*/\1/p'"` | |
| if [ $? -eq 124 ]; then | |
| echo "(timeout)" |
| // Sign the request and return header array for use by curl | |
| // | |
| // For HTTP methods with no payload (GET,DELETE) leave $Payload , $ContentType empty | |
| // | |
| // Based on: http://usefulangle.com/post/34/aws-s3-upload-api-php-curl | |
| private function SignRequest($Method, $URL, $Payload='', $ContentType='') | |
| { | |
| if(!defined('AWS_ACCESS_KEY_ID') || !defined('AWS_SECRET_ACCESS_KEY') || !defined('AWS_REGION')) | |
| return null; |
| package main | |
| import ( | |
| "encoding/binary" | |
| "fmt" | |
| "math/rand" | |
| "net" | |
| ) | |
| func main() { |
| #!/usr/bin/env bash | |
| echo "Exetel" | |
| echo "---" | |
| USERNAME="076543210" | |
| PASSWORD="xxxxx" | |
| MinAge=5 | |
| COOKIE="/tmp/exetel.cookies" | |
| JSON="/tmp/exetel.json" |
| #!/bin/bash | |
| # compare AWS ELB: CLB (classic) and ALB (application) response times | |
| # all output times are in seconds | |
| CLB_URL="https://clb.example.com" | |
| ALB_URL="https://alb.example.com" | |
| clb_wins=0 | |
| alb_wins=0 |
| package main | |
| import ( | |
| "bufio" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "os" | |
| "strconv" |