PDA

View Full Version : [ubuntu] Upgrade Advice



wojnas
August 19th, 2012, 01:49 AM
I have a system running 10.04. It is an intel atom based system that has 32 gig compact flash that I have the OS files on it. Then I have two, 2-terrabyte drives that I have in a Raid 1 configuration. I would like to upgrade to 12 and I have done enough fiddling and thing a fresh install may be prudent. Any advice I on how I can upgrade with a fresh install without impacting the existing Raid?

Thank you in advance for your help.

darkapec
August 19th, 2012, 02:46 AM
I assume the raid is a software raid?

If that is the case it will be extremely simple.

Backup your OS drive (if you need to)

Then just as a precautionary disconnect your raid drives, install 12.04 as usual. DO NOT setup a raid during the ubuntu installation (it shouldnt let you because you disconnected the drives).

Once ubuntu is installed run the following


sudo mdadm --assemble --scan

This will automatically detect your raid and set it back up exactly how it was for you.

DO NOT -BUILD OR -CREATE AS THAT WILL WIPE YOUR RAID!

this is a benefit to using a linux software raid, it is very easy to migrate to new hardware / reinstalls.

wojnas
August 19th, 2012, 02:53 AM
Thank you very much. Yes it is a software raid and I will give it a shot tomorrow.

darkapec
August 19th, 2012, 02:58 AM
oops, forgot to mention you will have to plug the raid drives back in of course before you run that command.