Skip to content

Instantly share code, notes, and snippets.

View griznog's full-sized avatar

griznog griznog

View GitHub Profile
@griznog
griznog / gist:bd4ed4954d62a10ee12b3a84b19da44f
Created September 13, 2024 12:19
4 x WD Data102 JBOD ZFS pool with draid3.
pool: jbodpool
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
jbodpool ONLINE 0 0 0
draid3:8d:102c:3s-0 ONLINE 0 0 0
pci-0000:41:00.0-sas-exp0x5000ccab05483aff-phy0-lun-0 ONLINE 0 0 0
pci-0000:41:00.0-sas-exp0x5000ccab05483aff-phy1-lun-0 ONLINE 0 0 0
pci-0000:41:00.0-sas-exp0x5000ccab05483aff-phy2-lun-0 ONLINE 0 0 0
@griznog
griznog / log-sizes-per-day.csv
Created August 3, 2024 14:13
Message log sizes per day, small HPC environment (< 100 nodes)
messages-20220102 9998213
messages-20220109 27720219
messages-2022-01-12 361453409
messages-2022-01-13 132307201
messages-2022-01-14 121775716
messages-2022-01-15 125445202
messages-2022-01-16 40457067
messages-2022-01-17 24043400
messages-2022-01-18 34431218
messages-2022-01-19 34849615
@griznog
griznog / dnsmasq.conf
Last active April 12, 2024 14:40
DNSMasq conf for warewulf
###########################################################
# Logging, uncomment for troubleshooting.
log-dhcp
# log-queries
log-async=100
# log-debug # Only works with newest dnsmasq.
# Only use one of these.
# Log to syslog
log-facility=DAEMON
@griznog
griznog / example.txt
Created August 29, 2023 13:52
Example of using nodes.conf without any `struct` involved.
$ go mod init yamltesting
$ go mod tidy
$ go run main.go nodes.conf ifcfg.ww
# Node: cpu-a-1
TYPE=Ethernet
DEVICE=enp161s0f1np1
NAME=enp161s0f1np1
BOOTPROTO=static
DEVTIMEOUT=10
IPADDR=100.64.2.1
@griznog
griznog / wwrebuild
Created August 24, 2023 13:48
Wrapper for building all overlays.
#!/bin/bash
# Author: griznog
# Purpose: Build/update overlays for all nodes.
# Pull in warewulf functions/variables for this node.
[[ -f /warewulf/etc/functions ]] && source /warewulf/etc/functions || exit 1
# Collect an MD5SUM for an entire directory, hopefully in a repeatable way.