Skip to content

Instantly share code, notes, and snippets.

@karcaw
karcaw / gist:9d66e171ed7b14de27c7f88b8a9bff09
Created June 21, 2022 22:26
debug log on import of tiof3-storage006
timestamp message
1655849974 zfs_ioctl.c:1043:zfs_secpolicy_log_history(): error 1
1655849976 zfs_ioctl.c:1043:zfs_secpolicy_log_history(): error 1
1655849978 zfs_ioctl.c:1043:zfs_secpolicy_log_history(): error 1
1655849980 zfs_ioctl.c:1043:zfs_secpolicy_log_history(): error 1
1655849982 zfs_ioctl.c:1043:zfs_secpolicy_log_history(): error 1
1655849984 zfs_ioctl.c:1043:zfs_secpolicy_log_history(): error 1
1655849986 zfs_ioctl.c:1043:zfs_secpolicy_log_history(): error 1
1655849988 zfs_ioctl.c:1043:zfs_secpolicy_log_history(): error 1
1655849990 spa.c:5145:spa_open_common(): error 2
@karcaw
karcaw / gist:eb474d5802ef6e3f385e77ea57a0c56e
Created June 21, 2022 15:55
zdb -e -bc tiof3-storage006 output
This file has been truncated, but you can view the full file.
Traversing all blocks to verify metadata checksums and verify nothing leaked ...
zdb_blkptr_cb: Got error 52 reading <54, 0, 1, 0> -- skipping
zdb_blkptr_cb: Got error 52 reading <54, 0, 1, 1b> -- skipping
zdb_blkptr_cb: Got error 52 reading <54, 0, 1, 28> -- skipping
zdb_blkptr_cb: Got error 52 reading <54, 0, 1, 41> -- skipping
zdb_blkptr_cb: Got error 52 reading <54, 0, 1, 42> -- skipping
zdb_blkptr_cb: Got error 52 reading <54, 0, 1, 43> -- skipping
zdb_blkptr_cb: Got error 52 reading <54, 0, 1, 44> -- skipping
@karcaw
karcaw / tiof3-storage006.txt
Created June 19, 2022 14:38
tiof3-storage006 zdb dump
This file has been truncated, but you can view the full file.
Cached configuration:
version: 5000
name: 'tiof3-storage006'
state: 0
txg: 10751385
pool_guid: 3033372646816007856
errata: 0
hostname: 'tiof4'
com.delphix:has_per_vdev_zaps
# Built by Evan Felix for the PNNL EMSL Systems
# See www.emsl.pnl.gov
#
# Build with commands simalar to this:
# mkdir -p overlay/upper
# mkdir -p overlay/work
# truncate -s $$((1024*1024*1024)) overlay.img && mkfs.ext3 -d overlay overlay.img
# singularity build -F $@ $<
# singularity sif add --datatype 4 --partfs 2 --parttype 4 --partarch 2 --groupid 1 $@ overlay.img
#
@karcaw
karcaw / ubuntu20.04.tmpl
Last active November 23, 2023 04:43
Xcat Ubuntu 20.04 template
#cloud-config
autoinstall:
version: 1
keyboard: {layout: us, toggle: null, variant: ''}
locale: en_US
network:
ethernets:
ens3:
dhcp4: true
version: 2
@karcaw
karcaw / array.c
Created March 25, 2016 00:07
Example Array Code
#include <stdlib.h>
#include <stdio.h>
int main() {
long a[10];
int *b = (int *)malloc(sizeof(int)*10);
double c[] = { 1.0,4,5,6,-1,2 };
long *p;
char hi[]="Hello";