Unix Technical Forum

Reliability - Worst Case Scenarios: InnoDB vs MyISAM

This is a discussion on Reliability - Worst Case Scenarios: InnoDB vs MyISAM within the MySQL forums, part of the Database Server Software category; --> >From normal usage, InnoDB is sure better, i.e. quote from MySQL: =============== The outstanding feature of InnoDB tables is ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 11:29 AM
howa
 
Posts: n/a
Default Reliability - Worst Case Scenarios: InnoDB vs MyISAM

>From normal usage, InnoDB is sure better, i.e.

quote from MySQL:
===============
The outstanding feature of InnoDB tables is also automatic crash
recovery - in case MySQL shutdown was unclean InnoDB tables will still
recover to the consistent state, you will not have to check or repair
them.
===============

But they are talking normal/common usage, how about in the Worst Case
Scenarios?

I heard that in some rare case, if InnoDB table was corrupted, there
are no method to repair them, is that true?

So how about MyISAM vs InnoDB, in Worst Case Scenarios?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 11:29 AM
Bill MacAllister
 
Posts: n/a
Default Re: Reliability - Worst Case Scenarios: InnoDB vs MyISAM

howa wrote:
>>From normal usage, InnoDB is sure better, i.e.

>
> quote from MySQL:
> ===============
> The outstanding feature of InnoDB tables is also automatic crash
> recovery - in case MySQL shutdown was unclean InnoDB tables will still
> recover to the consistent state, you will not have to check or repair
> them.
> ===============
>
> But they are talking normal/common usage, how about in the Worst Case
> Scenarios?
>
> I heard that in some rare case, if InnoDB table was corrupted, there
> are no method to repair them, is that true?
>
> So how about MyISAM vs InnoDB, in Worst Case Scenarios?


Yesterday at my previous employer someone turned off the power to a rack
of servers. The MySQL server in the rack was running 6 instances of
MySQL, 5 replicas and 1 primary server. The primary server application
uses innodb tables exclusively. When the systems were powered back on
everything came up fine except that the binary log for master server was
corrupt. This was sort of nasty because it made the replicas for the
master very unhappy. I got called to help them restart replication. We
had to do a complete copy to restore replication. So, I guess what I am
reporting is that in this case both innodb and myisam tables survived a
catastrophic system failure, but the binlog didn't.

The only innodb problems I have seen are with MySQL instances that are
configured to support innodb but do not have any innodb tables. Several
times I have seen the innodb structures get corrupt and keep the
instance from coming up. Since there were no innodb tables in the
instance my solution was just to delete the ibdata and log files and let
the MySQL startup recreate empty structures. I have never seen this for
a instance that has active innodb tables in it.

Bill
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 11:29 AM
Rik Wasmus
 
Posts: n/a
Default Re: Reliability - Worst Case Scenarios: InnoDB vs MyISAM

On Thu, 01 Nov 2007 18:58:02 +0100, Bill MacAllister <whm@stanford.edu>
wrote:
> Yesterday at my previous employer someone turned off the power to a rack
> of servers.


Hehe, as a stand alone a pretty funny sentence :P
--
Rik Wasmus
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 11:29 AM
Gordon Burditt
 
Posts: n/a
Default Re: Reliability - Worst Case Scenarios: InnoDB vs MyISAM

>quote from MySQL:
>===============
>The outstanding feature of InnoDB tables is also automatic crash
>recovery - in case MySQL shutdown was unclean InnoDB tables will still
>recover to the consistent state, you will not have to check or repair
>them.
>===============
>
>But they are talking normal/common usage, how about in the Worst Case
>Scenarios?
>
>I heard that in some rare case, if InnoDB table was corrupted, there
>are no method to repair them, is that true?


If you have a problem like a hard disk controller writing data to
the wrong sector, thereby blowing holes in your data (or worse,
header information identifying the data), chances are nothing will
fix it but restoring from backups.

>So how about MyISAM vs InnoDB, in Worst Case Scenarios?


In a true Worst Case Scenario, you don't get back anything. Your
server suffers a power surge (it got through the UPS, perhaps because
it was an EMP from a terrorist nuke) and goes down, frying electronics
in the process. You power it back up again, a fire starts, and the
resulting fire takes out all your hardware, all your on-site backups,
and all the people involved with the application.

The resulting fire is detected as a nuclear explosion. Due to
various foul-ups and the TSA letting a bottle of hair gel through
security causing DEFCON 1, the nuclear powers start World War III,
which takes out all of your off-site, on-planet backups, all of the
source code to MySQL, and all the MySQL developers. The EMP from
the nukes takes out any backups you may have had in orbit. Since
humans are now extinct, nobody really cares that your application
doesn't work.

Another worst-case scenario: your hardware suffers a problem. You
try to bring it back up, and it's obvious that the data is all
screwed up. The tape drive or CD/DVD-ROM drive you use to restore
your backups is damaged so that it destroys any backups you insert
in the drive by scratching, stretching, degaussing, or whatever.
Further, any drive you insert the damaged media into is also damaged.
(Didn't this really happen with Zip drives?)

Another worst-case scenario: your hardware develops random,
occasional bit errors that only sometimes cause problems. After a
year of tearing your hair out you finally realize what the problem
is. At this point you have a years worth of backups hopelessly
contaminated with bit errors.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-28-2008, 11:29 AM
Good Man
 
Posts: n/a
Default Re: Reliability - Worst Case Scenarios: InnoDB vs MyISAM

gordonb.qjv0q@burditt.org (Gordon Burditt) wrote in
news:13ikr3aovmqn1ad@corp.supernews.com:

> In a true Worst Case Scenario, you don't get back anything. Your
> server suffers a power surge (it got through the UPS, perhaps because
> it was an EMP from a terrorist nuke) and goes down, frying electronics
> in the process. You power it back up again, a fire starts, and the
> resulting fire takes out all your hardware, all your on-site backups,
> and all the people involved with the application.
>
> The resulting fire is detected as a nuclear explosion. Due to
> various foul-ups and the TSA letting a bottle of hair gel through
> security causing DEFCON 1, the nuclear powers start World War III,
> which takes out all of your off-site, on-planet backups, all of the
> source code to MySQL, and all the MySQL developers. The EMP from
> the nukes takes out any backups you may have had in orbit. Since
> humans are now extinct, nobody really cares that your application
> doesn't work.
>
> Another worst-case scenario: your hardware suffers a problem. You
> try to bring it back up, and it's obvious that the data is all
> screwed up. The tape drive or CD/DVD-ROM drive you use to restore
> your backups is damaged so that it destroys any backups you insert
> in the drive by scratching, stretching, degaussing, or whatever.
> Further, any drive you insert the damaged media into is also damaged.
> (Didn't this really happen with Zip drives?)
>
> Another worst-case scenario: your hardware develops random,
> occasional bit errors that only sometimes cause problems. After a
> year of tearing your hair out you finally realize what the problem
> is. At this point you have a years worth of backups hopelessly
> contaminated with bit errors.



That's it, I'll never be able to sleep again!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-28-2008, 11:29 AM
howa
 
Posts: n/a
Default Re: Reliability - Worst Case Scenarios: InnoDB vs MyISAM

On 11 2 , 8 16 , gordonb.qj...@burditt.org (Gordon Burditt) wrote:
rare case, if InnoDB table was corrupted, there

> In a true Worst Case Scenario, you don't get back anything. Your
> server suffers a power surge (it got through the UPS, perhaps because
> it was an EMP from a terrorist nuke) and goes down, frying electronics
> in the process. You power it back up again, a fire starts, and the
> resulting fire takes out all your hardware, all your on-site backups,
> and all the people involved with the application.


snipped.

Anyway, to make it more simple:


1. Will there be a case such that, if my table is using MyISAM, it can
be recovered, but now it can't as I am using InnoDB?

2. Will there be a case such that, if my table is using InnoDB, it can
be recovered, but now it can't as I am using MyISAM? (except the
reason InnoDB didn't corrupt...usually)

Thanks.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:03 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com