• Rooty@lemmy.world
    link
    fedilink
    arrow-up
    34
    ·
    1 year ago

    I know that making networks out of duct tape and bubblegum is a point of pride in the Linux community, but if you have to store vital data, wouldn’t a nice hardware NAS and a RAID array be a better solution?

    • DoomBot5@lemmy.world
      link
      fedilink
      English
      arrow-up
      16
      ·
      edit-2
      1 year ago

      How about an external HDD plugged into the Pi? Even a usb stick is better than writing it to the microsd card.

      • Avid Amoeba@lemmy.ca
        link
        fedilink
        arrow-up
        14
        ·
        1 year ago

        My brain didn’t even register that the meme was about NAS data residing on the SD card. I automatically assumed it’s on attached disks and was about to snark-reply about keeping a cloned SD card taped to the Pi case for such occasions.

        • Spaceape@lemmy.nrsk.no
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Remote mount datacenter storage pools or go home. If you have physical room for your disks in your house, you need to go bigger.

          • Rooty@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            Going from NAS to SAN - nice, but playing Amazon/MS for keeping my data is a bit much, unless i have literal pentabytes that have to be high accsses.

            • Spaceape@lemmy.nrsk.no
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              I’ve grandfathered an unlimited account at an independent company with no storage or speed cap with physical storage in a country highly rated for privacy. Even considering Amazon/MS as a potential hosting provider is… Something I wouldn’t do.

    • constantokra@lemmy.one
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Funny. My WD nas runs linux and the support ended so i’ve had to upgrade myself with entware… and it’s old, so the fan was sized for cooler hard drives, so I cut a hole in the top and screwed on another fan… and WD removed NFS support years ago, so I just mount my shares oversshfs… and i’m currently upping my local security so it’s only accessible over wireguard… honestly, I have no idea what it’s doing with the hardware raid and the way it mounts drives so i’m tempted to switch over to mergerfs and snapraid…

      Basically my legit consumer hardware raid nas is more duct tape and bubblegum than my home built linux nas. Then again, it’s easily a decade past its anticipated useful life too.

      I guess it is a point of pride.

  • errer@lemmy.world
    link
    fedilink
    English
    arrow-up
    19
    ·
    1 year ago

    If you must use an SD card: use log2ram. Greatly reduces the number of IO operations to the card and prolongs its life.

    • Avid Amoeba@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Or SaltStack, but Ansible is probably a better idea to learn if one doesn’t know any config-as-code software.

  • NAS89@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    I’ve never relayed to a meme more. I moved my UPS to my work computer after that one failed and three days later, I lost power. Spent five hours fixing a corrupted SD card then reconfiguring my Pi-Hole and HomeBridge.

  • chinpokomon@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    This has happened several times to my Pi-Hole. Even with backups, trying to get my network back online still takes too long. I haven’t found a good solution for resilience yet.

    • karlthemailman@sh.itjust.works
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      Honestly something that critical probably shouldn’t run on a rpi. There are plenty of cheap used thin clients you can buy on eBay that have better performance and reliability. I probably like the thinkcentre micros, but feel and hp have good options too

      • Avid Amoeba@lemmy.ca
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 year ago

        Pis can be supremely reliable when used correctly for the purpose. E.g. use high quality SD cards and don’t write to them much, or a good quality SSD if you have to do significant writes, use an official or better PSU, etc. My oldest 4 is from 2019 and it’s been in continuous use since then. It used to be a NAS running a 2-disk mirror exported over NFS. These days it’s a gigabit OpenWrt router with SQM. It’s still in the original SD card.

    • DilipaEli@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      Try to use overlayfs under raspi-config, I’ve been running some raspberry pis for years with that (mostly on offsite locations where fixing dead sd cards is not possible)

      Updating the pis is a little more work but in some use cases it’s worth it

      • chinpokomon@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I think something like BTRFS might be a better solution as overlayfs seems to freeze the system image state. Something which is copy on write (COW) seems like it would be more resilient and still provide an RW file system. To do it right would probably be a combination of the two with the data partition BTRFS and the system image partition overlayfs.

        • DilipaEli@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Yeah that sounds like a good solution. I think arch based pikvm does something similar. (no reboot necessary to enable rw)

          For those pis that need to write stuff, I usually mount a network drive and use that while having the overlayfs enabled. So far haven’t had any issues, only one pi died after 3 years due to faulty power supply.

  • Zagorath@aussie.zone
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    Not quite the same, but I made the mistake of using my RPi to run my home server and NAS off of an external USB non-NAS (i.e., not intended to be running 24/7) drive…with no backup or redundancy. The drive actually lasted a good long while, but it did die, and very suddenly, a couple of months ago. And now I’ve lost all my stuff that was on it. Still holding out hope I can figure out a way to recover the drive, but yeah.

    Back up your shit, yo.

      • Zagorath@aussie.zone
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Sorry I’m not sure what you mean. Yes it’s an HDD. A USB plug-in one in a non-user-serviceable enclosure. I can’t (without completely destroying it) get the HDD itself out. And I’m not sure what it would even mean to put it into a working HDD. The broken HDD itself is the problem, I think.

          • Zagorath@aussie.zone
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            I can’t recall the exact model, but it’s some form of Seagate Expansion Desktop, sort of like the ones shown here. Mine was 1.5 TB, IIRC.

            Thanks for that link. Wish there was a bot to translate links back into normal YouTube videos like there’s one to send you off to that other site, but it’s easy enough to manually change the URL I suppose. Anyway, doing that is way beyond my skills, and I’m not sure the data would be worth paying a professional to do that either. I can’t imagine that comes cheap.

            • lud@lemm.ee
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              Opening a HDD on your own is usually a terrible idea.

              HDDs need a completely dust free environment so that no dust enter the harddrive.

  • bdonvr@thelemmy.club
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Pfft, mine boots from a USB SSD, and since my services are all containerized I just gzip the directory with all my docker-compose files and volumes and chuck it into B2 every 6 hours

  • Ivan@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    damn, I was thinking on that these days: a way to create a little NAS solution based on Raspberry Pi , but with some SSD/HDD disks attached, not just the SD card XD (however I find the SD cards quite reliable so far in my phone, I would need to try a Raspberry for myself )

    • Krtek@feddit.de
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Your phone should use the SD card as a WORM drive, which shouldn’t cause too much wear. The Pi can’t do that if it’s the only storage medium present. Still, back up your stuff, just because it’s there now doesn’t mean it can’t be gone in an instant, flash storage usually does in an instant without warning

    • Treczoks@kbin.social
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I’ve got an RPi with an attached USB 3 SSD, and it works like a charm. Came back without problems after power outage.

      Is no NAS though, it runs MySQL and Apache2 with a mediawiki system instead.

      • Kyrgizion@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I had an Odroid running a NAS (WD RED drive) configured to do everything in memory instead of writing to the SD card and it still died after a few months.

        • Treczoks@kbin.social
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Well, the MySQL access is 99% read, so the wear and tear is not really an issue. It normally runs out of cache, anyway.

          What did your setup die off? Odroid hardware? Drive hardware? Or did you get some kind of filesystem issues/corruption?

    • Avid Amoeba@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      SD card clone taped on the box, USB disks and ZFS. Mirror works well. You could try a 3-4 disk RAIDz1 through a USzb hub if you’re feeling ambitious.