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 »

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