ZFS & gmirror & drive renumbering

I am impressed…. my gmirror array continued to work even after the drives were renamed from da20 and da24 to ada0 and ada1. This happened when I tried out the ahci(4) for my SATA drives. It’s the type of thing I’m striving for soon in my ZFS array. All this started when I wanted to find out about making my ZFS array more resilient. See http://docs.freebsd.org/cgi/getmsg.cgi?fetch=663685+0+current/freebsd-stable (which is the top level post of […]

ZFS & gmirror & drive renumbering Read More »

Postini

I’ve been thinking about giving up my mail servers for a while. After many years of getting great satisfaction from running my own, I’m thinking of letting Google run them for me. Economies of scale means Google can do a much better job than I ever could, and for a very great price. For $12 a year, Google will be my MX servers. I won’t have to upgrade software, worry about them going

Postini Read More »

A simple nested loop

In a previous post, I wrote about a suspected LIMIT problem. It turns out that suspicion proved correct. The solution was to move to a nested query which limits the underlying data and then allows the outer query to grab all the associated fluff that surrounds it. Here is the fix to the original code: $ cvs di -ub commits_by_committer.php Index: commits_by_committer.php =================================================================== RCS file: /home/repositories/freshports-1/classes/commits_by_committer.php,v retrieving revision 1.3 diff -u -b -r1.3

A simple nested loop Read More »

How many FreshPorts accounts are enough?

I found this interesting. The usual FreshPorts logging indicated an unusual number of account creations in a short amount of time. So I went looking. I found one IP address had created 20 logins. freshports.org=# SELECT ip_address, freshports.org-# count(ip_address) freshports.org-# FROM users freshports.org-# GROUP BY ip_address freshports.org-# ORDER BY 2 DESC freshports.org-# LIMIT 2; ip_address | count —————+——- 0.0.0.0 | 1203 95.211.27.210 | 38 (2 rows) freshports.org=# Ignore that 0.0.0.0. That indicates a

How many FreshPorts accounts are enough? Read More »

Bacula – errors with 5.0.0 backup catalog

While creating the FreeBSD package for 5.0.0, I noticed a few new things to be aware of. With 5.0.0 comes a new backup catalog script. It parses the bacula-dir.conf file and extracts what it needs from that. This means you only need to specify the database connection information in one place and it is not passed to a script via the command line. If you see this error while running that script: 25-Jan

Bacula – errors with 5.0.0 backup catalog Read More »

power failure and gmirror

From this morning’s log after a weekend power failure: Mar 15 09:15:45 subie kernel: GEOM_MIRROR: Device gm0: rebuilding provider ad8 finished. Mar 15 09:20:58 subie fsck: /dev/mirror/gm0s1f: UNREF FILE I=35 OWNER=root MODE=100400 Mar 15 09:20:58 subie fsck: /dev/mirror/gm0s1f: SIZE=151568652480 MTIME=Mar 13 16:03 2010 (CLEARED) Mar 15 09:20:58 subie fsck: /dev/mirror/gm0s1f: UNREF FILE I=15356429 OWNER=dan MODE=100644 Mar 15 09:20:58 subie fsck: /dev/mirror/gm0s1f: SIZE=216159 MTIME=Mar 13 15:35 2010 (CLEARED) Mar 15 09:20:58 subie fsck: /dev/mirror/gm0s1f:

power failure and gmirror Read More »

NRPE: Unable to read output

After rebooting kraken to take a photo, I found nagios was displaying an error for my smartmon checks: NRPE: Unable to read output. Running the command by hand on the nagios server, I found: $ /usr/local/libexec/nagios/check_nrpe2 -H kraken -c check_smartmon_ad24 NRPE: Unable to read output But from the remote server I got: # /usr/local/libexec/nagios/check_smartmon -d /dev/ad24 OK: device is functional and stable (temperature: 29) I restarted npre and the problem went away… not

NRPE: Unable to read output Read More »

Scroll to Top