NEWS:

Archive for the 'General' Category

zfs destroy

Tuesday, December 28th, 2010

Here I go, removing an old ZFS dataset that is no longer required. But first, some stats (which have been edited to remove non-zfs output):

[dan@kraken:~] $ df -h
Filesystem Size Used […]

How much are those volumes in the library? (redone)

Sunday, December 26th, 2010

I have an improvement on the original query. This one outputs ‘nil’ if the volume is empty.

bacula=#
SELECT mediaid, volumename, volstatus, slot, inchanger, pool.name,
CASE WHEN volbytes < = 64512 THEN ‘nil’ else pg_size_pretty(volbytes) END
FROM media, pool
[…]

No scroll lock? use FN-C

Thursday, December 23rd, 2010

Some of the newer keyboards do not have a scroll lock key. Try FN-C instead. Does that work for you?

AT&T tried to kill BSD

Thursday, December 23rd, 2010

I cannot claim this. Will Backman said:

Thing I think about while driving: BSD. AT&T tries to kill BSD. Steve Jobs uses BSD to save Apple. Apple makes the iPhone. iPhone is tied to AT&T. iPhone activations save AT&T from the recession. BSD saved AT&T.

How much are those volumes in the library?

Wednesday, December 22nd, 2010

I pretty much ignore my tape library. It asks for tapes when it runs out. However, I think I should be looking ahead and anticipating requests. Thus, I came up with this SQL query:

[dan@ngaio:~] $ psql bacula
psql (8.4.5)
Type “help” for help.

bacula=#
SELECT mediaid, volumename, volstatus, slot, inchanger, pool.name, volbytes
FROM […]

Bacula Copy Job

Thursday, November 25th, 2010

With Bacula, a great piece of backup software [disclosure: I wrote the PostgreSQL module for Bacula], you can copy a Job after it has run. This is often used to backup first to disk, and then Copy that Job to tape. That is exactly what I’ve been doing recently.
NOTE: You can also migrate […]

Why not use the tape that’s there?

Tuesday, November 23rd, 2010

*run
A job name must be specified.
The defined Job resources are:
1: BackupCatalog
2: RestoreFiles
3: MigrateDiskToTape
4: CopyMegaFileToTape
5: laptop
6: laptop-vpn
7: laptop-wifi-5.3
[…]

pf - cannot define table: Cannot allocate memory

Monday, October 25th, 2010

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 […]

Syncing your iPhone and Google contacts

Thursday, October 7th, 2010

It was my riding buddy, John Boatman who told me he synced his iPhone and Google contacts. Just before I broke my arm in June, my iPhone died (actually, I lost the contents, it didn’t die) and I was without all my phone numbers when I really needed them. The phone numbers were […]

IPv6 woes

Wednesday, October 6th, 2010

I’m not sure why I can’t get to the internet from my systems inside my LAN. The gateway can.
Interesting: On the client box, I can’t see any IPv6 traffic leaving the except icmp. The following demonstrates:

Setting up a

$ ifconfig
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
[…]