Fix slow ZFS, get More IOPS! Best Practices for TrueNAS

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 60

  • @ryanmalone2681
    @ryanmalone2681 4 місяці тому +5

    Just discovered you. I like your style. No bullshit and straight into the most important tech details. Looks like you got a lot of good content. Subscribed.

    • @privacyproshop
      @privacyproshop  4 місяці тому +3

      Thanks. Intros and other wasting of time annoy me with a lot of UA-cam videos, so I try not to do those things.

  • @DrRussell
    @DrRussell 2 місяці тому

    Seriously valuable information Sir, thank you!

  • @StraussBR
    @StraussBR Рік тому

    Your explanation was precise and to the point 10/10
    Also the VPN service you suggested is interesting indeed I will have a look later

    • @privacyproshop
      @privacyproshop  Рік тому

      Thanks for watching! Lokinet is excellent for hiding your true IP from everyone, including the VPN provider. Lokinet is going through some big changes now, it will have major speed improvements soon.

  • @DD1072
    @DD1072 9 місяців тому

    excellent explanation

  • @attainconsult
    @attainconsult Рік тому +1

    very good info, do you have an opinion on large disks in the 2 vdev raidz1?

    • @privacyproshop
      @privacyproshop  Рік тому +4

      Using large spinning disks is risky in any RaidZ1 vdev. SSDs should be OK because they are so much faster in resilvering data. It is really scary to have a RaidZ1 pool with a failed drive resilvering for a week. I've seen it once, and you are pretty much praying that another drive won't fail until the resilver completes.

  • @sy5tem
    @sy5tem 8 місяців тому

    wow thanks, finally a person i can understand! and a real good reason to us the slog device! im now torn between using 18x mirror or 9xraidz2, same capacity but i feel like you have 2 chances with the z2 rebuild? (2.73TiB drives) , what would you chose? (this is going to be a NFS server for a 2 machine wide esxi server... at least 20 vm's hosting emails / clients backups / VoiP vm's

    • @privacyproshop
      @privacyproshop  8 місяців тому

      The 18x mirror is going to be MANY times faster writing than the 2x RAIDz2. Now, if these are SSDs, RaidZ2 might be OK speed wise. Bus matters, too. If you have SATA bus, that might be a limit, too.

    • @sy5tem
      @sy5tem 8 місяців тому

      @@privacyproshop thanks,they are SAS HDD on a 9305-24i, (2 sas connector to 24 disk backplane , then 3 conector for 3 backplane with 4 disk each). once again thank you for the knowledge!

  • @BoraHorzaGobuchul
    @BoraHorzaGobuchul 7 місяців тому +1

    But mirrors aren't the safest option. Please let me know if I'm wrong, but if two drives fail and happen to be in the same vdev, you lose the entire pool.

    • @privacyproshop
      @privacyproshop  7 місяців тому +1

      Correct. if you are concerned about that make each vdev a three-way mirror.

    • @BoraHorzaGobuchul
      @BoraHorzaGobuchul 7 місяців тому

      @@privacyproshop I am concerned, but not concerned enough to lose that many disks to redundancy... Would do that if I were rich though :)

    • @39zack
      @39zack 3 місяці тому

      raid is not backup, there is your safety

    • @BoraHorzaGobuchul
      @BoraHorzaGobuchul 3 місяці тому

      @@39zack yes, of course )

  • @ckckck12
    @ckckck12 5 днів тому

    This doesn't talk about fixing zfs pools, it talks about how to set them up. Fixing slow pools implies that they already exist before your fix helps out. Telling us how to set up new pools isn't a fix.

  • @jerryfaircloth
    @jerryfaircloth 8 місяців тому +5

    It took me years to learn these things that you just nailed very succinctly. Great job! The only thing I would add is expansion is much much easier with striped mirrors. Just add another mirror when you need more space.

  • @vi_EviL_iv
    @vi_EviL_iv 3 місяці тому

    Need help, I have a 10gb nic, my pc has a built in, my server has a built in, using cat6 and cat6e. I have a router with 10gb that is connected to my switch, both of these are TP link brand, router is a archer be900, switch tl-sx1008. Pc is connected to switch and my server to the swtich. Im using Truenas Scale and windows 10 enterprise. My server is using 2 vdevs mirrored 8tb at 5200rpm WD nas drives. I have 96gb of DDR5 RAM, my OS are on a nvme drive. My speed is 10mb of transfer speed. What I'm I doing wrong here? Please help. Anyone?

    • @privacyproshop
      @privacyproshop  3 місяці тому

      Make sure Jumbo frames are enabled

    • @vi_EviL_iv
      @vi_EviL_iv 3 місяці тому

      @@privacyproshop I do have Jumbo frame enable at 16348 bytes, and I have speed & duplex set at 10gbps full duplex. In truenas scal I have mto i think its called at 9000 instead at default 1500.

  • @vi_EviL_iv
    @vi_EviL_iv 4 місяці тому

    If I got this correct. I have 4 drives each 8tb. I can creates a vdev pool for 1 set of drives to create a mirror. Then with the 2nd set, create another vdev pool and mirror that, so I would have 2 vdev pools and both pools are mirrored which will give me a safety net for each pool that I can loose 1 drive for each pool and will have 200 IOPS in total for fastest reads. Then to expand my vdev pool, I can get another two 8tb drives, create a vdev and mirror that and will have 300 IOPS for increase of speed? Also if I want to expand my pools, I can get bigger drives and replace each drives in the pool and once each drive in the pool are replaced with a bigger drive, say 20tb, then my pool gets expanded? I can keep doing this until I reach 16 drives in total in my case and my IOPS will just increased each time when creating a vdev pool with 2 drives each time?

    • @privacyproshop
      @privacyproshop  4 місяці тому +1

      Yes, but.... When you add vdevs to the pool the data doesn't automatically get redistributed, so your speeds will likely be slower as it will likely mostly write to the new vdev as it has the space, especially if the other vdevs are getting full.
      So, to get the best performance you will want to copy the data to another pool, destroy the pool, recreate it and copy data back to the recreated pool.

    • @vi_EviL_iv
      @vi_EviL_iv 4 місяці тому

      @privacyproshop thanks is it possible to have 2 vdev pools at 8tb, then add a 3rd pool at 20tb, and each pool will be mirrored? Or do they all have to be the same size?

  • @computersales
    @computersales 3 місяці тому

    Alternatively break the bank and go all flash. 😅

    • @privacyproshop
      @privacyproshop  3 місяці тому +1

      Yep. Getting cheaper all the time.

    • @computersales
      @computersales 3 місяці тому

      @@privacyproshop I will be so happy when quality used 2TB SSDs get back to $55 USD.

  • @CoreyPL
    @CoreyPL Місяць тому

    One another information - if you want to expand the pool, you must expand by adding the same vdevs if you want to avoid constant resilvering when changing the drive in existing vdev one-by-one, since it will cause a long and sustained load on a degraded pool, and you know what that leads to. If you have mirrored vdevs (so 2 drives each), you expand your pool by adding another vdev of 2 drives.

  • @DrMarcArnoldBach
    @DrMarcArnoldBach 5 місяців тому

    Raidz2 are surprisingly fast in writing, but read slow
    It’s more complicated and different to raid

  • @nurwidhiyanto
    @nurwidhiyanto Рік тому +2

    I wish i found this video earlier

  • @hurrse
    @hurrse Рік тому +1

    Very good info at the end about mixing brands, some horror stories to learn from
    great vid as always

    • @privacyproshop
      @privacyproshop  Рік тому

      Glad you enjoyed!

    • @elvisitor
      @elvisitor Рік тому

      @@privacyproshop I am building my first nas and trying truenas. Has no idea all of this complexity and tips to think of. I earlier today ordered two identical disks... luckily I am only doing a small private project.

    • @privacyproshop
      @privacyproshop  Рік тому

      @@elvisitor Yep. I mix models or brands any time I can, I've seen too many similar drives fail within a few days or weeks from each other.

  • @jsaenzMusic
    @jsaenzMusic 6 місяців тому

    New sub. Great video and very easy to understand info on ZFS performance. Thank you.

  • @rcdenis1
    @rcdenis1 6 місяців тому

    So now I know why! Thank you and suuuubscribed!

  • @jimsvideos7201
    @jimsvideos7201 6 місяців тому

    Thank you for the wisdom!

  • @4seediamonds
    @4seediamonds Рік тому

    Great news

  • @FrederickMarcoux
    @FrederickMarcoux Рік тому

    I'm curious, how many vdevs (mirrors for example) can be in a zpool?

    • @privacyproshop
      @privacyproshop  Рік тому +1

      I've never seen it mentioned in documentation that I have looked. I'm sure there is a practical limit, maybe someone else knows.

    • @nadtz
      @nadtz Рік тому +1

      Max volume size is 2^128 bytes, so you can keep adding vdev's until you hit that limit. The max I've personally seen is something like 100 vdev's in a server attached to multiple JBOD storage enclosures with an obscene amount of disks.

  • @sinisterpisces
    @sinisterpisces 7 місяців тому

    I'm just getting started with ZFS and TrueNAS Core, and some of the hardest stuff to understand as a hobbyist (who also needs a reliable home office NAS) is the basics of how ZFS works. This video made me feel like I really have a decent handle on howto choose vdevs for smaller pools now. I've learned a lot from other videos, as well, but a small home NAS with 4 HDDs and 4 SSDs is very different from a large racked system with dozens of drives when it comes to vdev layout strategy.
    I've got 4 HDDs to work with. From your video, it sounds like a pool with two mirror vdevs is the best option, which would give me 4x writes and 1x reads with the potential for one disk loss in each vdev. Is that correct? From the video, it sounds like I'd need at least 6 disks to see any write performance gain (the 2 vdev 3-disk mirror setup).

    • @privacyproshop
      @privacyproshop  7 місяців тому +1

      with a 4 HDD, 2 vdev mirror pool you will get 2x write speed of a single drive and up to 4x the read performance of a single drive as all data can be read from either drive in a mirror.

    • @privacyproshop
      @privacyproshop  7 місяців тому

      And yes, a two mirror 4 disk pool can tolerate the loss of one drive in each mirror. That's why I'd mix and match drives. If you have two WD drives, and two Seagate drives, put them in different mirrors.
      As far as write performance gains go, rule of thumb is: Each vdev gives you 1x write performance. A mirror vdev gives you write performance of 1x, raidz1 gives you 1x, raidz2 gives you 1x, bare drive vdev is 1x.

    • @sinisterpisces
      @sinisterpisces 7 місяців тому

      @@privacyproshop Thanks for the clarifications. I've got HGST DC drives and WD Gold drives ... I'm not sure that counts as brand mixing or not (probably not). ;)
      Would it still be useful to mix them even if they're the same brand? I've always been wary of mixing drive models in vdevs because they might have different performance characteristics, but it sounds like that doesn't matter as much as I thought it did? I am trying to make sure eahc mirror has drives from different batches, at the very least.
      Is there a point of diminishing returns when doing a pool of mirror vdevs? That is, a point where adding more pools doesn't really net the same increases in performance?

    • @sinisterpisces
      @sinisterpisces 7 місяців тому

      @@privacyproshop How does the time when you add the mirror vdevs impact the performance gains? That is, say I add two mirrors to the vdev now, but don't have another pair of drives to add a third mirror (for a total of six drives in 3 mirrors, as in your video) until later, after I've been using the NAS for a while.
      My understanding of TrueNAS/ZFS is that there isn't an automatic rebalancing function, and manual rebalancing seems like more trouble than its worth. Maybe I'm missing something that makes it easier than it looks.
      My current understanding is that when I add the third vdev (mirror), all the existing data won't see a speedup on read, because they don't have any data stripped to the third mirror. But new writes will see the speedup, and data read from those writes will be faster.
      But doesn't that raise the issue of the older vdevs running out of space faster?
      It seems like it might be safer and simpler to wait until I have six disks, but surely there's a safe way to expand a mirror pool that preserves performance and usable space?

    • @privacyproshop
      @privacyproshop  7 місяців тому

      @@sinisterpisces HSGT drives used to be Hitachi/IBM drives. I'm pretty sure they make them in a different factory, too, so WD Gold plus one of those HSGT drives in a vdev counts as different brands in my book.
      I'm not sure about how many mirror vdevs you can put in a pool, but I know there are very large mirror pools out there. Your SATA or SAS bus limitations will come to play at some point, but that depends on the hardware implementation.