Unofficial Hacker News client - receive Push Notifications on replies.

If you want failover to work well, use it often (opens external site)

535 points by madflojo 1 day ago | bencane.com | 142 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (14)

  1. One of my favorite was "Do you trust your RAID?'

    Confident "yes"

    And then I would put my finger on the tab to pull a drive.

    If they didn't flinch I would pull the drive out.

    Replies (5)
    1. i trust my RAID but would flinch knowing my hotswap doesn't work :(
      Replies (2)
      1. A hotswap raid isn't a raid if you can't pull a drive without thinking. Of course, raid 5-10 is minimum and mandatory.
        Replies (1)
        1. Not entirely the case, for example NVMe doesnt really have a consensus on whether its hot swappable today, some work and some dont work unlike HDDs
          Replies (1)
          1. I don’t think you’re saying we should use nothing until we know about NVMe’s definitively?

            RAIDs are about using what works as a baseline —- that is overwhelmingly HDDs.

      2. A certain type of hardware failure is indistinguishable from the drive being pulled out.
        Replies (2)
        1. I had this hardware failure recently. An SSD grew some bad sectors that, when read, caused the drive to just disappear. Poof, gone. It took ddrescue + over 400 manual replugs to get the remaining data off the drive. With Claude making a script to automatically proceed after each replug, it only took about 3 hours, which I think was perfectly reasonable.

          The SSD had lasted 9 years, served me well. Rest in peace.

        2. Drive pulls often results in voltage spikes of a type that drive failures won't result in.
    2. For years, back when the datacenter was down the hall from the offices, if we were doing an application upgrade we’d first go out and pull one of the drives from the RAID. If everything went well with the upgrade, we’d push the drive back in and let it rebuild. If something went wrong with the upgrade, we’d power down, boot off the drive we pulled, and be back up and running with minimal downtime.

      Some nights I would pull dozens of drives. I guess we had a lot of trust in the RAID.

      Replies (1)
      1. RAID 1 FTW!

        I did the same with databases. Build a read replica, pull network cable, patch/upgrade and then the rollback was to promote the read replica.

        This is often faster than a full backup and restore in most cases.

        I am not certain this is an approved method.

    3. I did this many years ago with a client who had bought a big server upgrade to demonstrate what they had just paid for. Server crashed immediately. Found that HP did not build the server to specs, there was no RAID set up. Luckily I had someone to blame.
    4. Apocryphal story (friend of a friend): they visited their data center and the person giving them the tour pulled out a drive. But instead of gracefully recovering, the system broke down. Turns out a colleague had given a tour earlier that day and pulled the same trick; the cluster hadn't rebuilt yet.
      Replies (1)
      1. Blinky lights are indicators of state. Do not ignore.
    5. Hah, I hit this exact thing with btrfs raid. Don't remember the details, but if a device disappears from kernel POV and then reappears, btrfs will think there are two devices with the same UUID and get into really weird states, eventually hanging. No data loss, but impossible to recover without reboot (btrfs seems to maintain its own internal table that cannot be cleared, and you can't even rmmod it in this state)