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.

Overly agressive spam rejection

I’ve been getting a few of these emails lately. It’s my own servers rejecting email I’m send to myself. I’m not sure yet where to adjust these settings. I’m not even sure what software is rejecting it. I suspect amavis. Return-Path: <dan@supernews.example.org> X-Original-To: dan@nyi.example.org Delivered-To: dan@nyi.example.org Received: from localhost (localhost [127.0.0.1]) by nyi.example.org (Postfix) with ESMTP id 0B2F350BC6 for <dan@nyi.example.org>; Fri, 17 Sep 2010 01:47:15 +0100 (BST) X-Virus-Scanned: amavisd-new at example.org Received: from […]

Overly agressive spam rejection Read More »

ntp wasn’t running but Nagios didn’t notice

Earlier today, I noticed the following output from a Bacula job: 24-Sep 14:14 bacula-dir JobId 38548: Start Backup JobId 38548, Job=latens_home.2010-09-24_14.12.38_31 24-Sep 14:14 bacula-dir JobId 38548: Using Device “MegaFile-latens” 24-Sep 14:09 latens-fd JobId 38548: DIR and FD clocks differ by -307 seconds, FD automatically compensating. That’s 5 minutes. It shouldn’t be varying by that much. So I started ntp. That’s when I noticed it was not being started by /etc/rc.conf. But I thought

ntp wasn’t running but Nagios didn’t notice Read More »

Rebate!

Back in Feburary, I ordered a 720W PSU for $150. There was a $60 rebate with it. When the PSU arrived, I promptly filled out the form and put it in an envelope for mailing. Except, I didn’t mail it. I found that envelope a few weeks ago. What the hell. I mailed it. It was already stamped etc. Today I got a $60 VISA debate card. Win. Interestingly enough, I originally bought

Rebate! Read More »

ZFS – how much space do I have?

According to this, I have 5.41T available. $ zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT storage 12.7T 7.28T 5.41T 57% ONLINE – According to this, I have 3.7T available: $ df -h | grep stora storage 3.7T 1.7G 3.7T 0% /storage storage/Retored 3.7T 39K 3.7T 0% /storage/Retored storage/bacula 8.0T 4.3T 3.7T 54% /storage/bacula storage/pgsql 3.7T 5.5G 3.7T 0% /storage/pgsql Which is correct?

ZFS – how much space do I have? Read More »

Sending out a URL for password reset

Quite some time ago, FreshPorts and The FreeBSD Diary both moved from clear text passwords to password hashes. As such, you are no longer able to recover your password. You had to email me. This is extra work for everyone. Let us automate this. The first, step, is a table: create table user_password_reset( user_id int not null, date_requested timestamp with time zone default (‘now’::text)::timestamp(6) with time zone, ip_address inet not null, token text

Sending out a URL for password reset Read More »

3Ware RAID issues resolved

It seems the RAID issues mentioned in recent posts have been resolved. On Friday, I upgraded the firmware on the controller and rebooted. 5 days later, the status is still OK: $ sudo /usr/local/sbin/tw_cli info c0 u0 Password: Unit UnitType Status %RCmpl %V/I/M Port Stripe Size(GB) ———————————————————————— u0 RAID-10 OK – – – 64K 195.548 u0-0 RAID-1 OK – – – – – u0-0-0 DISK OK – – p0 – 65.1826 u0-0-1 DISK

3Ware RAID issues resolved Read More »

More RAID oddness

After running the 3Ware diagnostic script, the status of the array went to OK. A short time later, it reverted to this $ sudo /usr/local/sbin/tw_cli info c0 u0 Unit UnitType Status %RCmpl %V/I/M Port Stripe Size(GB) ———————————————————————— u0 RAID-0 OK – – – 64K 195.548 u0-0 UNKNOWN UNKNOWN – – p0 – 104.314 u0/v0 Volume – – – – – 195.548 But this differs from the web output (image) which is rather similar

More RAID oddness Read More »

RAID issues

I discovered this tonight. I don’t know how long this has been going on. $ sudo tw_cli info c0 Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy —————————————————————————— u0 RAID-10 OK – – 64K 195.548 ON OFF u1 SPARE OK – – – 69.2404 – OFF u2 SPARE OK – – – 69.2404 – OFF Port Status Unit Size Blocks Serial ————————————————————— p0 OK u0 69.25 GB 145226112 WD-WMAKE2379003 p1 OK u1

RAID issues Read More »

FreeBSD 7.3 – you don’t want 16 CPUs

Oh… Apparently this afflicted 7.3-RELEASE for a short while, then was corrected in 7.3-STABLE. So I’m not sure what problem I was encountering below. The consensus now is I was hitting MAXCPU. But I should have hit that on 7.2. I upgraded a VM to FreeBSD 7.3 from 7.2 and now it won’t boot. It stops probing at MDT: Found CPU APIC ID 15 ACPI ID 15: disabled. Tried booting in single user,

FreeBSD 7.3 – you don’t want 16 CPUs Read More »

Oops

— /etc/master.passwd 2010-03-08 16:00:49.000000000 +0000 +++ ./etc/master.passwd 2010-08-23 01:04:12.000000000 +0100 @@ -1,6 +1,6 @@ -# $FreeBSD: src/etc/master.passwd,v 1.40 2005/06/06 20:19:56 brooks Exp $ +# $FreeBSD: src/etc/master.passwd,v 1.40.22.1 2009/08/03 08:13:06 kensmith Exp $ # -root:*:0:0::0:0:Charlie &:/root:/bin/csh +root::0:0::0:0:Charlie &:/root:/bin/csh toor:*:0:0::0:0:Bourne-again Superuser:/root: daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin operator:*:2:5::0:0:System &:/:/usr/sbin/nologin @@ -21,23 +21,3 @@ pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin -dan:*:1001:1001::0:0:Dan Langille:/home/dan:/usr/local/bin/bash -pgsql:*:70:70::0:0:PostgreSQL Daemon:/usr/local/pgsql:/bin/sh -mysql:*:88:88::0:0:MySQL Daemon:/nonexistent:/sbin/nologin -postfix:*:125:125::0:0:Postfix Mail System:/var/spool/postfix:/usr/sbin/nologin -vscan:*:110:110::0:0:Scanning Virus Account:/var/amavis:/bin/sh -spamd:*:58:58::0:0:SpamAssassin user:/var/spool/spamd:/sbin/nologin

Oops Read More »

Scroll to Top