Open Source

pf – cannot define table: Cannot allocate memory

I use pf on FreeBSD 8.1-stable as my firewall of choice. Recently I’ve started using the University of Alberta list of trapped addresses. As of the time of writing this, the list contains about 56,000 IP addresses. When combined with my own list of 27,000 SPAMTRAP addresses, I quick ran into a problem when reload my rule set: $ sudo pfctl -f /etc/pf.rules No ALTQ support in kernel ALTQ related functions disabled /etc/pf.rules:69: […]

pf – cannot define table: Cannot allocate memory Read More »

zfs send | zfs receive

For the record, I was doing a copy within a system recently: # time zfs send storage/bacula@transfer | mbuffer | zfs receive storage/compressed/bacula-buffer in @ 0.0 kB/s, out @ 0.0 kB/s, 4394 GB total, buffer 100% fullll summary: 4394 GByte in 35 h 11 min 35.5 MB/s real 2111m18.302s user 11m44.831s sys 258m59.151s I was copying my Bacula Volumes from non-compressed ZFS to compressed ZFS. # zfs list NAME USED AVAIL REFER MOUNTPOINT

zfs send | zfs receive 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 »

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 »

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 »

Dual head RADEONHD – screen blanking

I recently upgraded xorg on my workstation at the office. Immediately I started seeing problems with one of the monitors. It would go empty/blank/black for three seconds, then resume normal operation. Then it would go blank again when I interacted with the screen. In short, that one monitor was completely useless. Swapping cables on the dual head video card moved the problem to the other monitor. All software was the latest version: xorg

Dual head RADEONHD – screen blanking Read More »

Xorg.0.log for RadeonHD

This is the /var/log/Xorg.0.log for my RadeonHD. X.Org X Server 1.7.5 Release Date: 2010-02-16 X Protocol Version 11, Revision 0 Build Operating System: FreeBSD 8.1-STABLE amd64 Current Operating System: FreeBSD subie.example.com 8.1-STABLE FreeBSD 8.1-STABLE #1: Wed Aug 11 14:34:19 EDT 2010 dlangille@subie.example.com:/usr/obj/usr/src/sys/DVL amd64 Build Date: 12 August 2010 05:57:37PM Current version of pixman: 0.16.6 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (–) probed, (**) from

Xorg.0.log for RadeonHD Read More »

xorg.conf for RadeonHD

This is the xorg.conf file for my RadeonHD setupt Section “ServerLayout” Option “AllowEmptyInput” “off” Identifier “X.org Configured” Screen 0 “Screen0” 0 0 InputDevice “Mouse0” “CorePointer” InputDevice “Keyboard0” “CoreKeyboard” EndSection Section “Files” ModulePath “/usr/local/lib/xorg/modules” FontPath “/usr/local/lib/X11/fonts/misc/” FontPath “/usr/local/lib/X11/fonts/TTF/” FontPath “/usr/local/lib/X11/fonts/OTF” FontPath “/usr/local/lib/X11/fonts/Type1/” FontPath “/usr/local/lib/X11/fonts/100dpi/” FontPath “/usr/local/lib/X11/fonts/75dpi/” EndSection Section “Module” Load “extmod” Load “record” Load “dbe” Load “glx” Load “dri” Load “dri2” EndSection Section “InputDevice” Identifier “Keyboard0” Driver “kbd” EndSection Section “InputDevice” Identifier “Mouse0” Driver

xorg.conf for RadeonHD Read More »

Scroll to Top