FreeBSD

migrating data02/freshports/dev-nginx01 to data04

This post will be short on detail. I’m writing it for myself, to document what I’m doing. I suspect Migrating data02/freshports/dev-ingress01 to another zpool will be more useful to you. In this post: FreeBSD 15.0 I stopped the jail: [15:30 r730-01 dvl ~] % sudo service jail stop dev-nginx01 Stopping jails: dev-nginx01. I took dev.freshports.org offline via: The source Now, you might look at that, and wonder why the filesystems are offline. This […]

migrating data02/freshports/dev-nginx01 to data04 Read More »

Cleaning up snapshots

Now that I’ve copied two filesets from one zpool to another, let’s delete old snapshots. In this post: FreeBSD 15.0 Freeing up space I’m still hesitant to delete original data, but I’ll delete the snapshots. Here’s my list: [20:25 r730-01 dvl ~] % zfs list -H -o name -r -t snapshot data02/freshports/dev-ingress01.DELETE.ME.after.2026.05.15 | grep -v for.data04.0 | less data02/freshports/dev-ingress01.DELETE.ME.after.2026.05.15/dvl-src@autosnap_2026-04-15_00:00:03_daily data02/freshports/dev-ingress01.DELETE.ME.after.2026.05.15/dvl-src@autosnap_2026-04-16_00:00:16_daily data02/freshports/dev-ingress01.DELETE.ME.after.2026.05.15/dvl-src@autosnap_2026-04-17_00:00:07_daily data02/freshports/dev-ingress01.DELETE.ME.after.2026.05.15/dvl-src@autosnap_2026-04-17_19:00:02_hourly data02/freshports/dev-ingress01.DELETE.ME.after.2026.05.15/dvl-src@autosnap_2026-04-17_20:00:02_hourly data02/freshports/dev-ingress01.DELETE.ME.after.2026.05.15/dvl-src@autosnap_2026-04-17_21:00:09_hourly data02/freshports/dev-ingress01.DELETE.ME.after.2026.05.15/dvl-src@autosnap_2026-04-17_22:00:09_hourly data02/freshports/dev-ingress01.DELETE.ME.after.2026.05.15/dvl-src@autosnap_2026-04-17_23:00:11_hourly … data02/freshports/dev-ingress01.DELETE.ME.after.2026.05.15/scripts@autosnap_2026-04-19_19:15:13_frequently data02/freshports/dev-ingress01.DELETE.ME.after.2026.05.15/scripts@autosnap_2026-04-19_19:30:02_frequently data02/freshports/dev-ingress01.DELETE.ME.after.2026.05.15/scripts@autosnap_2026-04-19_19:45:11_frequently data02/freshports/dev-ingress01.DELETE.ME.after.2026.05.15/scripts@autosnap_2026-04-19_20:00:01_hourly data02/freshports/dev-ingress01.DELETE.ME.after.2026.05.15/scripts@autosnap_2026-04-19_20:00:01_frequently That

Cleaning up snapshots Read More »

after moving datasets, adjust configuration for sanoid and others

Earlier today, I moved two file systems from one zpool to another. I use sysutils/sanoid to take and manage snapshots of the more important data. In this post, I’ll update that configuration. Migrating ZFS filesystems from one zpool to another – same host Migrating data02/freshports/dev-ingress01 to another zpool These are the items which need updates: [20:04 r730-01 dvl ~] % sudo cp -p /usr/local/etc/sanoid/sanoid.conf /usr/local/etc/sanoid/sanoid.conf.backup.2026.04.19 [20:08 r730-01 dvl ~] % sudoedit /usr/local/etc/sanoid/sanoid.conf [20:03

after moving datasets, adjust configuration for sanoid and others Read More »

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 »

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: The original script is in my previous post. The new script is here: The results The resulting webpage looks something like this (what you

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: Yes, the rm is not necessary, since the file has already been moved. To

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 »

Scroll to Top