How to set up ZFS RAID 10 (Mirror VDEVS) on Ubuntu 20.04 - UP TO 9 GIGABIT/S TRANSFER SPEED

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

КОМЕНТАРІ • 104

  • @akim5227
    @akim5227 3 роки тому +15

    This server series is just a gold mine, thank you so much

    • @TechGuides
      @TechGuides  3 роки тому +7

      Really appreciate it man! I have planned to release a few more vids in this series soon :)

  • @kojack57
    @kojack57 3 роки тому +4

    Roman, PLEASE create more Linux content . You just went through some pretty complex technologies spending mere minutes on each topic. Not only that but also some very helpful tips which us average Linux users usually only discover by accident. Really good content and very well delivered. More of the same please, much more.

  • @t_Radikl
    @t_Radikl 4 роки тому +3

    Really good stuff here. I love how you add tips, for instance, the alias naming of your drives for ease of reference. Keep up the great videos.

    • @TechGuides
      @TechGuides  4 роки тому

      Glad you liked it, thanks!

  • @1floggedhorse
    @1floggedhorse 3 роки тому +4

    Just an idea! When running the "badblocks" test open 4x SSH terminals and run one in each = 4days will become 1day, good job today is a bank holiday :)

    • @TechGuides
      @TechGuides  3 роки тому +2

      Yes thats absolutely how it should be done haha

  • @henrik2117
    @henrik2117 3 роки тому

    Really good video!
    I was searching for zfs on Linux and this was one of the results - and am I glad it was!
    You have a very nice easy to understand and follow way of describing each part of the process. No need to make things complicated when you can do it like this.
    Super great guide!
    And you got a new subscriber :)

  • @matthewbennett2844
    @matthewbennett2844 3 роки тому

    Great tutorial i ran this through a test Virtual Machine and it worked a treat, next step physical hardware. Thank you for the great tutorial.

  • @thisisbhm
    @thisisbhm 4 роки тому +1

    It's also advisable to add a spare drive to a zpool. This way in case of a disk failure, spare vdev starts resilvering (taking place of a degraded vdev).

    • @TechGuides
      @TechGuides  4 роки тому +2

      Yes, that's definitely a good idea (if one has the money)!

  • @1floggedhorse
    @1floggedhorse 3 роки тому +1

    "I Claim The Golden Goof Spotter Price" - 8:14 - ok very trivial, but have when you get a chance to have a go at your teacher :) Very detailed editing .... for those that cant see a clue between the highlighted "sdd" and the "sudo zpool c" - Many thanks for the guides - invaluable.

  • @edgarricci
    @edgarricci 4 роки тому +1

    Thank you very much for the help! I'm looking forward to the next video on nextcloud!

    • @TechGuides
      @TechGuides  4 роки тому +2

      Thanks for watching! Cool, I'm working on it :)

    • @Alex-rx5cp
      @Alex-rx5cp 3 роки тому

      @@TechGuides rllly? please relase it!!!!!! I love your tutorials and I just finished up.

  • @captainyossarian388
    @captainyossarian388 2 роки тому +1

    Great guide, Roman. QQ, how can I get the pool to show up in the Files GUI?

    • @captainyossarian388
      @captainyossarian388 2 роки тому +1

      Found it, had to use the zfs to configure the mountpoint.

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

    Thank you for that great tutorial!

  • @ierosgr
    @ierosgr 3 роки тому +2

    Nice video but what about extra options during zpool creation like
    zpool create -f -o ashift=12 -o autoexpand=on -O atime=off -O compression=lz4 $zp \
    mirror /dev/disk/by-id/disk1 /dev/disk/by-id/disk2 \
    mirror /dev/disk/by-id/disk3 /dev/disk/by-id/disk4
    and explain the arguments as well. i t would be more thorough

    • @jonmcclane4946
      @jonmcclane4946 2 роки тому

      I dont get any info to use with /dev/disk/by-id/ I have to use by-path but he can change also because it changed on me after I update the raid controller firmware and bios. only thing that was safe was the raid5 all other single disk lost there by-path ID.

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

    Do disk by path. not id. By path will mark the actual hardware address of the port. So if a drive goes dead, it is way easier to change.

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

    Great tutorial but even though i created a zfs pool it was only ever visible in terminal, wasn't visible in dolphin or files, converted it back to btrfs raid as that seems to work more seamlessly with Ubuntu GUI

  • @vandenelsenkoen
    @vandenelsenkoen 3 роки тому

    Any indication of when the nextcloud part is releasing? Really looking forward to it!

  • @paco1022
    @paco1022 4 роки тому +1

    Will you do an update video on the full release of Cold War? or are your findings from the beta still relatively the same. Cus I've seen some new options in the game.

    • @TechGuides
      @TechGuides  4 роки тому

      I will eventually do an upgraded CW fps guide but I got so many other projects in the pipeline as well...

  • @jonmcclane4946
    @jonmcclane4946 2 роки тому +1

    Hello, great video and I was trying to do what you did but my speed is nowhere near what your getting. I got everything but not the same!
    only getting 178MB/scopying from my hard drive or NVME threw the new work. I did a raidz1 with 7 drives . testing the speed over the network and with the hard drives and I cant get 10GB threw my NIC. Any help would be great or a video on steps we can do to get higher threw speed.

  • @aielias89
    @aielias89 2 роки тому

    How does the 900MBps transfer speed of this Raid10 configuration add up? Assuming your drives are 200MBps transfer and two of them are mirrored shouldn't that equate to 400MBps? Or if ZFS does some caching magic to utilize all 4 drives at once, still at most 800MBps best case? Real world wouldn't that number be less, like 650-750MBps tops?
    I could understand 800MBps in a RAID5 array of 5 drives of this speed but this isn't making sense to me. Could you explain how this all adds up?

  • @SirHackaL0t.
    @SirHackaL0t. 3 роки тому +1

    Nice video. @14:29, what command did you use to get the display looking like that? I’ve used htop and top but not seen one look like that.

    • @charleyshellenbarger3777
      @charleyshellenbarger3777 3 роки тому

      glances :)

    • @trumanhw
      @trumanhw 2 роки тому

      Have you ever used - ncdu ..? it actually looks kinda similar (and you can use brew to install it) ...

  • @jairunet
    @jairunet 2 роки тому

    Hello Tech Guides, excellent tutorial, I have a quick question, I thought that on ZFS after creating a mirror and the ZFS mount happens automatically after each reboot? however, when I run `df -h` or `mount` I don't see the name of the ZFS pool mounted :( is there a follow up tutorial about this or do you have any suggestions on what might be happening? Thank you in advance.

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

    Great video, thank you for taking the time sharing your knowledge with us mere mortals.
    Can I ask you what is the command you have launch to show the network data transfer speed? How is it being mesured to show your 8.03GB on your enp13s0?
    Thanks :)

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

      You're welcome! Do you mean the application shown at 14:24? Its called "glances"

  • @peterruzevich7089
    @peterruzevich7089 3 роки тому

    Amazing content. Thank you so much!

  • @willtoulan
    @willtoulan 2 роки тому

    I'm trying to follow along here. I'm stuck at 8:06 when I enter "cd by-vdev/" I get "-bash: cd: by-vdev/: No such file or directory"

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

    Hello. Is it possible to add an SSD (1xNVME) cache to this type of ZRAID as your described (4 drives, zfs mirror vdevs)?. If SSD cache is not recommended, how much RAM should I have for this setup, assuming the hard drives are 10TB each. I will be using Linux Mint 22.

  • @mikin134
    @mikin134 3 роки тому +1

    Hi, whats the name off the Tool showing at 14:25?
    Thx

    • @TechGuides
      @TechGuides  3 роки тому +1

      its called "glances", cheers!

  • @GreenSword
    @GreenSword 4 роки тому

    Please one more video about Obs setting for 10-25mbps internet speed

  • @SimpleGunner
    @SimpleGunner 3 роки тому

    loved the video bro. though i have to ask, whens the next cloud part coming?

    • @TechGuides
      @TechGuides  3 роки тому

      Thanks man! Actually the next part should release tomorrow :)

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

    Any application use interface or gui easy more than termenail,?

  • @dfgdfg_
    @dfgdfg_ 3 роки тому

    Can you make a video on how to take a default 21.04 desktop zfs (wizard) install and mirror it to a second identical drive please?

    • @trumanhw
      @trumanhw 2 роки тому

      You mean clone the boot drive ..? I think dd would do that, but if not, at minimum ddrescue will 100%; that's exactly what it's for. Cloning drives. It used to be free which is why I suggest you check if dd by itself will, as ddrescue is oriented to failing drives but might be using the dd command in addition to other features.

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

    ZFS z2 is the best for home servers. It is recomended to have a low-level z2 rather doing it through ubuntu.

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

    No 'smbpasswd -a ' ?

  • @heritagecore1
    @heritagecore1 4 роки тому

    Hey thanks a lot, i was really struggling for info on how to set up a zfs Raid 10 on my new server as im new to linux :)

    • @TechGuides
      @TechGuides  4 роки тому +2

      Glad I could help!

    • @heritagecore1
      @heritagecore1 4 роки тому

      @@TechGuides One question though if you don't mind, I have quite frequent power cuts. Will zfs be a pain to keep recovering from crashes?

    • @TechGuides
      @TechGuides  4 роки тому

      I'm afraid yes this could very likely be a pain to deal with. If you have frequent power cuts than I would highly recommend that you get a USP uninterruptible power supply (UPS) which can than safely shut down your server if you intend on using ZFS.

  • @feralshad0w
    @feralshad0w 3 роки тому

    I followed your previous tutorial about settings these up as drives in my cloud, now I am stuck when trying to check for badblocks. Did I mis a step, or do I need to undo the previous drive mounting from the first tutorial?

    • @TechGuides
      @TechGuides  3 роки тому

      Yes badblocks does not work when the drives are mounted. Also don't do it like I showed if you already have any data on the drives!! Badblocks in the mode I showed will wipe all data from your drives (there is also a non-destructive test but it will take forever)

  • @kwarner04
    @kwarner04 3 роки тому

    What is the monitoring screen / utility you are showing at 14:26?

    • @TechGuides
      @TechGuides  3 роки тому +1

      glances (sudo apt install glances)

  • @dkgoud
    @dkgoud 4 роки тому

    can we setup iSCSI instead of smb? this will probably give much faster access over the network

    • @TechGuides
      @TechGuides  4 роки тому

      Absolutely, although I'm already exceeding my 10GE network with this solution (unless copying terabytes of data) so I'm not really trying to get anything faster working :)

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

    Interesting... So why would I need trueNAS OS if Ubuntu OS can do it? 🤔

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

      Because its more work by the user ;)

  • @feralshad0w
    @feralshad0w 3 роки тому

    I am using a very old office server without ECC memory to create my first home server as a test run. Considering I dont have ECC memory, should I proceed with this guide or use the 2019 videos?

    • @TechGuides
      @TechGuides  3 роки тому

      I would definitely recommend to use my updated guides, but you probably don't want to use ZFS on your server. The rest can be applied to basically any hardware :)

  • @ShuhDonk
    @ShuhDonk 2 роки тому

    How do you do this with 6 drives?

  • @nnm711
    @nnm711 3 роки тому

    9:51 - Can I please ask *why*? What are the possible ramifications if I don't create a folder inside the zpool and just mount it directly? I am new to this and I haven't seen this advice anywhere else. Thank you!

    • @TechGuides
      @TechGuides  3 роки тому

      Not entirely sure anymore but it had to do with creating snapshots I think. Just keeps things organized too (you don't have tens of folders in your root) but you can probably also just save everything in the root

    • @nnm711
      @nnm711 3 роки тому

      Thank you for the response! I think I will make the folder. After all, it can be hidden from view anyway, by pointing the sambashare right to the created folder.
      I especially appreciate the "creating drive aliases" part, as I have omitted it during testing stuff and I will be moving the drives to another hardware in couple months. Should spare me a very probable headache.

    • @TechGuides
      @TechGuides  3 роки тому

      Exactly, the mounted folder will just be the one you've created :) Great!

    • @trumanhw
      @trumanhw 2 роки тому

      I also think moving content in the root directory is more difficult ... certainly if you've defined it as a shared folder...as it'd break any shares you had.

  • @kithuto
    @kithuto 4 роки тому

    Do you recomend RAID 5 with a dedicated PCIE card?

    • @TechGuides
      @TechGuides  4 роки тому

      Do you mean a RAID card or simply a PCIE SATA extension board? Because I'm not sure I would recommend a RAID card because of the added level of complexity and additional potential for catastrophic hardware failure

    • @kithuto
      @kithuto 4 роки тому

      @@TechGuides a raid card. Okey thx.

    • @jonmcclane4946
      @jonmcclane4946 2 роки тому

      @@kithuto I am using a raid card and it is by far faster than the onboard sata controller. Yes there are problems with the raid card cause my /dev/disk/by-id doesnt show the ID and my raid card doesnt show the hard drive aID either. It also swaps the /sda around . but I did do a small test between onboard and raid card. the raid card copied files at around 200MB/s and the onboard did it a 70MB/s. Waiting for some new drives to come in at the computer store and I will create 4 drive mirror and test them with the onboard NVME.

  • @marcor8311
    @marcor8311 2 роки тому

    If drive 03 failed, and you need to replace it how do you do that? if i put a new drive in, do i change the vdev aliases before doing a replace command?

    • @TechGuides
      @TechGuides  2 роки тому

      Sorry I never had to do this so I don't know the exact procedure but I guess there are many good tutorials out there on exactly this topic, no?

  • @GreenSword
    @GreenSword 4 роки тому

    Superb 👍

  • @cepi24
    @cepi24 3 роки тому

    Please add link to mentined video in 2:40

  • @mdd1963
    @mdd1963 2 роки тому

    almost 1 GB/sec with just 4 spinning drives? That is good!

    • @TechGuides
      @TechGuides  2 роки тому +1

      Thanks to the magic of ZFS caching

  • @GreenSword
    @GreenSword 4 роки тому

    Please guide me on how to improve (OBS)

    • @TechGuides
      @TechGuides  4 роки тому +1

      Hi man, what exactly would you be interested when it comes to an updated OBS tutorial? Streaming? Recording?

    • @GreenSword
      @GreenSword 4 роки тому

      @@TechGuides streaming

    • @GreenSword
      @GreenSword 4 роки тому

      @@TechGuides my internet not so fast

  • @gopinathnath6747
    @gopinathnath6747 3 роки тому

    Can I do ZFS without RAID, I only have 3 200GB ssds?

    • @TechGuides
      @TechGuides  3 роки тому

      You could, but I would generally just use something like mergerFS if the only point is to create one big combined drive. Or did you want to make use of some of ZFS' other functionalities?

  • @FirstLast-hm8oz
    @FirstLast-hm8oz 3 роки тому

    Question is, what will happen if drive 1 and 3 will be broken at the same time ? I see that we have four copies and nothing will happen. Am I right ?

    • @TheDiner50
      @TheDiner50 3 роки тому

      Yes. Really how much safety/performance/space you get out of the drives is up to the user/setup of the drives.
      In this case half the drive space is used for redundancy (safety) But due to the stripe you can only lose 1 out of each of the mirrors. So you can lose up to 2 drives. 1 and 3 can be removed and everything is fine. But half your data is on drive 2 and the outer data is on drive 4. Your really in trouble but your data is still there. All speed improvements are gone etc etc.
      But if 1 and 2 die at the same time. (or 3 and 4) data is lost. So really only one drive can die without worry. 2 drives means you have lost data or no redundancy left in your drives. The hole point of this is more about gaining speed. And less about safety.
      You can have 2 of 3. Speed, Safety, Capacity.
      This setup is Safety and Speed. With the big thing being SPEED. Safety is really just that you can lose 1-2 drive out of 4. That is kinda shit but respectable. You can not expect much from 4 drives when it comes to how many you can lose. And you need the speed you can get out of slow HDD's.

    • @FirstLast-hm8oz
      @FirstLast-hm8oz 3 роки тому

      @@TheDiner50 Thanks a lot for your reply. Is it possible to mirror 1 to 2 and latter to 5 to have 3 disks instead of two, only ? (Same for disk 3 to 4 and 6) Then 1 and 3 can fail, since 5 ist still present. For me it is important to gain size and savety.- Other question: Is it possible to add new drives to a working set if space gets out ?

  • @reignfn4728
    @reignfn4728 4 роки тому

    hey I think they patched uploading with vpo9 because it's not working do you have a fix?

    • @TechGuides
      @TechGuides  4 роки тому

      If you upload at 1440p or 4K, you will get VP9, at 1080p any video is now AVC even from people with 2million subs

  • @EliteMonkeyzz
    @EliteMonkeyzz 4 роки тому

    Your last warzone fps settings is pretty outdated can you do a new one ?

  • @PatipanWongkleaw
    @PatipanWongkleaw 3 роки тому

    I don't get it why can you reach that speed with hdd.
    Even with parallel write, I would expect upto 5gbps.
    How can each hdd gets 2+ gbps???
    (I know sata cap at 6 or 10)
    Is it a special hdd or something?

    • @TechGuides
      @TechGuides  3 роки тому

      Data is first written to RAM and only then to the HDD's. Its also split across 2 drives all the time, essentially doubling the write speed

    • @jonmcclane4946
      @jonmcclane4946 2 роки тому

      @@TechGuides I tried using 6 drives on a mirror but I was still getting the same speed nowhere near 10GB, as for the ram it was not using anymore than normal. I am copying files to it now and it says 5% used 6GB. Would love to get my system running fast like that. Any ideads or help or new video on doing that.

  • @NetBandit70
    @NetBandit70 2 роки тому +1

    RAID Z2 made RAID 10 obsolete
    With RAID Z2 you can lose any 2 drives and still have your data.
    With RAID 10, if you lose both drives in a mirror, you lose data.

    • @in03
      @in03 2 роки тому +1

      There are plenty of reasons one might want to use one RAID type over another and redundancy is only one factor to consider. How fast does it need to be? If you lose a drive, can you afford a few days with decreased performance while the array resyncs?
      I run a database server at work on RAID 10 and a 144TB media server in RAID 6. Both have multiple offsite backups. The database is small and quick to restore from backup, so even if I lose the RAID, I can have it back in an hour or so. It's much more important for it to be fast than drive-failure tolerant.
      The media server is backed up onto slow LTO tape. Restoring it all would take weeks. Two drive redundancy was a priority. The motherboard on the 144TB server blew up last week after a power surge, even behind a capable UPS. Luckily the data was fine, but others without backups have not been so lucky...
      Never make the mistake of thinking drive redundancy is the only important consideration. Anything could fail, or even the building catch fire. RAID is not a backup solution.

  • @trumanhw
    @trumanhw 2 роки тому

    Something doesn't add up here. You're saying your drives W: 450MB/s each?
    I've do data recovery professionally; I've literally NEVER HEARD of a 300 MB/s HD.
    Let alone, 450 - 500MB/s .. sustained, with perfect 2x performance in a mirror.
    And yes, I've used ZFS for over 5 years, and have set up about 10 units for customers during that time.
    Every single one of them with an SFP+ card. I don't mean to poop on your parade, it's just something I've never seen spinning drives do.

    • @TechGuides
      @TechGuides  2 роки тому +1

      Huh sorry its been a while but when did I mention such individual wirte speeds? I think each drive tops out at about 220MB/s but the data is additionally striped and is thus written to two disk simultaneously with gives me write speeds of roughly 450MB/s. Also not the ZFS does some magic buffering with RAM so that I get the 1GB/s transfers. Did I mess it up when explaining?

  • @nourestani
    @nourestani 2 роки тому

    Next time trying to get hard drives with 520 bytes sectors

  • @MrAtomUniverse
    @MrAtomUniverse 3 роки тому

    I was told it's a myth that you need ECC Ram.....

    • @TechGuides
      @TechGuides  3 роки тому +1

      Definitely not. You can read up more on it here: louwrentius.com/please-use-zfs-with-ecc-memory.html or not, whatever you like

  • @ericneo2
    @ericneo2 2 роки тому

    Guess Linux/Ubuntu messed this up already, MISSING STEPS BELOW:
    10:14 after "zfs create rpool/data" "cd .." to the root directory then you can "sudo chown -R user:user data" as "sudo chown -R user:user rpool/data" will fail.
    For SMB "rpool/data" "/rpool/data" "/rpool/data/" "/data" and "data" will all fail, don't even bother save yourself 6 hours of troubleshooting...

  • @mwenn8136
    @mwenn8136 3 роки тому

    Did you just snap at me..