2015

My HDD are full. Time for a new server.

My disks are full. [dan@knew:~] $ zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT system 27T 21.4T 5.57T 79% 1.00x ONLINE – [dan@knew:~] $ zpool status pool: system state: ONLINE scan: scrub in progress since Tue Jun 9 03:26:26 2015 12.9T scanned out of 21.5T at 98.1M/s, 25h32m to go 0 repaired, 59.92% done config: NAME STATE READ WRITE CKSUM system ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 gpt/disk0 […]

My HDD are full. Time for a new server. Read More »

Putting FreeBSD 11 onto a Raspberry Pi 2

I have 5 Raspberry Pi 2 here. I’m going to install FreeBSD 11.x on them. I’ve already done one. The second is started, and now I’m going to write it down so I know what to do the next time. The wiki entry will contain the latest status. The binaries Rasperberry Pi 2 only runs FreeBSD 11.x (10.x will run on the B but not the 2). If you have Rasperberry Pi B,

Putting FreeBSD 11 onto a Raspberry Pi 2 Read More »

More Bacula Excludes with Jails and FreeBSD

Following on from my post about excluding the base OS with a Bacula FileSet, I decided to exclude some more. The starting point Here are the baselines: What else will I exclude? I decided to exclude the following as well: Adding iocage support Along the way, I extended the Exclude to work on server using the iocage jail management tool. I also split the Exclude out into its own file. Here is the

More Bacula Excludes with Jails and FreeBSD Read More »

WordPress and Fail2ban

I recently implemented Fail2ban on a FreeBSD jail host. It monitors log files within the jails, from the host. Offensive IP addresses which act up in one jail will be blocked at the host, thus blocking the rascal IP from all jails. This has been running for about two weeks. Today I added another tool, the WP fail2ban plugin. The plugin comes with a wordpress.local file, but to make it work with FreeBSD,

WordPress and Fail2ban Read More »

Excluding the base-OS when backing up FreeBSD jails with Bacula

I felt I was backing up way too much on my jail server. I was backing up files which would be installed as part of the OS. Let’s look at the esimate: *estimate level=full job=”slocum jail snapshots” Using Catalog “MyCatalog” Connecting to Client slocum-fd at slocum.int.unixathome.org:9102 2000 OK estimate files=2,824,716 bytes=239,568,332,325 * I decided to add these to the FileSet: Options { Exclude = yes WildDir = “/usr/jails/*/.zfs/snapshot/basejail” WildDir = “/usr/jails/*/.zfs/snapshot/bin” WildDir =

Excluding the base-OS when backing up FreeBSD jails with Bacula Read More »

logstash problems

I noticed this tonight: {:timestamp=>”2015-04-18T01:01:54.363000+0000″, :message=>”Failed parsing date from field”, :field=>”syslog_timestamp”, :value=>”Apr 18 01:01:49″, :exception=>java.lang.IllegalArgumentException: Invalid format: “Apr 18 01:01:49″ is malformed at ” 18 01:01:49″, :level=>:warn} It seems this is the cause: For the record, here are all such instances: One day, I’ll come back here and fix that.

logstash problems Read More »

drive letters changed?

I have no idea when I wrote this. It got saved but never published, until today. I recently had the boot drive at one of my servers change. It’s really a VM on a box, but at least it’s running FreeBSD. To fix it, I got a VNC session going to their server, and was greeted by the prompt: mountroot> ? List of GEMO managed disk devices: ufsid/48ee594bdcbf83e3 ufsid/48dd594bad4c1d6f ufsif/48ee594b514a21e1 ufsid/48ee594b75a0ff85 acd0 ad1s1f

drive letters changed? Read More »

ezjail with freebsd-update

I wrote this back in July 2013, but never published it. Might as well share it now. Lately, I’ve been moving away from tracking FreeeBSD STABLE and more towards using freebsd-update(8). Today, I’ll be setting up a jail, using ezjail and freebsd-update. ############## NOTE: Please read the comments before you read the article. ############## Installing Installing ezjail is straight forward: Installing the base jail My first attempt at creating a base jail failed:

ezjail with freebsd-update Read More »

Munin

This is an old post I wrote, but never published, back in 2010. I’ve started using Munin for some statistical monitoring. Using the hddtemp_smartctl plugin, I was getting some permission errors. After printing the output of the command, I noticed these in the logs: 2010/03/11-18:30:05 [60845] [ERROR] Command /usr/local/sbin/smartctl -A /dev/ad8 on drive ad8 failed: 256. The plugin needs to have read permission on all monitored devices. smartctl 5.39 2009-12-09 r2995 [FreeBSD 8.0-STABLE

Munin Read More »

What I would do differently when upgrading from 9.3 to 10.1

Last night I upgraded the main jail server in my lab from FreeBSD 9.3 to FreeBSD 10.1. I just started using the term, home lab, after discovering http://www.reddit.com/r/homelab/. That server contains, amongst other things, these jails: my development environment for http://dev.freshports.org/ my in house webserver, which hosts the above mentioned website my svn repo an installation of ElasticSearch and Kibana (ELK) an Nginx for web proxy 21 instances of Bacula for tutorial sessions

What I would do differently when upgrading from 9.3 to 10.1 Read More »

Scroll to Top