Constant Thinking

Posts tagged "howto"

9 posts
mirroringrpool.jpg

How to Set Up a ZFS Root Pool Mirror in Oracle Solaris 11 Express

Obsolete | In Solaris
| 29 minute read

One of the first things to do when setting up a new system is to mirror your boot disk. This protects you against system disk failures: If one of the two mirrored boot disks fails, the system can continue running from the other disk without downtime. You can even boot from the surviving mirror half and continue using the system normally, until you have replaced the failed half.

At the currently low prices for boot drive sized disks, this is a no-brainer for increasing your system’s availability, even for a home server system.

Unfortunately, the steps to complete until you’re running off a mirrored ZFS root pool are not yet a no-brainer. While there is a piece of documentation entitled How to Configure a Mirrored Root Pool, it only covers how to add a second disk to your root pool, it does not cover how to prepare and layout a fresh disk so Solaris will accept it as a bootable second half of an rpool mirror.

Which, for historic reasons, is slightly more complicated than just saying zpool attach.

Over the weekend, I sat down and played a bit with the current Oracle Solaris 11 Express (no link, page no longer exists) release in VirtualBox and tested, re-tested and investigated all currently necessary steps to get your root pool mirrored, including some common issues and variations.

Here’s a complete, step-by-step guide with background information on how to mirror your ZFS root pool:

bottleneck.jpg

My Personal Oracle Solaris Performance Analysis Cheat Sheet

Obsolete | In Solaris
| 6 minute read

Over time, you tend to learn a Solaris performance trick or two. Or three. Or more. That’s cool, it’s how stuff works: You learn, you do, you remember.

Performance analysis and tuning is just like that: You learn a trick from a person that is more senior than you are, you apply it, you feel like a hero, you learn the next trick.

But having a bag of tricks is not enough. Because then you start trying out stuff without a system, and spend useless time hunting that problem with a hit-and-miss approach, gut-based only.

Therefore, I’m always glad to listen to Ulrich Gräf when he does one of his famous performance tuning workshops (if you’re lucky, you can catch Uli blogging in German here (no link, sun.com no longer exists)), because he’ll give you the full view, the context and the system too, when it comes to performance analysis.

So here’s my personal cheat sheet for Oracle Solaris Performance Analysis, including some guideance on how to systematically catch that elusive bottleneck.

newmusicsmf.jpg

How to Automatically Update Your Home Media Server Library With DTrace

Obsolete | In Home Server
| 6 minute read

Before we continue with our Home Server Scripting Series, let’s throw in a simple but useful DTrace hack.

One of the most typical uses for a home server is to serve music or videos to home entertainment equipment. In my case, I’m using the Firefly Media Server (no link, fireflymediaserver.org no longer exists) to serve music to my Roku Soundbridge and Mediatomb (no link, page no longer exists) for videos.

The Media Server Update Problem

Whenever I upload new music or videos to my OpenSolaris home server (typically by rsync-ing my laptop home directory), both Firefly and Mediatomb need to be restarted so they detect that new files are sitting in their directories, waiting to be served.

A tidy desktop with a zero email INBOX

Spring Cleaning Part 1: How to Tidy Up Your Email INBOX and File Email Away in One Keystroke

| In General
| 10 minute read

Spring’s around the corner and the Easter weekend is upon us, giving us some time to sit back, relax and do some spring cleaning!

This also applies to your data, in particular your Email folders and your home directories. In this two-part series, we’ll clean up our email INBOX to zero (yes: null, nada, zip) emails, simplify email folders, then clean up our home directory file structure. That’ll save us time, help us find peace of mind and make us more efficient so we can concentrate our energies on what really matters to us.

AMD Athlon II X2 240e

Seven Useful OpenSolaris ZFS Home Server Tips

Obsolete | In Home Server
| 10 minute read

A lot of people have read last year’s article “A Small and Energy-Efficient OpenSolaris Home Server” (Thanks a lot to Andre Lue from the EON project for linking to it!) and there was quite some discussion on different RAID options as a result of my RAID-Greed article.

So let’s continue the theme and have a look at the following home server tips that helped me a lot during my own home server planning, building and installing:

A co-working space with someone presenting to a group

How to Properly Cut an Image From a PDF Into Your Presentation or Blog

| In Presentations
| 9 minute read

I give a lot of presentations to customers and I tend to create a lot of new slides for the presentation decks I use. I’m also a huge fan of Presentation Zen, the book and the blog, as well as Duarte Design’s blog, with their excellent slide:ology book. When giving technical presentations about computer hardware or software though, sticking to good presentation principles is tough at best.

But there are a few simple tips that everyone should follow when preparing a presentation, and I hope to collect a few of these in this new category. Today’s topic is simple, almost trivial, but powerful. And I see too many slides on an almost daily basis that violate some basic graphical principles:

DrupalKey

How to Get Drupal to Work Through Strato's SSL Reverse Proxy

Obsolete | In Drupal
| 7 minute read

Yesterday, I had two hours in a cafe, a Cappuccino on my table, a piece of lemon cake and free WLAN. “Cool”, I thought, “I’ll write an entry for my blog!”. How romantic. Right after I entered my blog user’s password, it dawned on me: The connection to my blog wasn’t encrypted! Anyone able to sniff on the local WLAN would have been able to catch my password as I entered it and steal my blog user ID! It took me some time (slightly more than the 2 hours I had…) to figure this out, so here’s a howto on how to make your login/admin tasks secure for a Drupal instance running on Strato as the hoster.