FreeBSD

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 »

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 »

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 »

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 »

smartmontools

The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (SMART) built into most modern ATA and SCSI harddisks. In many cases, these utilities will provide advanced warning of disk degradation and failure. (The above shamelessly taken from the supplied URL). I just installed it: cd /usr/ports/sysutils/smartmontools/ && make install clean Then I set up the configuration file, with

smartmontools Read More »

ZFS – some initial testing

I thought I’d run some simple tests, based on a tuning thread I found: # dd if=/dev/urandom of=./file1 bs=1m count=1024 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 14.283206 secs (75175127 bytes/sec) And while the above was running: # zpool iostat 5 capacity operations bandwidth pool used avail read write read write ———- —– —– —– —– —– —– storage 1.25G 9.06T 0 3 95 402K storage 1.25G 9.06T 0 0

ZFS – some initial testing Read More »

Scroll to Top