Koozali.org: home of the SME Server

SME8 32bit to 64bit upgrade

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
SME8 32bit to 64bit upgrade
« on: November 07, 2012, 04:27:43 AM »
Just an fyi for those who have not tried to convert a 32bit system to 64bit yet.

Prompted by a hard crash that would not let me mount the root lvm, I decided to take this opportunity to simply move forward to the 64bit version of SME8 in order to prepare for some future 64bit requirements that I have.

My first attempt was to simply try to do an "upgrade" via the installer. This really didn't work out well. The system ended up confused about appropriate paths for the 64bit libraries vs the 32bit ones. The first thing to fail in fact was yum.

Rather than try to figure out why and likely just find a longer list of issues, I decided next to do a fresh install with 64bit and then do a "Restore". I used the Upgrade from Disk procedure in this case documented in the wiki.

This latter strategy worked quite well actually!

I was a bit concerned that there may be some architecture dependent items in the sme database but I have not yet encountered any issues. Given I was dealing with a crashed system, I was not able to do a pre-backup event so I simply copied over the mysql databases as is and then regenerated the mysql root password.

Hope this helps someone else. If I find any issues, I will report back. Once we have some collective experience, we can create a wiki entry.
SME since 2003

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SME8 32bit to 64bit upgrade
« Reply #1 on: November 07, 2012, 02:12:12 PM »
My first attempt was to simply try to do an "upgrade" via the installer. This really didn't work out well.

I could have told you that. :-)

Quote
This latter strategy worked quite well actually!

It is meant to. But you got lucky with the mysql issue. You must do a backup before an upgrade like this.

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: SME8 32bit to 64bit upgrade
« Reply #2 on: November 07, 2012, 02:35:42 PM »
But you got lucky with the mysql issue. You must do a backup before an upgrade like this.
There is no doubt a backup would have been ideal and I do a nightly one with affa. I was just hoping to bring my system to as current as possible and I made a mistake before the restore. On the failed system I did use rescue mode, chrooted to the lv and ran pre-backup but I realized now that I forgot to startup mysql (pre-backup didn't complain). If the db copy had failed then plan B was to attempt a backup of the old database or revert to my nightly backup.

After researching it a bit it seemed luck would be on my side given the hardware didn't change and the release didn't change only 32 vs 64 bit. But agreed luck should not normally be plan A.  :-)
« Last Edit: November 07, 2012, 02:39:00 PM by christian »
SME since 2003