• 9 Posts
  • 289 Comments
Joined 1 year ago
cake
Cake day: July 5th, 2023

help-circle




  • Not that I want to push ZFS or anything, mdraid/LVM/XFS is a fine setup, but for informational purposes - ZFS can absolutely expand onto larger disks. I wasn’t aware of this until recently. If all the disks of an existing pool get replaced with larger disks, the pool can expand onto the newly available space. E.g. a RAIDz1 with 4x 4T disks will have usable space of 12T. Replace all disks with 8T disks (one after another so that it can be done on the fly) and your pool will have 24T of space. Replace those with 16T and you get 48T, and so on. In addition you can expand a pool by adding another redundant topology just like you can with LVM and mdraid. E.g. 4x 4T RAIDz1 + 3x 8T RAIDz2 + 2x 16T mirror for a total of 44T. Finally, expanding existing RAIDz with additional disks has recently landed too.

    And now for pushing ZFS - I was doing file based replication on a large dataset for many years. Just going over all the hundreds of thousands of dirs and files took over an hour on my setup. That’s then followed by a diff transfer. Think rsync or Syncthing. That’s how I did it on my old mdraid/LVM/Ext4 setup, and that’s how I continued doing on my newer ZFS setup. Recently I tried using ZFS send/receive which operates within the filesystem. It completely eliminated the dataset file walk and stat phase since the filesystem already knows all of the metadata. The replication was reduced to just the diff file transfer time. What used to take over an hour got reduced to seconds or minutes, depending on the size of the changed data. I can now do multiple replications per hour without significant load on the system. Previously it was only feasible overnight because the system would be robbed of IOPS for over an hour.








  • Switching wholesale from a brand or model to another could be counterproductive. There are myriad of reasons why drives can fail that aren’t related to the brand and the model. What if you unknowingly switch to a less reliable model because of such a reason? You’d end up worse off. For example according to Backblaze’s data, Seagate is generally worse than WD.

    A better way to do this is to mix brands and models so that there’s less probability to fail at the same time. I have both WD and Seagate in a single storage pool, even if the Seagate model is objectively less reliable according to Backblaze.



  • This drama is from 2021. HA is still open source and has been great.

    The Nix maintainers come off pretty entitled in this one. They ignore advice, requests and do not provide an engineering solution that could solve this without incurring the cost HA would bear. You don’t get to dictate or create work for an open source project that wasn’t designed to play well in your environment. If you want to get it to play nice in there, come up with a proposal that the upstream accepts and implement it. Better yet, come up with a design of your system that accommodates the upstream project. If you go ahead and create that work anyway, upstream can use the tools at their disposal to prevent that.






  • Avid Amoeba@lemmy.catohomeassistant@lemmy.worldLight switch advice
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 month ago

    If you’re in North America, you can source Leviton wall switches. They’re UL-listed. They have ZigBee and Z-wave versions. They have plain switch as well as dimmer versions. Once you have radio control over the light fixtures via the switches, you can add battery powered radio buttons that look like light switches wherever you like and make them toggle the Levitons. This assumes Home Assistant availability. If you don’t have Home Assistant and you just want to solve this, Lutron has an equivalent solution with their own smart dimmers along with their own remote buttons.