- Edit /etc/rc.conf
cloned_interfaces="bridge0 tap0 tap1 tap2 lagg0"
ifconfig_bridge0="addm lagg0 addm tap0 addm tap1 addm tap2"
vm_list="unifi zm1 grafana"
- Create a tap for grafana, and add it to the bridge.
ifconfig tap2 create
filter { | |
if [type] == "telemetry" { | |
geoip { source => "ip" } | |
} else if [fields][type] == "telemetry" { | |
# How do I target a nested field here, vs. what is above? | |
geoip { source => "[message][ip]" } | |
prune { blacklist_names => [ "[message][headers]" ] } | |
} | |
} |
server { | |
listen 80 default_server; | |
server_name _; | |
root /home/kjohnson/updated-console/web; | |
index index.php; | |
location ~* \.(?:jpg|jpeg|png|gif|ico|css|js)$ { | |
expires 2d; | |
add_header Pragma public; | |
add_header Cache-Control "public"; |
[kyle@colossus2 ~]$ zpool status tank | |
pool: tank | |
state: ONLINE | |
scan: scrub repaired 0 in 103h53m with 0 errors on Sat Mar 25 18:45:17 2017 | |
config: | |
NAME STATE READ WRITE CKSUM | |
tank ONLINE 0 0 0 | |
raidz3-0 ONLINE 0 0 0 | |
diskid/DISK-K1G0BR5B%20%20%20%20%20%20%20%20%20%20%20%20 ONLINE 0 0 0 |
#!/usr/bin/python | |
import Adafruit_DHT | |
sensor = Adafruit_DHT.DHT22 | |
pin = 26 | |
humidity, temperature = Adafruit_DHT.read_retry(sensor, pin) | |
if humidity is not None and temperature is not None: | |
print('{0:0.0f}').format(humidity) |
[kyle@colossus network-scripts]$ cat ifcfg-bond1 | |
DEVICE=bond1 | |
BONDING_MASTER=yes | |
TYPE=Bond | |
ONBOOT=yes | |
BOOTPROTO=none | |
BONDING_OPTS="mode=4 miimon=80" | |
MTU=1500 | |
[kyle@colossus network-scripts]$ cat ifcfg-bond1.110 |
ezjail-admin stop | |
zfs snapshot -r zedroot/ezjail@migrate | |
zfs umount ... | |
zfs send -R zedroot/ezjail@migrate | zfs recv -d vm |
cloned_interfaces="bridge0 tap0 tap1 tap2 lagg0"
ifconfig_bridge0="addm lagg0 addm tap0 addm tap1 addm tap2"
vm_list="unifi zm1 grafana"
ifconfig tap2 create
[kjohnson@nas ~]$ zpool status | |
pool: tank | |
state: ONLINE | |
scan: scrub repaired 0 in 9h7m with 0 errors on Fri Dec 2 02:39:00 2016 | |
config: | |
NAME STATE READ WRITE CKSUM | |
tank ONLINE 0 0 0 | |
raidz1-0 ONLINE 0 0 0 | |
da0p3 ONLINE 0 0 0 |
[root@colossus2 ~]# zfs create -o quota=10g tank/minio/pool2/7 | |
[root@colossus2 ~]# zfs create -o quota=10g tank/minio/pool2/8 | |
[root@colossus2 ~]# ./minio server --address localhost:10002 http://localhost:10002/tank/minio/pool2/1 http://localhost:10002/tank/minio/pool2/2 http://localhost:10002/tank/minio/pool2/3 http://localhost:10002/tank/minio/pool2/4 http://localhost:10002/tank/minio/pool2/5 http://localhost:10002/tank/minio/pool2/6 http://localhost:10002/tank/minio/pool2/7 http://localhost:10002/tank/minio/pool2/8 | |
FATA[0000] formatting storage disks failed cause=Number of disks 8 did not match the backend format 6 source=[server-main.go:458:serverMain()] | |
[root@colossus2 ~]# |
server { | |
listen 80 default_server; | |
server_name _; | |
root /var/www/zm; | |
index index.php; | |
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} |