Adding in a stand-by spare drive for ZFS on FreeBSD

This is a follow up to Adding in a hot-spare for zfs on FreeBSD from two months ago. The replacement for the returned drive has arrived and after sitting for many weeks on my coffee table, it is installed in r730-03. Here it is, as found in /var/log/messages – this host is a Dell R730 which has drive cages allowing me to insert the drive without powering off the host. Jun 30 16:17:15

Adding in a stand-by spare drive for ZFS on FreeBSD Read More »

FreeBSD – view mongodb featureCompatibilityVersion

This took me a while to figure out. First, I learned I needed (re Mongo shell (mongosh) is missing. I built and installed databases/mongosh. Then I ran this command: [13:00 unifi01 dvl ~] % mongosh –port 27117 Current Mongosh Log ID: 686138ea47e9a86d2a5e3cea Connecting to: mongodb://127.0.0.1:27117/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.3.8 Using MongoDB: 7.0.21 Using Mongosh: 2.3.8 For mongosh info see: https://www.mongodb.com/docs/mongodb-shell/ To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy). You

FreeBSD – view mongodb featureCompatibilityVersion Read More »

Steps for adding a new laptop

I have a new-to-me-laptop. This post isn’t about setting it up, installing applications, etc. Nor is it about copying data from the old laptop to the new laptop. This post is about the configuration things which are specific to this laptop, which is known as pro05.int.unixathome.org. It will cover several steps that, because they are carried out so infrequently, I don’t always remember them. Hopefully, this will help me the next time I

Steps for adding a new laptop Read More »

FreshPorts repos to be converted to subversion – a first draft

FreshPorts is just over 25 years old. The original repository was cvs. Some of it was converted to subversion in October 2002. That same repo was converted to Git in September 15 Some FreshPorts repos are still on subversion – many are up on Github (19 of them at https://github.com/FreshPorts/) I thank Cosmin Stroe (Chicago) and Caleb L. Power for their efforts in this area. This has been an ongoing process. Latest work

FreshPorts repos to be converted to subversion – a first draft Read More »

Implement Anubis to give the bots a harder time

On the morning of 1 May 2025, I noticed the FreshPorts production website was under heavy load. For the most part, the database server was running at 100%. The usual load is 7%. Even if you look back 4 weeks, this was highly unusual. I found it was one IP address. I blocked it. The load dropped. It had been going for hours. Time to try Anubis. In this post: FreeBSD 14.2 go-anubis

Implement Anubis to give the bots a harder time Read More »

Making sure I remove the correct drive

Yesterday, I discovered I had removed the wrong drive from a zpool. In this post: FreeBSD 14.2 Today, the zpool replace command has completed. Next, I carefully chose the right drive to pull from the drive bays. Status This is the zpool status, just before it completed: After it completed: I see gpt/SG_ZHZ16KEX is no longer in the zpool. Not trusting myself, I checked this way: [20:33 r730-03 dvl ~] % zpool status

Making sure I remove the correct drive Read More »

What drive did I just remove from the system?

So there I was… ready to remove the drive from the system. This was the drive which was giving errors and which had already been replaced. In this post: FreeBSD 14.2 Let’s look at the drive I just wiped … I was doing this command: [20:11 r730-03 dvl ~] % sudo dd if=/dev/zero of=/dev/gpt/HGST_8CJVT8YE bs=4M Let’s run it again and see which drive LED lights up. Yep, there it is. CTL-C, LED goes

What drive did I just remove from the system? Read More »

Using ~/.ssh/authorized keys to decide what the incoming connection can do

~/.ssh/authorized_keys allows you to specify the command run by the incoming ssh connection. In this post: FreeBSD 14.2 I was searching for a previous blog post to give you some background. I failed. I backup my Bacula database and my Bacula configuration via rsync. These backups go to more than one host. The following are lines from ~rsyncer/.ssh/authorized-keys on my dbclone host – which gathers database backups from various hosts. The above appears

Using ~/.ssh/authorized keys to decide what the incoming connection can do Read More »

LibreNMS Service health file disabled

There is no solution here. I’m merely documenting. I use LibreNMS for metrics. Recently, a new item has appeared in the logs: Apr 17 00:00:17 besser librenms[81601]: besser.int.unixathome.org(INFO):Service health file disabled. Checking the code, I found the reference on line 422 of LibreNMS/service.py: Searching for health_file, I found: Which tells me I can set this in my configuration. Searching files: [11:21 besser dvl /usr/local/www/librenms] % grep -ril service_health_file * LibreNMS/service.py app/Console/Commands/HealthCheck.php html/js/lang/en.js lang/en/settings.php

LibreNMS Service health file disabled Read More »

Scroll to Top