Open Source

knew

This post has been replaced by a newer post. This is the previous post for this system configuration. For future reference, this is the knew server … oh wait, I think it’s this server which is was mounted in the 3U chassis mentioned in this post (perviously erroneously referred to as a 4U). It runs a few jails, including Bacula regression testing services. It is now mounted in a SuperChassis 846E16-R1200B This recent […]

knew Read More »

zpool: FAULTED – too many errors

This server, knew has had an intermittent problem related to CAM status: SCSI Status Error messages. There is a FreeBSD Forums post about it. On Sunday, the problem returned, and this time it degraded the zpool. I collected the information in this gist and I will list the relevant portions below. I had enabled smartd testing and I received this email late on Sunday: Despite the promise of more information in the logs,

zpool: FAULTED – too many errors Read More »

degraded zpool

On Monday night at about 5:30 PM, I noticed the email: ** PROBLEM alert – knew/zpool is CRITICAL ** What sickened me was that the email was sent at 3:58 PM. That makes me think I should add a Pushover.net alert …. I could do that at my mail server. Logging into the server, I saw: [dan@knew:~] $ zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT system 90.5T

degraded zpool Read More »

Running FreeBSD on OSX using xhyve, a port of bhyve

bhyve is a hypervisor/virtual machine manager developed on FreeBSD. xhyve is port of bhyve to OS X. It is built on top of Hypervisor.framework in OS X 10.10 Yosemite and higher, runs entirely in userspace, and has no other dependencies. I usually use MacPorts, but ran into trouble with xhyve, so this morning I tried Homebrew instead. Installing Homebew (often referred to as brew) is outside scope, so please refer to their documentation.

Running FreeBSD on OSX using xhyve, a port of bhyve Read More »

newsyslog: chmod(/var/log/auth.log.6.bz2) in change_attrs: No such file or directory

This problem was difficult to figure out. The cause was simple, but not obvious. Messages such as this were appearing in emails From July: In August: I had no idea why. My initial suspicion was the /etc/newsyslog.conf configuration for that file: [dan@knew:~] $ grep auth /etc/newsyslog.conf /var/log/auth.log root:logcheck 640 7 * @T00 JC [dan@knew:~] $ That count is 7, so why is it complaining about 6? The files look ok: [dan@knew:~] $ ls

newsyslog: chmod(/var/log/auth.log.6.bz2) in change_attrs: No such file or directory Read More »

PostgreSQL – convert a user to a role

Users and Roles in PostgreSQL are very similar. When I set up the FreshPorts database back in mid-2000, I was using PostgreSQL 7.0.3 (that’s my best guess based on my blog entry). I suspect roles were not available then and were introduced with PostgreSQL 8. I am positive someone will correct me if that’s wrong. I now have a need to convert a user into a role, then add users to that role.

PostgreSQL – convert a user to a role Read More »

Perl @INC – customizing it for FreeBSD

This post is all about creating technical debt. If you accept that, go for it. I’m avoiding porting my FreshPorts scripts into SITEPERL. Why? I’ll migrate them to SITEPERL after BSDCan & PGCon. Right now, I need to get the servers upgraded from Perl 5.24 to Perl 5.26, because 5.24 is deprecated. FreshPorts uses Perl for processing incoming commits and for various administrative backend tasks. Everything on the front end (website) is PHP

Perl @INC – customizing it for FreeBSD Read More »

Using mtqq to create a notification network: mosquitto, mqttwarn, hare, and hared

As you read this post, keep in mind that my particular use case of notification on ssh login is not for everyone. It may not appeal to you. In fact, you might find this to be an absolutely ridiculous thing to do. I respect that. I suggest that somewhere within your network there is at least one type of error condition, one urgent situation, one thing that you would like pushed to your

Using mtqq to create a notification network: mosquitto, mqttwarn, hare, and hared Read More »

Book Review: Ed Mastery

I don’t normally offer guest posts here, but on this rare occasion I couldn’t say no. Here’s a guest post from Michael W Lucas. What one of us finds delightful, another person might find loathsome. That’s human nature. I keep reminding myself of this every time people start babbling about the virtues of something I find completely idiotic. Keeping my mouth shut gets me out of many arguments before they start. People learn

Book Review: Ed Mastery Read More »

Scroll to Top