Constant Thinking

Solaris

27 posts in this category
Sparse ZFS Pools

Introducing Sparse Encrypted ZFS Pools

Obsolete | In Solaris
| 4 minute read

Ever since I’ve been using a Mac, I enjoy using Sparse Encrypted Disk Images for a variety of tasks, for instance securely storing data that can be backed up somewhere else, say on a hosting server.

In fact, most of my project/personal data on my Mac sits on sparse encrypted disk images that are regularly rsynced to an external storage service, Strato’s in particular.

The beauty of this solution lies in it simplicity:

Sparse encrypted disk images show up just like any other hard drive. But on the back end, they translate into a bunch of flat files that store all the data in an encrypted manner. By rsyncing the backing store, sparse encrypted disk images can be easily backed up across the net, while ensuring privacy and convenience.

Here’s how to do similar things with Solaris and ZFS, including some extra data integrity magic:

32 Solaris 11 Blog Posts

Solaris 11 Launch Blog Carnival Roundup

Obsolete | In Solaris
| 6 minute read

Solaris 11 is here!

And together with the official launch activities, a lot of Oracle and non-Oracle bloggers contributed helpful and informative blog articles to help your datacenter go to eleven.

Here are some notable blog postings, sorted by category for your Solaris 11 blog-reading pleasure:

solaris_11_road.jpg

Join the Solaris 11 Launch Party!

Obsolete | In Solaris
| 7 minute read

In about a week, on November 9th, 2011, the long-awaited final version of Solaris 11 will be launched. If you happen to be near New York that day (and assuming there’ll be no power outages), you’re invited to join the official Solaris 11 launch party!

Solaris 11 has been in the making since 2005, when Solaris 10 was launched. In fact, every major Solaris release is just a fork of the ongoing Solaris development train, so the very first uber-pre-release of Solaris 11 was actually generated only weeks after Solaris 10 hit the shelves.

Since then, Solaris 11 (or: Project Nevada as it was called) has seen a lot of OS history: An open source adolescence called OpenSolaris, growing adoption and community work, a broad range of ground-braking new features, long overdue re-writes, brand new concepts, controversial discussions, a major acquisition, rules changed and rules kept, siblings and offsprings, lots of investments, entire companies built on top of its source code, generations of processors and hardware, lots of systems in production, the Cloud and what not.

And all that before it was even born. Quite an achievment, eh?

solaris_11_road.jpg

Solaris 11 Available for Early Adopters

Obsolete | In Solaris
| 1 minute read

Maybe I should write more frequently, though that would mean shorter, less elaborate articles. This is the first one of that kind. Let me know what you think!

Recently, the Oracle Solaris 11 Early Adopter Release (no link, page no longer exists) became available on the Oracle Technology Network (BTW, can I have a date with that Java Developer, please?). Here’s the gist:

dedupecost.jpg

ZFS: To Dedupe or Not to Dedupe...

Obsolete | In Solaris
| 13 minute read

…that is the question.

Ever since the introduction of deduplication into ZFS, users have been divided into two camps: One side enthusiastically adopted deduplication as a way to save storage space, while the other remained skeptical, pointing out that dedupe has a cost, and that it may not be always the best option.

Let’s look a little deeper into the benefits of ZFS deduplication as well as the cost, because ultimately it boils down to running a cost/benefit analysis of ZFS deduplication. It’s that simple.

illumosopenindiana.jpg

The Solaris Eco-System Is Expanding

Obsolete | In Solaris
| 4 minute read

More than a while ago, I wrote about the birth of Illumos, a project that aims at substituting the last non-open-source bits from the OpenSolaris kernel with replacements, in order to create a 100% open source Solaris kernel.

On May 20th, I had the opportunity to attend the Nexenta European User Conference 2011 (no link, page no longer exists) in Amsterdam, where Solaris and storage enthusiasts from all over the world met to discuss their favorite technology: ZFS. Of course there was also a lot of talk about Illumos and related projects.

Now I’ve given a lot of Solaris presentations to customers, always highlighting the big, growing and powerful community behind the Solaris OS. But this conference added a new dimension to the Solaris Eco-System for me!

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:

zfsssdfaq.jpg

Frequently Asked Questions About Flash Memory (SSDs) and ZFS

Obsolete | In Solaris
| 12 minute read

A few weeks ago, a reader asked me a couple of questions about SSDs and ZFS, hinting that this might be a good topic to write a blog post about.

Sure enough, just last week, a couple of similar questions came up, this time from a customer and a colleague at work.

Well, if that’s not a sign from heaven, I don’t know what is, so here’s a collection of frequently asked questions about flash memory (also known as solid state disks, or SSDs) and ZFS, with answers and some useful links, and an index, too.

Screenshot from the video

How to Save the World With ZFS and 12 USB Sticks: 4th Anniversary Video Re-Release Edition

| In Solaris
| 2 minute read

About 4 years ago, a few colleagues and myself got together and we created a short video about the coolness of two of the most innovative products from Sun of the last decade: ZFS and the X4500 Server.

Today, nearly 4 years later, the video has been downloaded more than 100,000 times (across the original German and the English dubbed version, plus the full resolution downloadable files) and shown to a lot more people during tradeshows, customer demos, etc.

Now YouTube and Google Video (remember?) don’t allow for highest video quality and the old Sun Mediacast server, where we hosted the original MP4 file, no longer exists. Instead, Vimeo has emerged as my video hoster of choice for a variety of projects (check out my video collection on Vimeo) and so it was time to give this video a new home.

4 commands that help you find bottlenecks

My Favorite Oracle Solaris Performance Analysis Commands

Obsolete | In Solaris
| 16 minute read

A while ago, we discussed some performance analysis basics:

  • Define what your problem is.

  • Figure out your goal: What metric needs to be in what ballpark for you to declare victory?

  • Analyze your system from the inside out: CPU, RAM, Disk, Network. Your Bottleneck is always in one of these 4 regions.

So what are the best commands for finding bottlenecks in each of the four categories above? Here’s part two of my Oracle Solaris Performance cheat sheet with some favorite tricks.

solaris_11_express.jpg

Top 7 Cool Things About the New Oracle Solaris 11 Express Release

Obsolete | In Solaris
| 6 minute read

At last, it is here: After lots of waiting, speculation, community self-help efforts, future directions, anticipation and more, we’re now holding it in our hands: Oracle Solaris 11 Express is here (no link, page no longer exists)!

While you’re testing/installing/upgrading to this new release, let’s check out the following top 7 cool things about Oracle Solaris 11 Express:

sparc_t3.jpg

Firesheep Killed HTTP. Long Live HTTPS With Free SSL Acceleration, Courtesy of SPARC/Solaris!

Obsolete | In Solaris
| 7 minute read

Before we continue our little Performance Analysis Series, let’s look at some current news:

The Bad News: HTTP is dead. Get over it. The killer? It’s called Firesheep, a free Firefox extension that makes it trivially easy for that kid sitting next to you in that Wifi hotspot to steal your Facebook, Twitter or other web services’ identity.

The Victims: The first line of victims are of course millions of unsuspecting users that are sitting in WLAN areas, not knowing that their web identities can be stolen at the click of the button. But the real victims are hundreds, if not thousands of website owners, starting with the who-is-who of web companies, who are now (rightly so) faced with the challenge of upgrading their web infrastructure to HTTPS as soon as possible, preferably overnight.

The Good News: Adding encryption to your web servers used to be an additional burden on the CPU, negatively impacting performance by as much as 2-3x. Fortunately, the new SPARC T3 processors enable you to switch SSL encryption on for your web applications, without any performance impact. This is possible through built-in encryption engines at the core level. And thanks to the Oracle Solaris Cryptographic Framework, it’s easy to take advantage of hardware encryption for any application that needs it.

Wanna learn more? Read on!

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.

solaris10_0910.jpg

Oracle Solaris 10 09/10: ZFS Highlights

Obsolete | In Solaris
| 11 minute read

The recently announced Oracle Solaris 10, 09/10 release (no link, page no longer exists) introduced a number of significant upgrades to the ZFS file system.

Ironically, Solaris 10 now comes with a higher ZFS pool version (19 (no link, opensolaris.org no longer exists), at least) than OpenSolaris 2009.06 (14 (no link, opensolaris.org no longer exists)).

So let’s look at some of the key ZFS improvements that came in this update and figure out why they’re so useful.

In this article, you’ll learn more about LUN Expansion, Snapshot Holds, Triple Parity RAID-Z, Log Device Improvements, Pool Recovery, Splitting Mirrors and we’ll discover a new scheduler class!

And as a bonus, we’ll get to watch some videos that explain these features in further detail.

solaris_11_road.jpg

Top 11 Things You Can Do Now to Prepare for Oracle Solaris 11

Obsolete | In Solaris
| 7 minute read

Oracle Solaris 11 is the future of enterprise IT, that is now clear.

Still, we need to wait a year until it is officially released. What can we do now? Well, quite a lot, it turns out. Even if the preview version (due later this year) hasn’t been relased yet, there are a lot of things you can do to prepare for the big OS upgrade.

Here’s a list of 11 things you can do now to start enjoying the benefits of Solaris 11, get ahead of your system peers and be a part of the future of Solaris now!

Package Scripting

How to Add Pre-/Post-Scripts to IPS Packages

Obsolete | In Solaris
| 8 minute read

My last post about Solaris 11 triggered an interesting discussion with UX-admin about IPS and the lack of pre-/post-scripts for installation/removal.

Assuming that Solaris 11 will be based on IPS (no link, opensolaris.org no longer exists) just like OpenSolaris, it is certain that sysadmins will have to change a lot in how they create and manage packages, because IPS is fundamentally different from the good old System V packaging system.

So let’s explore the lack of scripting hooks in IPS and see if we can find some ways of working around them:

solaris_11_road.jpg

Oracle Solaris 11 Is the Future

Obsolete | In Solaris
| 6 minute read

Lots of speculation about Solaris and OpenSolaris is happening right now, with an allegedly leaked email being the latest generator of buzz, rumors and troll-ism.

But is that any useful? No.

So let’s cut through the shiitake, do some due diligence and focus on some real facts instead.

In this article, we’ll check out some real and authoritative sources of Solaris direction, mainly John Fowler’s recent webcast about Solaris 11. Then we’ll see what our future opportunities as members of the Solaris community are, and close with some pointers to other opinions on Solaris 11.

illumoscommunity.jpg

What Communities Should Do (And What They Shouldn't)

Obsolete | In Solaris
| 4 minute read

Ever since Oracle announced that they’ll buy Sun (no link, page no longer exists), there has been a lot of discussion about the future (some would say “fate”) of OpenSolaris in the “community”.

In fact, the last 15 months have been very instructive in terms of how communities work, or how they don’t.

Let’s check out what a community is supposed to do, and what it is not supposed to do, in the light of the latest OpenSolaris announcement: Illumos.

zil.jpg

Solaris ZFS, Synchronous Writes and the ZIL Explained

Obsolete | In Solaris
| 13 minute read

When talking to customers, partners and colleagues about Oracle Solaris ZFS performance, one topic almost always seems to pop up: Synchronous writes and the ZIL.

In fact, most ZFS performance problems I see are related to synchronous writes, how they are handled by ZFS through the ZIL and how they impact IOPS load on the pool’s disks.

Many people blame the ZIL for bad performance, and they even try to turn it off (no link, solarisinternals.com no longer exists), but that’s not good. Actually, the opposite is true: The ZIL is there to help you.

In this article, we’ll learn what synchronous writes are, how they’re processed by ZFS, what the ZIL is, how it works, how to measure ZIL activity and how to accelerate synchronous write performance, which is at the root of many, if not the majority of ZFS performance problems.

201006top10blogs.jpg

Here Are the Ten Most Important Independent Solaris Blogs

Obsolete | In Solaris
| 8 minute read

One of the best information sources for any topic are blogs, and the Oracle Solaris operating system in all its variants (Solaris 10 and OpenSolaris) is no exception. Most of what I learned about OpenSolaris was through blogs, or through interacting with Solaris bloggers.

As a way of saying “Thank You”, I did some research and came up with a list of the top ten Solaris related blogs with the highest traffic on the Internet.

But first, let’s clear up some basic rules.

zfscode.jpg

ZFS Is for 1337 Hax0rz

| In Solaris
| 4 minute read

The developers of ZFS are a funny bunch of people. You can tell that by watching the “ZFS: The Next Word” talk, meeting them on conferences, reading their blogs or their comments on mailing lists.

And there are also some funny parts in the ZFS source code, too. In fact, if you use ZFS, you’ll have a funny joke sitting on your disk, right under your nose!

I was reminded about this particular joke while listening to Ulrich Gräf’s excellent talk on ZFS internal data structures during OSDevCon 2009 (no link, osdevcon.org no longer exists) (watch a video of Ulrich’s talk here (no link, sun.com no longer exists)).

But first, we need to dig a little bit into the world of ZFS data structures.

vdevs.jpg

A Closer Look at ZFS, Vdevs and Performance

Obsolete | In Solaris
| 14 minute read

When looking at the mails and comments I get about my ZFS optimization and my RAID-Greed posts, the same type of questions tend to pop up over and over again. Here’s an example from a reader email: “I was reading about ZFS on your blog and you mention that if I do a 6 drive array for example, and a single RAID-Z the speed of the slowest drive is the maximum I will be able to achieve, now I thought that ZFS would be better in terms of speed. Please let me know if there is a newer ZFS version that improved this or if it does not apply anymore.” This is just an example, but the basic theme is the same for much for the reactions I see: Many people think that RAID-Z will give them always good performance and are surprised that it doesn’t, thinking it’s a software, an OpenSolaris or a ZFS issue.

In reality, it’s just pure logic and physics, and to understand that we should look a little closer at what vdevs are in ZFS and how they work.

NewMusicUpdate

OpenSolaris DTrace for Home Media Servers, Revisited

Obsolete | In Solaris
| 5 minute read

A few weeks ago, we discussed using DTrace for automatically updating media servers when you upload new content.

Yesterday though, I discovered that my D script didn’t work any more. I uploaded new songs to my home server, and expected the music daemon to re-scan the music directory, but nothing happened.

That teached me an important lesson about DTrace, and here’s what I learned:

ZFS Performance

Ten Ways to Easily Improve Oracle Solaris ZFS Filesystem Performance

Obsolete | In Solaris
| 19 minute read

This is a long article, but I hope you’ll still find it interesting to read. Let me know if you want me to break down future long articles into multiple parts instead.

One of the most frequently asked questions around ZFS is: “How can I improve ZFS performance?”.

This is not to say that ZFS performance would be bad. ZFS can be a very fast file system. ZFS is mostly self-tuning and the inherent nature of the algorithms behind ZFS help you reach better performance than most RAID-controllers and RAID-boxes - but without the expensive “controller” part.

Most of the ZFS performance problems that I see are rooted in incorrect assumptions about the hardware, or just unrealistic expectations of the laws of physics.

So let’s look at ten ways to easily improve ZFS performance that everyone can implement without being a ZFS expert.

OpenSolaris SMF badge.

New Video: Implementing a Simple SMF Service: Lessons Learned

Obsolete | In Solaris
| 1 minute read

During OSDevCon 2009 in Dresden (no link, osdevcon.org no longer exists), I had the honor to present on some lessons learned while putting together a ZFS Automatic-Scrubbing SMF service.

Today, Deirdre was so kind to publish the video recording of my presentation on The Oracle Solaris Video Blog (no link, sun.com no longer exists).

From the description:

This talk walks you through the implementation of a simple SMF service. What sounds "simple" at first, develops a life of its own when you consider installation/de-installation, security considerations, error handling and debugging, and of course unexpected little bugs and shortcomings. Finally, we add a GUI to our service by discovering the OpenSolaris Visual Panels project. This "lessons learned" talk is intended to be a practical roundup of things to consider for developers interested in integrating with SMF.
Deduplicaed Folders Illustration

OpenSolaris ZFS Deduplication: Everything You Need to Know

Obsolete | In Solaris
| 8 minute read

Since November 1st, 2009, when ZFS Deduplication was integrated into OpenSolaris (no link, genunix.org no longer exists), a lot has happened: We learned how it worked, people got to play with it, used it in production and it became part of the Oracle Sun Storage 7000 Unified Storage System (no link, sun.com no longer exists).

Here’s everything you need to know about ZFS Deduplication and a few links to help you dig deeper into the subject:

Firefox wearing the OpenSolaris Persona

Show Your OpenSolaris Love by Wearing This New Firefox Persona!

Obsolete | In Solaris
| 2 minute read

Firefox 3.6 has introduced a new feature (that was in Beta for some time): Personas.

What’s a Persona? From Firefox’ own description: Personas are easy-to-use themes that let you personalize the look of your Firefox There’s a very nicely done video on the Firefox Personas site to introduce the feature.

If you (or your friendly sysadmin) haven’t upgraded to Firefox 3.6 yet, you can still install the Personas Plus Add-On (no link, page no longer exists) to enjoy all of the Personas goodness.