List:Cluster« Previous MessageNext Message »
From:Bond Masuda Date:November 9 2007 7:42pm
Subject:RE: Request for comments on upgrade plan
View as plain text  
Hi Eric,

I did this upgrade not so long ago. I would actually recommend that you
scrap everything in /var/lib/mysql-cluster/data on the data nodes and do a
init and restore (from hotbackups or SQL dump).

I can't remember the *exact* reason, but I recall that there are some data
type incompatibilities (I think it was related to ENUM) between 5.0.26 and
5.0.45. Hence, I'm recommending a restore from either a hotbackup or SQL
dump.

I recommend going reviewing the release notes and specifically looking at
the section "incompatible changes" to see how the upgrade will affect your
systems. If you are 100% the incompatible changes will not affect you, then
maybe you can get away without doing a restore.

In addition, I recall an ABI incompatibility, so if you have some programs
linked to the 5.0.26 libraries, they *might* have issues with the new ones.

I don't have the specific facts in front of me, just going off memory. I
found the necessary information by reviewing the release notes. Hope that
helps a little bit...

-Bond

-----Original Message-----
From: Wilersh [mailto:wilersh@stripped] 
Sent: Friday, November 09, 2007 11:27 AM
To: cluster@stripped
Subject: Request for comments on upgrade plan

Hi folks,

I planning on upgrading my 5.0.26 cluster to 5.0.45 on Monday. I  
thought I'd run my initial plan by the helpful folks on this list for  
comments, if you had a moment.

My cluster has 3 machines, one for management, and two others, each  
running ndbd and mysqld. This is on OS X Server 10.4.7.

Cluster backup:
ndb_mgm -e 'start backup'

Mysqldump of all databases (to be extra safe), after going to single  
user mode on the management node, on a mysqld node:
mysqldump -u assetmanager -p --all-databases > ~admin/Desktop/ 
mysq_db_20071112.sql

Install the 64-bit package install of 5.0.45. on each node.

Copy the mysql/data/ directory from my old install into the new  
install on the two mysqd/ndbd nodes.

Restart the cluster as usual:
ndb_mgmd -f /var/lib/mysql-cluster/config.ini
ndbd
mysqd_safe &

I also wondering if I need/should run the mysql_upgrade command  
afterwards?
Is is documented somewhere how to properly restore the cluster from  
the mysqldump of --all-databases I did above? ( Just in case... )
Should I dump tables individually for granular recovery instead?
Anyone see major flaws or something I forgot?
Thanks for any comments!
Eric




Thread
Request for comments on upgrade planWilersh9 Nov
  • RE: Request for comments on upgrade planBond Masuda9 Nov