Posts Tagged ‘corruption’

On Ma.gnolia, and data recovery

There’s a good podcast from Chris Messina and Larry Halff, about what really happened at Ma.gnolia. If you’re at all interested in what happened (i.e. how did they lose all their bookmark data), don’t hesitate to watch the video. I took some quick notes:

  • half a terabyte database file got corrupted
  • a mysql 5 database
  • everything was running even though there was corruption, and eventually, the site went down
  • backup system also failed, as it didn’t backup the data from mysql
  • backup was just backing up corrupted data (file sync over a firewire network was the backup mechanism)
  • a Rails application, he now recommends clouds over running your own infrastructure for startups
  • a couple of xserves (for database, etc.) and four intel mac minis as front end web servers
  • the site didn’t actually make any money

So I don’t know if Baron can rescue Ma.gnolia, per se, but I think the problem was largely:

Doing a file sync over the Firewire network, as the backup mechanism

You can’t safely backup MySQL that way. I don’t know what mechanism was used, but it sounds like rsync, and as much as I love rsync, I wouldn’t use it to backup a live running MySQL database that way.

With two servers, there should have been MySQL replication.

I’m curious if the data recovery Baron talks about is that of using the utility ddrescue? After all, ddrescue gets the raw data off the block device, without even trying to mount it. After that, you can attempt to recover the MySQL data off disk. In fact, I was surprised that the Ubuntu folk have a very nice Data Recovery page – no information about extracting MySQL databases, but its nothing a little hackery won’t get you.

I tried to ping Larry on Twitter, to ask what engine they were using… No response, per se. Good luck, and I hope the users get their data back, in time!

On corruption

A few weeks ago, I attended a fiduciary bootcamp. I didn’t even know what it meant.


“involving trust, esp. with regard to the relationship between a trustee and a beneficiary : the company has a fiduciary duty to shareholders.”

It was generally not a productive use of my time, but a choice quote through it all, caught my attention.

We need to recognize corruption for what it is. Officials who take bribes are stealing from their own people – not just money but governmental legitimacy and the hope of a better future. Their actions distort government decisions, waste scarce resources, and undermine public trust in political leaders and institutions. What’s more, corruption makes it more difficult for governments to implement laws and policies, and to attract and hold essential foreign investment.

Larry Fisher

This was presented at his keynote address at Rice University, in a talk titled “Taking a corporate stand against public corruption“. Choice reading (and I don’t normally consider reading stuff from a lawyer, choice reading).


i