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 »

Adding in a hot-spare for zfs on FreeBSD

But first, there’s more Right after asking “Anyone running zfsd? Did you do anything in particular to configure it? I just added my first hot-spare to a zpool.”, ivy told me “noooooooo don’t use hot spares!! Keep a cold spare or at least an online device not attached to a pool. otherwise your zpool will randomly decide to attach its hot spare due to a temporary cabling issue or something like that. the

Adding in a hot-spare for zfs on FreeBSD Read More »

network connectivity issues – in the #homelab

Yesterday a big storm came through. Many downed trees (photos here). The power went off at about 0500 and came back again at about 1009, off again at 1309, back at 1319. It was then stable for the rest of the day. Overnight, I saw monitoring alerts which initially made me think there was another power cut. uptime showed that was not the case. I also didn’t see any timeout messages meaning the

network connectivity issues – in the #homelab Read More »

invalid user dan or illegal user dan? Why different messages?

Last night, I wanted to update several hosts which were running sysutils/samdruckerclientshell. I ran csshX host1 host2 host3 … hostn. I didn’t get connected to all the host, so I closed out those screens and tried againg, adding -l dvl to the command. I got connected. Updated the packages, and went on with other tasks. What happened? On the laptop I was using, I was logged in as the user dan, so the

invalid user dan or illegal user dan? Why different messages? Read More »

Why don’t my hosts get IPv6 routes?

I started this off as a post on FreeBSD Forums, but as I composed it, I decided it was better as a blog post. This post is most likely not useful to anyone. I solved the problem by rebooting the gateway. I never did find out the cause of the routing issue. Astute readers will recognized the IP4 and IPv6 addresses in this post – they are taken from RFCs which designate ranges

Why don’t my hosts get IPv6 routes? Read More »

powerd++: Not always savings

First, let me be clear: I am a fan of powerd++. I use it on all servers in the basement. A recent test shows my gateway does not benefit from it. To determine the range of this graph, I consulted my logs: [11:31 gw01 dvl ~] % sudo grep powerd /var/log/auth.log Mar 25 12:38:12 gw01 sudo[73534]: dvl : TTY=pts/1 ; PWD=/usr/home/dvl ; USER=root ; COMMAND=/usr/sbin/service powerdxx sto Mar 25 12:38:18 gw01 sudo[73544]: dvl

powerd++: Not always savings Read More »

Scroll to Top