Building opensource SAN

Title is very catchy...isnt it. It has to be :), reason imagine SMEs investing in SAN infrastructure. Its huge investment. Lets look into a cost effective way of building a SAN infrastructure using tools like freeNAS,openfiler etc.

What we need here are two server grade boxes with suse server OS.Some SAN setups work with Fibre Channel. Because this involves an expensive fiber optics-based infrastructure, this option is not the best imaginable for an affordable open source SAN. Instead of using Fibre Channel, we'll use iSCSI. An iSCSI target will be used to provide access to the storage device.One of the challenges of building such a flexible SAN setup is to make it as versatile as possible. That means that a failing component has to switch over automatically. So if the SAN box that currently hosts DRBD as well as iSCSI access goes down, the other box in the SAN needs to take over automatically. To do this, we'll use Heartbeat -- a portable, high-availability cluster management program -- to monitor and ensure availability of all critical resources in the SAN.

Required Software
To build such SAN appliances, you need the appropriate software. Typically, any Linux distribution will do, but in this article we'll use SUSE Linux Enterprise Server 10 SP2, which is available as a free download. One of the advantages of using SUSE is its position as the distribution used by the Heartbeat Software developers; Heartbeat plays a critical role in this setup. You'll therefore always be ensured from optimal integration between the operating system and the cluster software when working with SUSE. You could use the open source version of SUSE Linux as well, but to build a stable and reliable setup, I would always recommend working with the enterprise version.

When making your choice of softwares to install, keep it to a minimum. After all, you are building SAN appliances here and typically on a SAN you wouldn't run any services. From the list of installable software patterns, select the following:

  • Server Base System
  • High Availability
  • Documentation
  • GNOME Desktop Environment for Server
  • X Window System

Apart from that, select the iSCSI target components as well. Then you don't need anything else. In fact, you can even do it with less and choose not to select the GNOME environment and X Window System, but since SUSE heavily relies on YaST to configure the box, I'd recommend - at least for as long you are still working on the installation - that you keep the graphical environment at hand. Once finished with the installation, you can still disable it. Of course, you're also free to start all graphical components from a desktop in case you would prefer that.

In addition to the software requirement, you should also think about the hard disk layout you want to use when building SAN appliances like this. No matter if you are setting up server hardware or two laptops to create a test environment, you should take into consideration that a storage device is needed as the SAN storage. In figure 1, I have used /dev/sdb as an example storage device, but this assumes that you have two (or even more) hard drives available. In case you do not have that, it may be a good option to create an LVM setup, and to make a large dedicated volume available for the SAN storage.

The LVM setup also allows you to work with a snapshot appliance - more about that later in this tip. On my test setup, where I use two laptops with a 160 GB hard disk , I've used the following disk layout:

  • /dev/sda1: a 100 MB Ext2 formatted partition that is mounted on /boot.
  • /dev/sda2: the rest of all available disk space, marked as type 8e for use in an LVM environment.
  • /dev/system: the LVM volume group that uses the disk space available from /dev/sda2.
  • /dev/system/root: a 10 GB Ext3 formatted logical volume for use as the root of the server file system.
  • /dev/system/swap: a 2 GB logical volume used as swap space.
  • /dev/system/DRBD: a 100 GB logical volume which is just allocated and not formatted.

To create such a disk layout, use the YaST integrated module while performing the installation.

The last consideration to take when setting up your server is networking. I recommend putting your SAN on a network that is separated from normal user traffic. You don't want synchronization between the storage devices in the DRBD setup to be interrupted by a large file transfer initiated by an end-user, so if possible, create a dedicated storage network.

Normally, you would also want to configure a separated network for Heartbeat traffic, in order that a node won't get cast off the network when traffic is temporarily elevated. In this situation, however, I prefer not to do that. If Heartbeat packets don't come through over the normal network connection, it is likely that your DRBD device has also ceased communicating . You wouldn't want Heartbeat to ignore a failure in the communications link while your SAN is in a disconnected stage because a redundant link is still replying, would you?

You now have the basis of your SAN solution available: the two servers that are going to offer the iSCSI storage services

Disclaimer :Parts of this article are inspired from search enterprise linux.com posted by Sander van Vugt.

Also look at this article below which gives more information on building opensource SAN

http://www.sandervanvugt.nl/files/u18/Creating_an_Open_Source_SAN_Solution.pdf


iPhone 3G ..finally...

Oooo... it took me almost 1 year after launch in india to buy iPhone.
I was happy with Windows Mobile, but i thought why not see whats the big thing in worlds most advanced mobile.I realized it has really got the advanced stuff.
The kind of application you can write using the SDK and hardware components its has got are amazing. Imagine using compoenents like accelerometer components you can write hundreds of earth shaking applications.
Fantastic....

Google Voice

Google aquired GrandCentral and now launching as Google Voice.
This is going to be next big thinghappenning.

windows installer cleanup utility

If your software install is broken/screwed up on your box, here is a cleanup utility.
Windows Installer cleanup utility.
http://support.microsoft.com/kb/290301