When SANs Go Bad

They sometimes go bad in completely unpredictable ways. Here's a problem I have now seen twice in production situations. A host boots up nicely and mounts file systems from the SAN. At some point a SAN switch (e.g., through a Fibrechannel controller) fails in such a way that the SAN goes away but the file system still appears visible to applications.

This kind of problem is an example of a Byzantine fault where a system does not fail cleanly but instead starts to behave in a completely arbitrary manner. It seems that you can get into a state where the in-memory representation of the file system inodes is intact but the underlying storage is non-responsive. The non-responsive file system in turn can make operating system processes go a little crazy. They continue to operate but show bizarre failures or hang. The result is problems that may not be diagnosed or even detected for hours.

What to do about this type of failure? Here are some ideas.
  1. Be careful what you put on the SAN. Log files and other local data should not go onto the SAN. Use local files with syslog instead. Think about it: your application is sick and trying to write a log message to tell you about it on a non-responsive file system. In fact, if you have a robust scale-out architecture, don't use a SAN at all. Use database replication and/or DRBD instead to protect your data.
  2. Test the SAN configuration carefully, especially failover scenarios. What happens when the host fails from access one path to another? What happens when another host picks up the LUN from a "failed" host? Do you have fencing properly enabled?
  3. Actively look for SAN failures. Write test files to each mounted file system and read them back as part of your regular monitoring. That way you know that the file system is fully "live."
The last idea gets at a core issue with SAN failures--they are rare, so it's not the first thing people think of when there is a problem. The first time this happened on one of my systems it was around 4am in the morning. It took a really long time to figure out what was going on. We didn't exactly feel like geniuses when we finally checked the file system.

SANs are great technology, but there is an increasingly large "literature" of SAN failures on the net, such as this overview from Arjen Lentz and this example of a typical failure. You need to design mission-critical systems with SAN failures in mind. Otherwise you may want to consider avoiding SAN use entirely.

Launching India Business Network

Welcome to the Launch of India Business Network : Business + Networking with Indian Professionals worldwide.



The mission of India Business Network is to provide an engaging and dynamic online place for business and social networking with Indian Professionals worldwide.

India Business Network Website:


Business Networking Website:


Try out the exciting social media features such as collaboration through Groups and Forums, networking through Events, communication through Blogs, Video and Notes, and even some fun through Photos, Music, RSS and more.

Create your business profile, invite your friends and business contacts, and build your own professional presence at India Business Network. Comment on each other's wall, write notes and express your opinion, and make your point across through the discussion forums.

Upload your business video, introduce your presentation, experience music, share ideas and explore new opportunities with fellow members and businesses.

Invite your friends, colleagues and business contacts to join the India Business Network.

Already over 1,150 executives and members from various professions and corporations have joined the India Business Network since our launch a few weeks back. Join the India Business Network today, and communicate with these professionals, network, and do business.

India Business Network - Your online social network for doing business with Indian Professionals worldwide. Everyone invited to Join.

Lots of New Tungsten Builds--Get 'Em While They're Hot

There is a raft of new Tungsten open source builds available for your replication and clustering pleasure. Over the last couple of days we uploaded new binary builds for Tungsten Replicator, Tungsten Connector, Tungsten Monitor, and Tungsten SQL Router. These contain the features described in my previous blog article, including even more bug fixes (36 on Tungsten Replicator alone) than I had expected as we had a debugging fest over the last few days that knocked off a bunch of issues. You can pick up the builds on the Tungsten download page. Docs are posted on the Tungsten wiki.

If you have questions, see problems with the builds, or just want to tell us how great they are, please post on the community forums or on the tungsten-discuss mailing list.

Our next open source release will be the Tungsten Manager, which is long overdue to join the family of regular builds. We are doing some polishing work on the state machine processing and group communications, after which the Manager will go out along with documentation on how to use it.

Apple introduces new MacBook Pros


"High performance now comes in three sizes: 13-inch, 15-inch, and 17-inch."

Key innovations, performance and competitive price:
1. Unibody Aluminium construction with precise details makes it a modern classic
2. Breakthrough long-lasting battery with 7 hours of running time on single charge
3. NVIDIA graphics display card powering LED-backlit display for awesome imagery
4. Green, environment-friendly notebooks built with recyclable materials and energy savings
5. Price, Price, Price... reduced to $1,199 for the 13-inch MacBook Pro, a step closer to the $999 price which Apple will introduce later in 2009.

Mac Engineers also designed a "clickless" "button-less" mouse pad or the track pad.

"The first thing you might notice — or not notice — is the button. The entire trackpad is the button, so you can click anywhere. Without a separate button, the spacious trackpad gives your hands plenty of room to move on the large, silky glass surface. Use two fingers to scroll up and down a page. Pinch to zoom in and out. Rotate an image with your fingertips. Swipe with three fingers to flip through your photo libraries. Swipe with four fingers to show your desktop, view all open windows, or switch applications. If you’re coming from a right-click world, you can right-click with two fingers or configure a right-click area on the trackpad."

Need we say more...

How does Apple, the #1 innovative company in the world, innovate and create game-changing innovations such as the iPod, iTunes, iPhone, iPad and more? What is Apple's secret recipe for innovation success?


Download Apple's Innovation Strategy, and learn how Apple became the #1 innovator through:

• Creativity and Innovation
• Innovation in Products
• Innovation in Business Model
• Innovation in Customer Experience
• Innovation and Leadership
• Steve Jobs Visionary Leadership
Revised in 2011! Steve Jobs interview

Learn more...



Tungsten Development News - Lots of New Features!

Articles on this blog have been pretty scanty of late for a simple reason--we have been 100% heads-down in Tungsten code since the recent MySQL Conference. The result has been a number of excellent improvements that are already in Subversion and will appear as open source builds over the next couple of weeks.

Tungsten has a simple goal: create highly available, performant database clusters using unaltered commodity databases that are simple to manage and look as close to a single database as possible for applications. Over the last two months we completed the integration of individual Tungsten components necessary to make this happen.

Full integration is a big step forward and finally gets us to the ease-of-use we were seeking. Imagine you want to add a slave database to the cluster. There's no management procedure any more--you just turn it on. Managers in the cluster automatically detect the new slave and add it as a data source. That's the way we want every component to work from top to bottom--either on or off, end of story. It was really nice to see it start to work a few weeks ago.

We are now ready to start pushing builds out to the Tungsten SourceForge.net project. Here is a selection of the features:

Tungsten Replicator -- API support for seamless failover, certification on Solaris, better Windows support, testing against MariaDB, and many other improvements like flush events for seamless failover. There are already 26 fixes in JIRA and I expect more before we post the build.

Tungsten SQL Router -- Pluggable load balancing with session consistency support. Session consistency means users see their own writes but can read changes by other users from a slave. It works using a single database connection, which is an important step toward eliminating application changes in order to scale on master/slave clusters.

Tungsten Manager -- Directory-based management model that allows you to view and manage both JMX-enabled services as well as regular operating system processes that follow the familiar LSB pattern of 'service name start/stop/restart'. The managers use group communications and can broadcast commands across multiple hosts, handle failures, and automatically detect new services as they come online.

Tungsten Monitor -- Improved monitoring of replicator status including slave latency, which is necessary to guide SQL Router load balancing features like session consistency.

There's a lot going on with Tungsten right now, in fact far too many things to mention even in a longish post like this one. One of my current code projects is to implement built-in backup and restore for Tungsten Replicator. I am planning on supporting slave auto-provisioning: a new slave comes up, restores the latest backup, and starts replicating. All you have to do is turn the slave on. (More of that on/off stuff--it's kind of an obsession for us at this point.)

Integrating backup/restore is the final big feature for Tungsten Replicator 1.0--after this we plan to turn attention to parallel replication and are already discussing how this might work with several potential customers. Feel free to contact me through this blog or better yet post on the community forums parallel replication topic to join the conversation.

One final bit of news, we are starting to work seriously on Tungsten PostgreSQL integration thanks to a new partnership between Continuent and 2nd Quadrant. This work is commercially focused for now but will lead to additional open source features in the not too distant future. Keep watching this space... :)

p.s., We also had a nice refit on the community website. Check it out.

Apple launches iPhone 3G S - Speediest, Smartest, Sexiest Smartphone

Apple iPhone 3GSApple introduced the latest iPhone 3G S - S for Speed (upto two times faster), S for Shoot (with the video camera and 3.0 megapixel Still camera), S for Smart (with features such as Voice Control for making calls and music, Internet tethering and voice memos), S for Spotlight Search (search across the entire iPhone, contacts, email, calendars, notes and iPod), S for Slim (slimmer than previous iPhone), S for the two "s"es in Compass (a very cool digital compass), S for the "scape" in LandScape mode (a boon for those typing lots of messagaes, mail, notes and Safari, and who are endowed with large fingers), S for Send and SMS (as in send multimedia rich messages with video, audio, pictures, contact information and even forward them), S for Space (even more, twice the diskspace of iPhone 3G), S for Stocks (as in better stock charts and features) and finally, S for Sexy - the sexiest iPhone to date, now available in White as well as Black! iPhone 3G S is The smartphone you have been waiting for... available for only $199 for the 16 GB version.

Bottomline:

The innovations in iPhone 3G S are downright absurd, and will help expand Apple's marketshare further in the growing smartphone market segment. iPhone has been a category killer with innovative features and iPhone apps store, and now with a starting price of only $99 for the base iPhone, Apple will penetrate the market even deeper and faster. Finally, there is an iPhone for every budget. The question is whether Apple can keep up the margins with such competitive pricing. If the economy rebounds in late 2009, Apple iPhone will have a huge last quarter - traditionally the best quarter in Apple's financial performance. iPhone 3G and iPhone 3G S will stall the new Palm Pre and Nokia's N97. Can it also stall Blackberry? The only thing missing from today's announcement was the absence of Steve Jobs.

Update: June, 2010

iPhone 3GS. More to love. Less to pay.

Keep applications open in the background. Organize your apps with folders. Shop for books in the iBookstore. The 8GB iPhone 3GS takes advantage of all the great features of iOS 4. And it starts at an amazing new price — just $99.*

Selected references:
Apple's Innovation Strategy
Leading eBook on Creativity and Innovation in Business
Creativity and Innovation Best Practices
Creativity and Innovation Case Studies
The Innovation Index
Top 50 innovative companies in the world

Steve Jobs launches new iPhone at Apple Developers Conference?

"The Apple Worldwide Developers Conference (WWDC) provides developers and IT professionals with in-depth technical information and hands-on learning about the powerful technologies in iPhone OS and Mac OS X from the Apple engineers who created them"

Is Apple announcing the all new iPhone at the sold out conference with over 1,000 Apple engineers and over 5,000 Apple hardcore developers and aficionados? What will this new iPhone have: full motion video, video recording and editing, faster iPhone, slimmer body, business apps and more...

Is Steve Jobs making the announcement of the new iPhone in a cameo?

Who will win the top awards and bragging rights for the best iPhone application and Mac OS X applications?

After all the stakes are high... "Winners will receive two 15-inch MacBook Pros (best configuration), two 30-inch Apple Cinema Displays, two 16GB iPhone 3Gs, two 16GB iPod touch, an ADC 2009 Premier Membership, and reimbursement of their WWDC 2009 E-ticket."

All eyes will be on Apple as it kicks off the Apple Developer's Conference on June 8, 2009. If Steve Jobs makes an entrance, watch out! There will be a frenzy...