Author name: Dan Langille

I've been playing with computers since I read an Elementary Electronics magazine way back in the 1970s. I started contributing to open source projects in 1998. After that, I gradually moved from being a software developer to being a systems administrator.

Migrating data02/freshports/dev-ingress01 to another zpool

I’m going to migrate data02/freshports/dev-ingress01 to the data04 This is before: [13:45 r730-01 dvl ~] % zfs list -r data02/freshports/dev-ingress01 NAME USED AVAIL REFER MOUNTPOINT data02/freshports/dev-ingress01 229G 60.6G 88K none data02/freshports/dev-ingress01/dvl-src 197G 60.6G 197G /jails/dev-ingress01/usr/home/dvl/src data02/freshports/dev-ingress01/freshports 22.9G 60.6G 2.09G /jails/dev-ingress01/var/db/freshports data02/freshports/dev-ingress01/freshports/cache 2.30M 60.6G 132K /jails/dev-ingress01/var/db/freshports/cache data02/freshports/dev-ingress01/freshports/cache/html 2.07M 60.6G 2.07M /jails/dev-ingress01/var/db/freshports/cache/html data02/freshports/dev-ingress01/freshports/cache/spooling 104K 60.6G 104K /jails/dev-ingress01/var/db/freshports/cache/spooling data02/freshports/dev-ingress01/freshports/message-queues 20.8G 60.6G 14.4M /jails/dev-ingress01/var/db/freshports/message-queues data02/freshports/dev-ingress01/freshports/message-queues/archive 20.8G 60.6G 11.7G /jails/dev-ingress01/var/db/freshports/message-queues/archive data02/freshports/dev-ingress01/ingress 5.39G 60.6G 132K /jails/dev-ingress01/var/db/ingress data02/freshports/dev-ingress01/ingress/latest_commits 528K 60.6G […]

Migrating data02/freshports/dev-ingress01 to another zpool Read More »

Migrating ZFS filesystems from one zpool to another – same host

Not so long ago, a disk space issue arose. I obtained some new drives (thank you to those who donated) and I consolidated some of the space. However, I had not yet taken care of the problem. For my first example, I’ll copy my vm data over. In my next post, I’ll copy dev.freshports.org to a new dataset. In this post: FreeBSD 15.0 What happened? Yesterday, the chickens came home to roost. The

Migrating ZFS filesystems from one zpool to another – same host Read More »

My solution for copying backups around the homelab

I have database servers outside the homelab, as in not in my basement. They are in datacenters. I don’t let them push the backups into the basement. Instead, I let them call home asking for the backups to be picked up. I prefer it that way. As I describe it, it may seem complex to do multiple steps when one step will do. However, this solution promises that the backups are ready and

My solution for copying backups around the homelab Read More »

Creating a FreeBSD virtual machine using bhyve-vm

I had a need for FreeBSD-16.0-CURRENT. I’m already using sysutils/vm-bhyve (Management system for bhyve virtual machines, relevant blog post). These steps really are very short notes. In this post: FreeBSD 15.0 (the host system) vm-bhyve-1.7.0_1 FreeBSD 16.0-CURRENT The very short notes The VMs I had before I started: [23:36 r730-01 dvl /data04/images/FreeBSD] % sudo vm list NAME DATASTORE LOADER CPU MEMORY VNC AUTO STATE freebsd-test default bhyveload 1 256M – No Stopped hass

Creating a FreeBSD virtual machine using bhyve-vm Read More »

maintenance script changes

After I wrote the script to put up a maintenance page for my websites, I came up with two more things to display on the page: Timestamp for start of maintenance Reason for maintenance In this post: FreeBSD 15.0 The new script The new script is invoked like this: [14:11 r720-02-proxy01 dvl ~] % ~/bin/offline dev.freshports.org "$(date -R -v +2H)" "Offline for database update" <html> <head> <title>Error 503 Service Unavailable</title> <style> <style> body

maintenance script changes Read More »

Hacking openvpn to use syslog with something other than facility = daemon

I don’t see a way to specify the syslog facility for OpenVPN – perhaps I can change that in the code. It would allow logging openvpn to a specific file and being able to rotate that log file. –log-append does not allow for log rotation. In this post: FreeBSD 15.0 OpenVPN 2.6.19 Signals sent to OpenVPN do not affect logging. Thus, I must rely upon syslog and newsyslog to achieve log rotation. At

Hacking openvpn to use syslog with something other than facility = daemon Read More »

Script to generate that maintenance.html file for taking my websites into maintenance mode

In a recent blog post, I showed you how I was taking my websites into maintenance mode. Shortly afterwards, I wrote about how using $server_name can have odd consequences. Today, I’m writing about the script I just created which will create those maintenance.html files. In this post: FreeBSD 15.0 nginx 1.28.2 bourne shell The script This is the script: [12:17 r720-02-proxy01 dvl /usr/local/www/offline] % cat ~/bin/offline #!/bin/sh # Usage: ~/bin/offline foo.bar "$(date -R

Script to generate that maintenance.html file for taking my websites into maintenance mode Read More »

Using variable names in nginx declarations has a price: e.g. ssl_certificate /usr/local/etc/ssl/${server_name}.fullchain.cer;

I recently implemented a fun (to me) and easy solution for taking my web proxy websites offline, either one-by-one, or all-at-once. Today’s post talks about some of the repercussions which followed one-new-thing I tried. In this post: FreeBSD 15.0 nginx 1.28.2 I jump between testing the test host and stage host; both had similar issues. The relevant changes This is the type of change I started to do. Instead of putting the hostname

Using variable names in nginx declarations has a price: e.g. ssl_certificate /usr/local/etc/ssl/${server_name}.fullchain.cer; Read More »

ddclient 4 changes

After a 4-hour power outage today (crews were working on the power lines), my home IP address changed, perhaps for the first time in over a year. I also noticed ddclient was no longer installed on my host. This blog post outlines changes from the original article. In this post: I’m mostly documenting my local changes based on the previous post. FreeBSD 15.0 ddclient-4.0.0 Updates to the Ansible playbook for ddclient: https://github.com/dlangille/ddclient/ forked

ddclient 4 changes Read More »

Scroll to Top