FreeBSD 8.2-RELEASE and ZFS boot

February 25th, 2011 by Lars-Georg Paulsen

FreeBSD has just released a new stable release! (8.2-RELEASE)
And as this is my beloved OS for running servers on, it was time to update.

But I was scared!
I’ve started using FreeBSD with ZFS boot.
Last time I did a ‘freebsd-upgrade’ my zfs boot went super dead.
And this time I didn’t have an test platform either….

VirtualBox to the rescue
I know it wouldn’t be just the same, but it would be better to simulate it on this,
rather then just bet on my luck!

The upgrade from 8.1-RELEASE and 8.2-RELEASE when without any issues.
And when I issued the ‘zpool upgrade tank’, I crossed my fingers…..

gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0

What a nice message!

After search the web, I came across this maillist entry.
Should I used the /src/UPDATE instruction or follow what ZFS says….

ZFS is the king! It worked as a sharm, and the virtualbox setup upgraded without any issues.
Without hesitation I when to my production server, and upgrade.. No problemo!.

Me just loves sexy freebsd! :)

FreeBSD with ZFS boot

February 25th, 2010 by Lars-Georg Paulsen

Greetings my fellow n3rdz!

The last couple of weeks, I’ve been playing around with OpenSolaris. It got proper support for ZFS and I really like zones, but that’s where it ended. You can’t even do a minimal base install, by default you install X and Gnome. In witch server environment do you need X? (Yeah, I’ve tried out Automated Installs, and playing around with jeOS as well, but to much hassle)

So here we go, Back to good old FreeBSD!
Now it was time to check out ZFS as a root file system. After doing the normal research around web, I found the proper way to do it! Martin Matuška @ http://mfsbsd.vx.sk/ knew how do make the process super simple.

Here is my quick X steps for getting a ZFS mirror pool as root file system.

#1 – Download image from http://mfsbsd.vx.sk
#2 – Burn and boot the image
#3 – Login as root and run these two commands, and your good to go.

># mount -t cd9660 /dev/acd0 /cdrom
># zfsinstall -r mirror -d /dev/ad0 -d /dev/ad1 -t /cdrom/8.0-amd64.tbz -s 4G
># init 6

This of course takes it for granted that your cdrom is @ /dev/acd0 and your two HDD are ad0 and ad1. After you reboot, you can login as root and customize the hell out of your system. (The bonus is that you now have super small footprint to begin with)

Æsir-Network – One step closer….

January 20th, 2009 by Lars-Georg Paulsen

What is the Æsir-Network?

It’s not just one project, it’s more like a concept. A concept of building a computer network based on many different services. I’ve a had a linux server running for quite some time, but it wasn’t before I moved it, and started to expand it really kicked off. Æsir-Network is now located in three different geographic location, with 10+ network devices running everything from a simple routing device to a full on web service. Interconnected via openVPN for LAN2LAN connection. The major service running within the VPN is the backup service. Currently it is just two and a half computer how is automatically syncing their files to a central server, but there will be more as the time goes by….

odinfrigg
ODIN and FRIGG – Two norse gods and also the name of two of my servers.

Anyhow, earlier today one of my main servers, (ODIN), got yet another core dump. ODIN is a 4U – Intel Xeon based Server, running FreeBSD. And since the hole goal of the Æsir-Network is to experiment and try and learn new stuff, I’m running ZFS for file system management. I’m not gonna start on how much I love ZFS, but since the warning at boot time says;
“WARNING: ZFS is considered to be an experimental feature in FreeBSD.”
I can’t start complaining when I get system crashes, like today. But, it’s not to bad. This time it took over 34days before it crashed, and before that, over 110days….

Since I allready had downtime on ODIN, I decided to upgrade to FreeBSD 7.1-RELEASE. But not with out complications. First I got a core dump again, right after I finished the `freebsd-update install` for the first time… Doing everything remote, (something you should never do… but what the heck!) it’s kind of hard doing hard reboots. Something you need to do when you get core dumps as the system freezes… I’m glad my brother was home. He wasn’t to hard convince, and he needed a break from shoveling snow. everything actually went quite good, major problems. The only thing that didn’t, work after the upgrade, was SNMP.

ERROR MESSAGE:
/libexec/ld-elf.so.1: Shared object “libperl.so” not found, required by “snmpd”

A quick search on Google and I found the solution too that as well. This had probably nothing to do with the upgrade from 7.0-RELEASE to 7.1-RELEASE, but perl it self. If I’m not mistaking, I upgrade all ports (including perl) just before I started the upgrade to 7.1. I found the solution over at NetManiac.

Running one simple command: `perl-after-upgrade -f`

So there you go, a quick insight in the world of ÆSIR. If you didn’t know, ÆSIR is clan of Norse gods, so all my network devices are called by Norse names. Like ODIN, FRIGG, BRAGE, HOD, HERMOD, BALDER and …. you catch the drift…