Installing Ubuntu Server on hardware RAID

By Benjy | Posted, January 28th, 2010 and modified on June 18th, 2010.
Tackling Hardware RAID1 issues on Ubuntu Server on an IBM server

We are in the process of moving our HIS servers from Windows 2000/2003 to Ubuntu Linux 9.10 (Karmic Koala). We are using IBM servers of the xSeries (with a little bit of variation here and there) -probably about 8-10 servers in all. Only two of them are rack mount and one of them Running RAID5. The others are all running RAID1 (hardware) on the Adaptec AIC-7982 Dual RAID controller with the suppplied 73 + 73 Gb   hot swappable SCSI drives.

This install was tried on IBM’s xSeries 226 server.  Creating the array from the RAID setup utility and then installing Windows 2003 has always been easy and I expected it to be easier on Ubuntu server as I’m now a veteran of innumerable installs of Ubuntu server using software RAID. I was excited as Ubuntu detected the RAID array by name and expected everything to fall into place as usual. However I ran into a bottleneck almost immediately.

Between the devil and the deep sea…

If I let it “activate” and use the detected RAID array, the installer would loop when installing the grub boot loader. If I tried reinstalling the boot loader, it brought me back to the install menu so I could retry the Grub installation. If I clicked skip or cancel, the installation would complete cleanly and leave me with an unbootable server. If I  chose not to allow it to use the detected array, it would  see through it and present me with  two discrete hard disks. It seems to allow over riding the array setup done using the controller’s  own software. Setting up software RAID was out of question.  Why pay the performance penalty that  software RAID levies on the system when you have hardware RAID? On the assumption that probably the Grub bootloader was unaware of the ext4 file system,  I created a separate /boot partition and formatted it with the ext2 file system. After about 8 tries at reinstalling and checking and rechecking that the array was bootable, and whether I had set the appropriate partition as bootable, I finally gave up. Early next morning, after an extended hot shower and 3 cups of coffee I began plotting against Ubuntu.  I was foxed for a while as Windows 2003 always saw a single hard disk. [ 2nd March 2010: Did a Windows 2003 Server install today and noticed that Windows 2003 loads a driver called IBM ServeRAID... That explains it! ]

The grubby merry go round…

Then I remembered that our systems were hot swappable and removing and replacing a drive caused the array to be rebuilt automatically. I don’t know whether this is true for all servers or whether this might work with some modification to for other levels of RAID but this is what worked for me. Life is full of workarounds. Sigh!

Pull out one of the disks before Installing Ubuntu Server

As your server boots up, press ctrl A or the appropriate key combination to enter the inbuilt RAID controller configuration tool. Create your array as per your preference.

In my case, it was 2 drives in RAID1 (mirroring) with no hot spares. It took the server two hours to build the array. Reboot the server and break the array by pulling out one of the drives (you might need to open the side/panel and/or unlock the drives). If your drives are not hot swappable, turn off the power and disconnect the power to one of them.  Pop in the Ubuntu server CD, complete the installation and reboot the system. Login and power down the system by switching to run level 0 or by the halt command. (sudo halt)

Replace the hard disk you removed/disconnected and enter the RAID controller utility by pressing ctrl A or whatever  you do to get there on your server. It should report your array as degraded. Press the appropriate key to rebuild the array and loaf around for another two hours. Reboot and you’re done! Congratulations :)

Your array is now degraded

I am not sure of why it wouldn’t rebuild automatically. Maybe that feature was broken as the server is quite old or it needed to be activated by installing IBM’s/Adaptec’s Windows based RAID configuration utility or from the bootable serveRAID CD. However I shall find out in the coming months and add it to this post as I have 8 more servers to go!  :-)

Rebuild the RAID array after Ubuntu installs and you're good to go!

Notes:

[13th May 2010] Had to upgrade from Karmic to Lucid today. Ran into the same problem at the end of the upgrade… Grub saw through the array and asked me which disk I wanted to install the boot loader to.. in a hurry I randomly chose a disk as this server was now live and not experimental as before and had users and patients waiting for the upgrade to finish. The safe option would have been to disconnect the second drive, finish the upgrade, push back the disk and mirror the disks again.  Don’t get caught by surprise like me… Is Ubuntu doing anything to fix this issue?   I have a server on RAID 5 in Landour, Mussoorie to convert to Ubuntu before June 15th and I’m already worrying… Hopefully Lucid has some new magic…

[18th June 2010] Finally got the chance to install Lucid LTS on our server in Mussoorie. The server is a higher version than the one on which the post was written on. It is an IBM x3400 tower server with an Adaptec SAS RAID controller. Besides it has 3 -  134GB hot swappable hard drives in RAID5. Installing Lucid was pretty straightforward with no issues. It saw the RAID5 array as a single disk and the install completed smoothly. It is difficult to figure out whether Lucid fixed the issue (but the upgrade in the above case failed too) or more likely Ubuntu probably does not have any issues with this version of Adaptec’s RAID controller. 8 more servers to go by December so I will keep you guys posted -all the rest are RAID1.


http://simplysimple.info/wp-content/plugins/sociofluid/images/digg_48.png http://simplysimple.info/wp-content/plugins/sociofluid/images/reddit_48.png http://simplysimple.info/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://simplysimple.info/wp-content/plugins/sociofluid/images/delicious_48.png http://simplysimple.info/wp-content/plugins/sociofluid/images/blogmarks_48.png http://simplysimple.info/wp-content/plugins/sociofluid/images/newsvine_48.png http://simplysimple.info/wp-content/plugins/sociofluid/images/technorati_48.png http://simplysimple.info/wp-content/plugins/sociofluid/images/magnolia_48.png http://simplysimple.info/wp-content/plugins/sociofluid/images/google_48.png http://simplysimple.info/wp-content/plugins/sociofluid/images/myspace_48.png http://simplysimple.info/wp-content/plugins/sociofluid/images/facebook_48.png http://simplysimple.info/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://simplysimple.info/wp-content/plugins/sociofluid/images/mixx_48.png http://simplysimple.info/wp-content/plugins/sociofluid/images/twitter_48.png

Comment on this post

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

What is 2 + 13 ?
Please leave these two fields as-is:

Spam protection by WP Captcha-Free

+(reset)-
Follow me
© 2009 Simplysimple.info webmaster simplysimple.info