Slashdot Mirror


Why Power Failures Can Always Lead To Data Loss

bigsmoke writes "So, all your servers run on RAID. You back up religiously. You're even sure that your backups are recoverable. But do you also need a UPS? According to Halfgaar (on Slashdot before to promote better Linux backup practices), yes, usually you do. He argues that despite technological advancements such as file system journaling, power failures can still cause data loss in most setups."

11 of 456 comments (clear)

  1. Well no shit, Sherlock by Skyshadow · · Score: 5, Insightful

    Power losses can cause data loss? Gee, you mean that my system that relies on electricity for everything it does can be adversely effected by power outages even if I take precautions? That's some good admin work there, Lou -- if only there was some sort of law that covered the tendency of things that can go wrong to go wrong...

    Next week: Fires can make things warm, floods can make things wet.

    --
    Every year during my review, I just pray the words "slashdot.org" aren't mentioned.
    1. Re:Well no shit, Sherlock by MightyMartian · · Score: 3, Insightful

      My servers run on Electricity but the RAID controller has battery backed up RAM so any cached data will persist a power failure and the disks are in writethrough mode.

      That is until the 10,000 volt spike when the power company improperly brings the grid back up bakes the RAM, the battery, RAID controller and the hard drives.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
    2. Re:Well no shit, Sherlock by deraj123 · · Score: 3, Insightful

      I'm curious...how can one opto-isolate server components from the power source?

  2. Duh! by mlwmohawk · · Score: 4, Insightful

    I remember a discussion on the PostgreSQL hacker's list about recoverability and transaction logs.

    You can't make a system that will not lose data, you can only make a system that knows the last save point of 100% integrity.

    There are too many variables and too much randomness on a cold hard power failure. You absolutely need a UPS that gives you time to shut down cleanly.

    1. Re:Duh! by sm62704 · · Score: 3, Insightful

      You're still hosed if your server's power supply goes titsup. Or if your hard drive crashes. Or if the building burns down.

      Gotta love these slashvertisements, I wonder whose UPSes they're pimping? Its not like we don't all know you need a UPS. What's next, a FA about how you need fire insurance?

      --
      mcgrew's razor: Never attribute to stupidity that which can be explained by greedy self-interest
  3. It happened to someone by Joebert · · Score: 4, Insightful

    The funny part is someone had to have thought they were safe without a UPS for this to become news.

    --
    Wanna fight ? Bend over, stick your head up your ass, and fight for air.
  4. Don't for get to test people, TEST! by sco_robinso · · Score: 5, Insightful

    In my company, everything is behind UPSs. Our SAN is even behind 2 separate UPSs. We thought everything was configured properly, but you'd be surprised what comes to roost when you test everything.

    We recently had a test night where all we did was test the UPS system and shutdown procedures, and there was a couple gotchas. Interestingly, by default the APC powerchute app we were using defaulted to shutting down the UPS completely after the [first] server went down - not good. This was buried fairly deeply in the configuration.

    Equally important to any protection measure, be it RAID, Power Protection, whatever - is testing!

  5. Get a UPS by Chemisor · · Score: 3, Insightful

    I really can't understand people who don't have a UPS. Don't you care about your data? At all? The UPS is not very expensive (My BackUPS 900 is very nice and only $100), and will last a long time (you just replace the batteries now and then). Once you are on UPS, you can stop worrying about any power issues, journalling file systems, crash recovery, and all that. The computer will never fail due to power. If you run Linux, it will also never fail due to the OS. If you are a normal user, that means your computer will never fail, period. Seriously, there is no excuse for not having a UPS. Go and get one right now!

  6. Re:What this really points out... by JesseL · · Score: 4, Insightful

    Who the hell is talking about 5 minutes!? I'm saying you should be able to get a clean shutdown in 5 seconds if you prioritize it correctly.

    --
    "Prefiero morir de pie que vivir siempre arrodillado!"
  7. Re:What this really points out... by Locklin · · Score: 3, Insightful

    Why 5 minutes? It usually takes less than a second to run a sync on the disks depending on how active they are. A couple seconds of runtime should be enough to do an "emergency shutdown" and avoid data corruption.

    ####@johncash:~$ time sync

    real 0m0.004s
    user 0m0.004s
    sys 0m0.000s

    --
    "Knowledge is the only instrument of production that is not subject to diminishing returns" -Journal of Political Econom
  8. He forgot UPS-triggered shutdown by SleptThroughClass · · Score: 5, Insightful
    The author did not mention having the system set up to have the UPS trigger an automatic shutdown.

    If you're not at the machine, or don't know how to shutdown without a CRT, the disk can get messed up when the UPS runs out of power. Unless you only have a desktop machine with no network applications writing to disk (no BitTorrent); then you might be OK if you just walk away from your keyboard and let the system become quiescent before it loses power.