Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Why Mirroring Is Not a Backup Solution

Posted by kdawson on Fri Jan 02, 2009 12:25 PM
from the pointed-lesson dept.
Craig writes "Journalspace.com has fallen and can't get up. The post on their site describes how their entire database was overwritten through either some inconceivable OS or application bug, or more likely a malicious act. Regardless of how the data was lost, their undoing appears to have been that they treated drive mirroring as a backup and have now paid the ultimate price for not having point-in-time backups of the data that was their business." The site had been in business since 2002 and had an Alexa page rank of 106,881. Quantcast said they had 14,000 monthly visitors recently. No word on how many thousands of bloggers' entire output has evaporated.
+ -
story

Related Stories

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • DUH! (Score:5, Insightful)

    by Anonymous Coward on Friday January 02 2009, @12:27PM (#26301311)

    DUH!

    • Re:DUH! (Score:5, Funny)

      by djupedal (584558) on Friday January 02 2009, @01:07PM (#26301965)
      As if millions of voices suddenly cried out in terror, and were suddenly silenced.
    • Double Duh! (Score:5, Interesting)

      by Roger W Moore (538166) on Friday January 02 2009, @01:22PM (#26302205) Journal
      Since they apparently used OSX Server this is particularly bad. All they needed was a large enough USB attached disk and then to turn on Time Machine. Might not be the best solution for their needs but it is hard to imagine one which requires less effort.
      • Re:Double Duh! (Score:5, Informative)

        by MarkRose (820682) on Friday January 02 2009, @02:22PM (#26303129) Homepage

        Not quite. Backing up a live database can be a bit tricky. By the time you finish copying part of the database, the first bit can change again. So you have to create a snapshot of some kind. And that has to be supported in the database setup (at the application or server level) in order for the backup to be in a consistent state. And you don't want your backup process to degrade site performance, either. So a simple file copy is totally inadequate.

        A common solution is replication. Backup is then performed by creating a replication point on the slave database machine then taking a snapshot and copying that while while master database machine continues serving at full speed. Replication can then catch up when the backup is complete. Another advantage to having replication is duplication on the machine level -- if the master fails, go live to the slave with minimal to no downtime. Set both machines up in a master-master configuration and you can swap back and forth as needed, allowing live maintenance and backup with no performance degredation.

          • Re:Double Duh! (Score:5, Informative)

            by MBCook (132727) <foobarsoft@foobarsoft.com> on Friday January 02 2009, @03:09PM (#26303589) Homepage

            *BZZZZT*

            The GP was 100% correct. If you had kept reading, you'd see that the suggestion was to use replication so you can lock the DB into a consistent state while backing up. When the backup is done, the box starts replicating again. If you didn't have the backup box, you'd have to lock the production database while your backup was going on.

            He was suggesting replication purely as a way to avoid having to pause the application during backup, not as the backup it's self.

    • Re:DUH! (Score:5, Funny)

      by NickFitz (5849) <slashdot@niAAAck ... inus threevowels> on Friday January 02 2009, @03:51PM (#26304083) Homepage

      What about archive.org?

      Ah, apparently not... [archive.org] :-D

  • by Anonymous Coward on Friday January 02 2009, @12:27PM (#26301313)

    While this mirrors previous comments, it's not really a backup solution.

  • by wandazulu (265281) on Friday January 02 2009, @12:29PM (#26301333)

    Mirroring, RAID, grid, whatever. At some point, you want your data safe and secure on something not physically attached to any power source.

    • by Anonymous Coward on Friday January 02 2009, @12:37PM (#26301465)
      Incremental backups to tape every night, full backup at the weekend. Tapes must be stored off-site at a proper storage location. Got lots of data and a small backup window? Get a faster tape drive and a tape robot. It costs money, but you data costs more.

      This is at a minimum people. Come on!
        • by Wdomburg (141264) on Friday January 02 2009, @01:52PM (#26302705)

          Even accepting your price that's a cost of about 12.7 cents per gigabyte and you can get 800GB native LTO-4 tapes for about $50, which comes out to about 6.3 cents per gigabyte.

          But quoting costs for desktop grade SATA drives severely understates the true cost. For any non-trivial site installation you're talking near-line rated drives, drive caddies, storage shelves and additional SAN fabric. Then price out the additional power, cooling and rack space. Then price offsite shipping and storage for the bulkier, heavier and more delicate disk option.

          Mirroring has its place. Snapshotting has its place. And backups to stable media still has its place too.

            • by Wdomburg (141264) on Friday January 02 2009, @03:15PM (#26303681)

              Fine. Get the cartridges, but what about the capital cost minus depreciation of the drive? What about random access?

              Random access is why snapshots also have their place. :) Archival backups and nearline backups solve different sets of problems.

              Now weigh those against an inexpensive jbod frame with a 2gb FC backplane.

              What kind of capacity are we talking. For a small site you can pick up a little 2U unit that'll store 6.4TB uncompressed for under $5k. Or if you're running a larger site you can snag a 4U unit with two drives for about $15k that'll handle 30.4TB with optional expansion to 60.8TB native.

              What's the write speed of LT vs a tasty little GB SAS drive?

              120MB/sec per drive without compression. And now that you've talking about SAS drives your per TB cost is hopelessly optimistic. Even OEM packaged terabyte SAS drives are going to run you about a quarter a gigabyte, which is now four times the media cost of an LTO-4 solution.

              Rackspace? You can put a dozen into about 4U.

              So about 12TB in 4U compared to the 30TB unit I mention above.

              Cooling? Although I'll grant you green cost, the random accessibility out-classes the seek time and tape insertion by a human cost dramatically.

              Have you never heard of a tape library?

              Stable media? Tape? Sometimes.

              Properly handled tape is incredibly stable.

              Shelf space?

              If you're doing off-site storage, that's going to be an issue regardless of what media you're using. And as I pointed out, tape is far more compact and far lighter than disks.

              No need to use tape anymore. Get out of the reality distortion field, but do the right thing by testing what you have and doing drills to ensure that whatever you have, works and is a procedure understood by all.

              I'm not the one dismissing an entire class of technology while demonstrating ignorance of its costs and benefits.

                • by Trixter (9555) on Friday January 02 2009, @02:53PM (#26303447) Homepage

                  That's not my company's policy, that's *my* policy. I can take a 3-month hit to my personal data. AND YET MY LAX PERSONAL POLICY WOULD HAVE SAVED JOURNALSPACE.

                  My *company's* policy is daily offsiting. Expensive, but very many of our locations could become a smoking hole in the ground and we'd still be able to restore and operate.

    • by uncledrax (112438) on Friday January 02 2009, @12:41PM (#26301521) Homepage

      It's more an issue that some people think that HA == DR.. which obviously this story reminds us that it is not the same thing.

      Mirroring / RAID == HA.. if one of your HDDs let the smoke out, you still don't incur downtime. If you have a hot-spare, you're even better.. all it does it let you have alittle time to correct the
      issue (ie: "It can wait until morning").

      Also, one other very important thing.. mirroring doesn't prevent/restore data corruption. If you're mirroring your rm -rf (as pointed out by Corsec67 below), your RAID will happy do what it does.. and span your command to all your disks.... Congrats, you just successfully gave yourself HA to your disk erasing! :]

      Backups are DR.. If your RAID croaks.. your SOL if you don't off-machine backups. If you accidently nuke your disks with an rm or something, you can still go back and restore data.. sure you'll likely loose -some- data, but -some- is better then all in this case.

  • by yttrstein (891553) on Friday January 02 2009, @12:29PM (#26301337) Homepage
    And that's why your IT department actually needs funding. Sleep tight.
  • rm -rf / (Score:5, Informative)

    by corsec67 (627446) on Friday January 02 2009, @12:29PM (#26301341) Homepage Journal

    rm -rf /

    That is one reason why mirroring isn't a backup, and why backups should ideally be off-line.

  • Ouch (Score:4, Informative)

    by scubamage (727538) on Friday January 02 2009, @12:30PM (#26301357)
    We do data hosting, and I can't imagine how catastrophic that would be. Jebus. Let this be an ultimate example of why numerous backups are needed. Always. Without question.
  • Excellent! (Score:5, Funny)

    by GravityStar (1209738) on Friday January 02 2009, @12:30PM (#26301361)
    Excellent! We can use their demise as yet another cautionary tale.
  • by MBCook (132727) <foobarsoft@foobarsoft.com> on Friday January 02 2009, @12:31PM (#26301369) Homepage

    It's really unfortunate that this happened. If they had simply had a backup snapshot of the DB they could have restored it. RAID only saves you from disk failures. It doesn't work on OS/user failures.

    Unfortunately this is the kind of thing you tend to learn from experience (either yours or someone else). It's very easy to think "RAID 1 = disks are safe".

    Just like a database cluster wouldn't have saved them. A clustering database can save you from load, or you can swap servers if a disk goes bad. But when someone issues "DELETE * FROM..." the other cluster nodes start to happily run the same thing and now you have 2 (or 3 or 10 or...) empty database boxes.

    I hope those bloggers had a backup of some sort of their own.

      • by MBCook (132727) <foobarsoft@foobarsoft.com> on Friday January 02 2009, @12:56PM (#26301765) Homepage

        My guess (and this is a guess, I'd never heard of the site before yesterday) is that this is some guy who started his own little site and it got bigger and bigger. Basically he never designed the backup, the system was just slowly pieced bigger and bigger until it got to it's current state.

        The comments in the messages from the site's operator about the cost of the drive recover and thinking both drives just died at once indicate to me that this site was basically a hobby for him and he isn't experienced as an admin.

  • El Oh El (Score:4, Insightful)

    by greymond (539980) on Friday January 02 2009, @12:33PM (#26301393) Homepage Journal

    That's all I can say at this. I'm really surprised that with all the users they had, they are so quick to say "everything is gone and we're giving up" instead of just starting over and maybe implementing protocol that would make sure this doesn't happen again.

    • Re:El Oh El (Score:5, Insightful)

      by kurtmckee (870398) <contactme@kurtmckee.org> on Friday January 02 2009, @12:45PM (#26301575) Homepage

      I'm really surprised that with all the users they had, they are so quick to say "everything is gone and we're giving up"

      Considering how complete and unrecoverable the loss is, they have no idea who their users are. The accounts would have to be recreated from scratch, but who would try? Their users have no reason to ever trust them again. Journalspace would have a difficult time wooing back their original users, and no new user would seriously consider using them.

      Bowing out is the only recourse, but I'm glad they're considering releasing their source code.

  • by computersareevil (244846) on Friday January 02 2009, @12:39PM (#26301497)

    Mirroring: High availability
    Backups: High reliability

  • The rules of backups (Score:5, Informative)

    by Anonymous Coward on Friday January 02 2009, @12:40PM (#26301511)

    The rules of backups:

    1. Backup all your data
    2. Backup frequently
    3. Take some backups off-site
    4. Keep some old backups
    5. Test your backups
    6. Secure your backups
    7. Perform integrity checking

  • by squeegee_boy (319210) on Friday January 02 2009, @12:42PM (#26301533)
    Important note: don't hire the IT dude with Journalspace.com on his resume.
  • by gzipped_tar (1151931) on Friday January 02 2009, @12:46PM (#26301595) Journal

    No doubt this incident is the result of the admin's fault. He's been confusing mirroring and backup and carried on the mistake until it's too late, as pointed out in other comments.

    Now what about a user's angle? The morale is you can never think your data is safer when it's "in the cloud". If you value your blog and your readers, you *should* save a copy of your work as well as the readers' info, *locally*, somewhere you have control over.

    There's no place like $HOME.

  • by computersareevil (244846) on Friday January 02 2009, @12:52PM (#26301709)

    They also purposely blocked archive.org via a robots.txt exclusion, so the bloggers can't use that to try and recover some of their blogs.

  • by hwyhobo (1420503) on Friday January 02 2009, @12:52PM (#26301715)

    In today's world where primary storage and protection storage are well-defined, and where entire industry grew around it (examples: NetApp, Data Domain), one is hard-pressed to understand the reason for such a debacle. The reading of the note referred to in the article [journalspace.com] leads me to believe, unfortunately, that Journalspace's IT department did not understand the difference.

    It is sometimes considered a bad form to say something bad about fellow techies. We prefer to look for 'outside' causes. Still, to learn and avoid the same problems in the future, one has to admit his mistakes first. This paragraph from the Journalspace's page:

    The value of such a setup is that if one drive fails, the server keeps running, using the remaining drive. Since the remaining drive has a copy of the data on the other drive, the data is intact. The administrator simply replaces the drive that's gone bad, and the server is back to operating with two redundant drives.

    makes me believe there is a denial going on.

  • Mirroring (Score:5, Insightful)

    by jav1231 (539129) on Friday January 02 2009, @01:04PM (#26301917)
    See mirroring is like...well a mirror. If you stand before one and stick a fork in your eye your mirror-image does the same. In real time. Analogies are there for a reason.
    • by gEvil (beta) (945888) on Friday January 02 2009, @03:30PM (#26303871)
      See mirroring is like...well a mirror. If you stand before one and stick a fork in your eye your mirror-image does the same. In real time. Analogies are there for a reason.

      There's a major flaw in your analogy. See, if I stick a fork in my right eye, the mirror image will stick a fork in his left eye. Between the two of us, however, we still have one good left AND right eye. So ipso fatso, I have a complete backup.
  • by RevWaldo (1186281) on Friday January 02 2009, @01:29PM (#26302333)
    This is why users should be able to easily back up their own data for any online service. If a service entrusted with your data provides no straightforward way to drop a copy of it onto your own hard drive, don't trust it. I'd go as far to say that any service that doesn't strongly recommend you keep your own backups shouldn't be trusted.

    Do the big kahunas of the "Web 2.0" world give users that option? Gmail, Myspace, Facebook, Twitter etcetera ad nauseam?
    • by conureman (748753) on Friday January 02 2009, @12:42PM (#26301525)

      I am experiencing a strange phenomenon. The jaw-drop reflex has been popping my mouth open for several minutes and won't stop. If I focus I can close it, but then it pops open again. wow.

    • by emag (4640) <slashdot AT gurski DOT org> on Friday January 02 2009, @12:51PM (#26301695) Homepage

      Even the greenest IT employee knows that mirroring is to protect against hard drive failure and not software corruption.

      I only wish that were true. I've given up arguing with friends about this, who insist that their mirrors are good enough backups. I just stare at colleagues who think such, especially those who SHOULD know better. And I *know* coworkers are doing this @ work, too, and I'm just waiting for about 50TB of data to suddenly go missing...