LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-15-2007, 05:03 PM   #1
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
MySQL Live upgrade from 4 -> 5 in production environment with replication?


Hello

I was wondering if there was a way to do an upgrade from mysql 4 to 5 on a live production server, without more then 10secs downtime.

Obviously I know the procedure would be something like this:
  1. download mysql source to all servers
  2. compile with same flags on all servers
  3. shut down slave 1, restart slave 1 with new version
  4. repeat for each slave
  5. shutdown master and restart with new version
The big BUT in the above is that MySQL dev site says one should "Dump all data from the old version and import it in the new version" which is completely unrealistic on a live production server with hits in the 1M range every day, our service is mission critical and so is our database.

This is one of the things I have to get absolutely right from the first try or get set back for hours, possibly days, which is complete and utter taboo.

Comments, thoughts, anyone?


Thank you
 
Old 09-17-2007, 04:59 AM   #2
earthgecko
LQ Newbie
 
Registered: Sep 2007
Distribution: ubuntu and centos
Posts: 21

Rep: Reputation: 0
Rather you than me

Firstly are you running INNODB, if so, how big are the innodb files?

Just thinking it may be worth thinking about rebuilding the master on another box, import the data into the new version, set it up as a slave, ensure that it is behaving properly as a slave, when you are sure it is, make this box the master.

Take the master down, upgrade it set it up as a slave to the new temp master make sure it is behaving correctly, then make the original master the master again. More work, but less downtime (unless your INNODB files are massive, which would mean a bit of downtime while copying them across).

Ass about elbow, but that should work, just a lot of steps to make sure that you do not get wrong, but at least you ensure and maintain data integrity by effectively doing the upgrade on the live data on an offline environment.

Just a few thoughts.

The same would apply to the slave, only you would have to have MASTER - SLAVE - TEMP SLAVE, so that you could upgrade the SLAVE as well.

_______________________________

This advise is given -as is- without warranty of any kind, either expressed or implied.

It is assumed that you have at least one verified backup before following any of the instructions above.

Last edited by earthgecko; 09-17-2007 at 05:02 AM.
 
Old 09-17-2007, 01:47 PM   #3
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Original Poster
Rep: Reputation: 38
Funny as is it, we only have MyIsam tables in use, total size about 40G. . .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Screenshots of OpenSolaris Live Upgrade in Debian/NexentaOS environment LXer Syndicated Linux News 0 06-21-2006 02:03 PM
Hoary preview wise to use in production environment? leemoreau Ubuntu 1 03-28-2005 11:45 AM
VMWare 5 beta in production environment? jiml8 Linux - Software 3 02-26-2005 02:29 PM
Fedora In Production Environment treedstang Fedora 3 06-10-2004 01:10 PM
POLL: What do you use OpenBSD for in a production environment? mylesridgely *BSD 1 10-17-2003 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration