Friday, 8 February 2008

Upgrading a Server 2008 RC Server Running Exchange 2007 to RTM

Since my little home server was starting to get a bit tired I was really excited about installing Windows Server 2008 on my new machine... only it in RC at the time. Me being me, I went for it and got Exchange 2007 up and running but what to do when the full Windows Server 2008 RTM product comes out? Will Exchange 2007 break?

Well thankfully not much. I have memories of repairing Windows 2000 and 2003 servers and having to re-install Exchange after the server OS or IIS was repaired - see http://support.microsoft.com/kb/320202. But firstly I'll breifly mention how the OS is upgraded to RTM.

"Upgrading" the OS

"Upgrading" the OS to the RTM version is quite a simple and relatively pain-free process. Simply autorun the DVD and choose the option to upgrade. One side note here is that I'd opted for a 20 GB OS partition thinking this would be ample for Server 2008... well its not! On a base install with not much more than Exchange 2007 installed the 20 GB OS drive only had 1.9 GB free before the upgrade (even with the Exchange install on separate partition) and Windows setup didn't like this so I had to opt for installing Acronis and resizing the OS drive to 40 GB.

Anyway, with the disk space issue resolved, the "upgrade" option becomes available allowing you to upgrade to the RTM version of Server 2008. I had some issue with it not accepting the product key at this stage with a vague "setup had encountered an error" message but it worked fine without a key and I was able to enter the key and activate Windows after the upgrade was complete.

Repairing Exchange

So back to Exchange. As I was saying, after the OS upgrade, Exchange was pretty well still intact with all Exchange services running happily and the mailbox store mounted. The only thing I found didn't work was Outlook Web Access (OWA) which failed with the .NET error "System.Management.ManagementException".

Now you can't just run a repair of Exchange 2007 through the setup GUI since all of the options are greyed out, so into command prompt (running as Administrator of course) and setup /? gives us lots of options, including setup /mode:uninstall /role:ca which is one of the commands needed to reinstall the Client Access Server (CAS) role and repair OWA.

Reinstalling the CAS Role

To repair OWA we need to reinstall the Exchange 2007 CAS Role using the command line setup:

Note: If you are running ForeFront for Exchange you'll need to stop all of the ForeFront (FSC) services before running setup. For my server I disable the FSCController and rebooted. This prevented any of the ForeFront services starting and also stopped the Information Store starting during the upgrade.

To remove the CAS role:

E:\Software\Microsoft\Exchange 2007 with SP1>setup /mode:uninstall /role:ca

Welcome to Microsoft Exchange Server 2007 Unattended Setup

Preparing Exchange Setup

The following server roles will be removed
Client Access Role

Performing Microsoft Exchange Server Prerequisite Check

Client Access Role Checks ......................... COMPLETED

Configuring Microsoft Exchange Server

Client Access server role ......................... COMPLETED
Removing Exchange Files ......................... COMPLETED

The Microsoft Exchange Server setup operation completed successfully.

To reinstall the CAS role:

E:\Software\Microsoft\Exchange 2007 with SP1>setup /mode:install /role:ca

Welcome to Microsoft Exchange Server 2007 Unattended Setup

Preparing Exchange Setup

The following server roles will be installed
Client Access Role

Performing Microsoft Exchange Server Prerequisite Check

Client Access Role Checks ......................... COMPLETED

Configuring Microsoft Exchange Server

Copying Exchange files ......................... COMPLETED
Client Access server role ......................... COMPLETED

The Microsoft Exchange Server setup operation completed successfully.

And finally an IISReset just for good measure:

E:\Software\Microsoft\Exchange 2007 with SP1>iisreset

Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted


One last thing to note is that if you disabled the ForeFront services prior to reinstalling the CAS role you'll need to set the ForeFront services back to "manual" and restart all of the ForeFront and Exchange services before OWA will work or OWA will give you an error:

Exception
Exception type: Microsoft.Exchange.Data.Storage.ConnectionFailedTransientException
Exception message: Cannot open mailbox

Finally I mentioned the Microsoft article http://support.microsoft.com/kb/320202 earler which I'd had to use several times on Exchange 2000 / 2003 installations and its worth noting that Microsoft have updated this article for Exchange 2007 and include the process above and and some additional commands to run (step 4 at the end the MS article) if you have and Exchange 2000 / 2003 in your organisation.

3 comments:

FredAtMicrosoft said...

Cheers on the info =) Don't know if you heard or not, but the Heroes Happen Here launch events are starting at the end of February and there'll be info and experts on hand for any Server 2008 questions you might have.

---------------------------
Fred Reckling
Microsoft 2008 Joint Launch Team
http://www.microsoft.com/2008jointlaunch/

Eric Vollbrecht said...

What version of RC did you upgrade from? I would assume RC1 and not RC0?

Solarfusion said...

I believe it was RC1 - it was the latest release candidate before RTM