FreeBSD

raidz2: 10 disks vs 8 disks

Yesterday, I mentioned I wanted to compare raidz2 when using 10 disks versus using 8 disks. Along the way, I noticed that my ZFS-setup script needed a change to cope with mixed devices. Once I got past that hurdle, I started adding packages and setting up the system for some very simple tests. The test My test of preference is loading a database, and then dumping it. Each pg_restore was done into a […]

raidz2: 10 disks vs 8 disks Read More »

Problem with disk numbering in my ZFS creation script

THe last system I set up with ZFS, I used a script. Today, when trying a system with different device types, I encountered a limitation of that script. I need to fix it. In the above script, NUM takes on the value of what digits appear in the string of I. Given that DISKS contains both ada0 and da0, two disks will get the same value for $I. That’s a problem. I need

Problem with disk numbering in my ZFS creation script Read More »

ZFS: raidz2 with 8 or 10 disks?

The traditional thoughts on ZFS are to have arrays which are a power-of-2 when it comes to number of disks. That means 2, 4, 8, etc. But for raidz1, that would be 3, 5, 9. For my choice of raidz2, it would be 4, 6, and 10. In the system I’m building up now, I have an 8-port LSI SATA/SAS 9211-8i 6Gb/s card. I can add two more HDD by attaching them to

ZFS: raidz2 with 8 or 10 disks? Read More »

Gateway getting old; File server getting full

My gateway is dying. My file server is getting full. Over the past few weeks, I’ve been dealing with aging infrastructure. My development server started acting up and was showing signs of age. This aging desktop box contained 80GB HDD, which means it’s probably 6 or 7 years old. That’s getting on in age. It’s been replaced by a much gruntier server. After completeing that work, I have to consider my gateway, which

Gateway getting old; File server getting full Read More »

Compiling bacula client gives link errors

I was trying to recompile sysutils/bacula-client on a FreeBSD 8.4 jail when I encountered some perplexing link errors. It took me a while to figure it out, but with the help of some IRC conversation, we figured it out. I started off by deleting the old (quite old) port: bacula-client-5.0.3 Then I recompiled: cd /usr/ports/sysutils/bacula-client && make install clean The errors in question are: I tried recompiling a few ports, such as gettext.

Compiling bacula client gives link errors Read More »

FATAL: could not create shared memory segment: Function not implemented

I recently upgraded a jail server from FreeBSD 8.2 to FreeBSD 8.4. This stopped various jails from starting their own instances of PostgreSQL. The messages in the logs were: Jul 9 14:48:48 building postgres[40785]: [2-1] FATAL: could not create shared memory segment: Function not implemented Jul 9 14:48:48 building postgres[40785]: [2-2] DETAIL: Failed system call was shmget(key=5432001, size=12099584, 03600). In my jails, I was seeing: $ sysctl security.jail.sysvipc_allowed security.jail.sysvipc_allowed: 0 Looking at my

FATAL: could not create shared memory segment: Function not implemented Read More »

nrpe: Could not read request from client, bailing out…

I recently upgraded a jail server from FreeBSD 8.2 to 8.4, and part of that process involved recompiling all of the applications. Along the way, nrpe on one jail stopped working. Nagios was reporting: CHECK_NRPE: Socket timeout after 10 seconds. Trying from the command line gave: $ /usr/local/libexec/nagios/check_nrpe2 -H -H dbclone.example.org -c check_pgsql -t 1 CHECK_NRPE: Socket timeout after 1 seconds. Other jails worked just fine: $ /usr/local/libexec/nagios/check_nrpe2 -H building.unixathome.org -c check_pgsql -t

nrpe: Could not read request from client, bailing out… Read More »

discard frame w/o leading ethernet header

The other day, I disconnected the ethernet cable from my gateway to reroute the cable. Then, perhaps coincidentally, I started seeing these entries: Jul 2 15:19:57 bast kernel: fxp0: discard frame w/o leading ethernet header (len 4294967294 pkt len 4294967294) Jul 2 15:28:01 bast kernel: fxp0: discard frame w/o leading ethernet header (len 4294967294 pkt len 4294967294) Jul 2 15:28:02 bast kernel: fxp0: discard frame w/o leading ethernet header (len 4294967294 pkt len

discard frame w/o leading ethernet header Read More »

Authentication tried for dan with correct key but not from a permitted host

I kept seeing these messages: Jun 12 04:09:18 nyi sshd[94523]: Authentication tried for dan with correct key but not from a permitted host (host=dbclone.example.org, ip=10.6.0.9). Jun 12 04:09:18 nyi sshd[94523]: Authentication tried for dan with correct key but not from a permitted host (host=dbclone.example.org, ip=10.6.0.9). I’ve been seeing them for a long time. How long? Three years. I didn’t think it was that long. But back in July 2010 I mentioned it. After

Authentication tried for dan with correct key but not from a permitted host Read More »

nagios – check_ping CRITICAL – You need more args!!! Could not open pipe:

I’ve been moving some services around lately. A server is dying and I need to move stuff off it. Today I managed to move Bacula and Nagios onto a new server. After a short bit of struggle, I had just one service check that was failing: check_ping. Here’s the example: $ /usr/local/libexec/nagios/check_ping -H bast.example.org -w 3000.0,80% -c 5000.0,100% -p 1 CRITICAL – You need more args!!! Could not open pipe: Google searches did

nagios – check_ping CRITICAL – You need more args!!! Could not open pipe: Read More »

Scroll to Top