Add a DAS to your NAS! USB Direct Attach Storage with ZFS

Sdílet
Vložit
  • čas přidán 12. 07. 2024
  • In this video, I explore the Terramaster D6-320 USB hard drive enclosure. Often called a 'DAS' (Direct Attach Storage), this type of device can be used to expand the storage on your existing home server setup, and I show how to setup and use it with a zfs pool in Proxmox. It's a good candidate to be a Proxmox Backup repository, extended file storage, or all of the storage in a mini-PC.
    Terramaster D6-320:
    www.terra-master.com/global/p...
    amzn.to/3RELZsX
    There are also smaller models with 2 and 4 bays which also use UAS (USB Attached SCSI), the D4-300 and D2-300 use the same USB architecture without an onboard RAID controller (perfect for ZFS).
    Support me on Ko-Fi if you enjoy my content and find it useful:
    ko-fi.com/apalrd
    Feel free to chat about my upcoming projects on Discord!
    / discord
    No blog post for this one, but here's my blog:
    www.apalrd.net
    Some links to products may be affiliate links, which may earn a commission for me.
    #homelab
  • Věda a technologie

Komentáře • 89

  • @HakAtIt
    @HakAtIt Před 9 měsíci +7

    I love that you have a 6 disk stripe with 3 different size and types ...
    At least you know the risk involved 😊

  • @saurabhabhishek5203
    @saurabhabhishek5203 Před 7 měsíci +4

    Thanks for making this no BS , info dense video. Thoroughly enjoyed it.

  • @johnredmond7085
    @johnredmond7085 Před 8 měsíci +7

    This is one of the greatest tech vids I’ve ever seen. I have no Freaking idea what just happened but I enjoyed watching. I was going to ask a question but I am way too embarrassed to ask here as Im a total noob . 🎉

  • @VierPuntNul
    @VierPuntNul Před 7 měsíci

    Explains exactly what I was looking for :) great video... thanks!

  • @FTLN
    @FTLN Před 9 měsíci +4

    Thanks for the great video once again Apalrd :) Also, thunderbolt 3/4 DAS with SATA controllers are pretty good too, and you don't have to worry about UAS. But they are a bit on the more expensive side.

    • @apalrdsadventures
      @apalrdsadventures  Před 9 měsíci +3

      I don't have much that supports Thunderbolt, so it would be hard for me to use, but yea they are totally a thing. Some with RAID controllers as well.

  • @blacktrout
    @blacktrout Před 9 měsíci +1

    See this is a cool storage set up. I think this might be purchased soon.

  • @hotrodhunk7389
    @hotrodhunk7389 Před 9 měsíci +9

    You are a great teacher. Not too fast not too slow. Just enough details and background information. Thanks 👍
    5:22 I just finished the comp TIA exam and man the USB standards are so messed up. I don't know what their marketing department was doing but really they could have simplified it so much.

  • @mikepatton7577
    @mikepatton7577 Před 2 měsíci

    Thank you, I was looking for this exact solution!

  • @cyclemoto8744
    @cyclemoto8744 Před 9 měsíci +1

    Cheers from OZ

  • @mistakek
    @mistakek Před 9 měsíci +8

    12:08, a video on using PBS to backup PVE would be awesome. I've read about this being possible, and it would be great if you could do a tutorial on it, along with a disaster recovery process.

  • @itssoaztek4592
    @itssoaztek4592 Před 9 měsíci +2

    You make great content. You are good at explaining things. Really like your versatility and focus on open source. One complaint though: when you talk into the wireless lave mic it's often difficult to clearly understand what you are saying (that is, at least for a foreigner like me). Many times I have to go back and listen again once or twice to finally get it. It's frustrating but because you make such great content it's still worth the effort. Sure, when I crank up the volume it's easier to understand you. But that makes the 'louder' parts in your speech quite unpleasant to listen to. Use of a sound/voice compressor in your audio pipeline might be an idea to improve sound quality. That's only my opinion and not meant to bash your channel. Keep up the good work. Can't wait for new uploads from you. Good stuff.

    • @apalrdsadventures
      @apalrdsadventures  Před 9 měsíci +3

      I'll try to get the audio levels better

    • @itssoaztek4592
      @itssoaztek4592 Před 9 měsíci +1

      @@apalrdsadventures Thank you, Apalrd! Much appreciated! There's probably several different ways to accomplish that goal, but with varying efficiency, complexity and cost. In the unlikely case you have a pile of money in your basement waiting to be spent on crazy expensive audio gear you may have a look at the new Rode Wireless Pro mics. They take away much guesswork and headaches regarding audio levels. Plus real time recording with time stamps.

  • @maxdiamond55
    @maxdiamond55 Před 9 měsíci

    Thanks for the video, it s inspired me to get the 4 drive version and some WD reds for my single board storage needs.

  • @ronsafranic5177
    @ronsafranic5177 Před 9 měsíci

    I hope you read comments from old videos! it looks like there is considerable room inside that box. I would love to see you take out the
    USB stuff! and install a Zima Blade (Box) with a HBA card. I use Unraid but you could do a second video just on the NAS Software you could install and the performance of each. Hope you see this and appreciate the idea for a cool video!

    • @apalrdsadventures
      @apalrdsadventures  Před 9 měsíci

      I do read comments on old videos, they all come to my comment feed.
      It looks like they are using a PCIe board edge connector between their backplane and the USB card, which is similar to their other units (so they probably have both a USB and NAS version of the host card for a single backplane). So I'd also need to replace the backplane with cables, or just use the USB board and connect it to the Zimaboard (or ZimaBlade...)

    • @ronsafranic5177
      @ronsafranic5177 Před 9 měsíci

      @@apalrdsadventures doing it both ways and showing the difference in speed would be cool as well?!

    • @Mr.Leeroy
      @Mr.Leeroy Před 9 měsíci

      HBA would suffocate in there, especially SAS3

    • @EduardoSantanaSeverino
      @EduardoSantanaSeverino Před 8 měsíci

      I was thinking the same thing. There is enough space inside, I know the ZimaBoard could fit in there, but what about going for a cheaper mini PC? something like the lenovo m720q. Lenovo Tiny is really cheap and powerful and quiet. it has USB3 and PCI E port as well.

    • @valentinedpg
      @valentinedpg Před 4 měsíci +1

      @@EduardoSantanaSeverino That's exactly what I'm planning..get a mini PC and stuf fit in there..maybe take the board out fo the mini PC case for more cooling..

  • @brettknoss486
    @brettknoss486 Před 9 měsíci

    I was thinking of using Quebec's OS, with a 6 cart dock, so that I could use VM and hot swap between tasks. If I did something storage heavy, I'd add a tape drive for backup and archiving.

  • @dktol56
    @dktol56 Před 9 měsíci +3

    I don't recall hearing what chipsets are used in this DAS for the SATA-USB bridge and USB hub. Can't find anything online either. ASMEDIA, maybe VIA? Hopefully, not JMICRON.

  • @MRPtech
    @MRPtech Před 9 měsíci

    Was using this kind of setup for about a year. Switch to stand alone Synology 4 bay NAS.
    DAS started to play up, sometimes after proxmox restart half of drives wasn't showup up. And one day ZFS crap it self with these drives.
    Moved to Synology NAS about 4 months ago and not one single issue.

    • @bufordmaddogtannen
      @bufordmaddogtannen Před 2 měsíci

      Most of the time the PSU is underspecced and the manufacturers rely on capacitors on the PCB where you connect the drives to compensate and allow the drives to spin up.
      When either the capacitors or the PSU start to fail you get all kind of issues, including data loss.

  • @eDoc2020
    @eDoc2020 Před 9 měsíci +12

    It doesn't matter for the usecase you showed but the block size of the pool you built on the command line was 8k. If you're storing VM images you probably want to use 4k blocks (ashift==12) which is the default in the PVE GUI. If the ZFS block size is greater than the guest filesystem's block size your deduplication won't work consistently.

    • @wyattarich
      @wyattarich Před 7 měsíci

      That's a great note. Appreciate your comment

  • @Felix-ve9hs
    @Felix-ve9hs Před 9 měsíci +3

    I think one use case of these DAS enclosures would be if you wanted to upgrade 6x HDDs in your NAS, but didn't have enough space to fit in the new ones.
    Would be interesting to know how well TrueNAS CORE / Scale handles the DAS enclosures.

    • @mdd1963
      @mdd1963 Před 8 měsíci

      He mentioned near the end of the video that TrueNAS did not 'play well' with passthru of USB drives all on the same path...

    • @adamm9557
      @adamm9557 Před 8 měsíci

      This is a real shame .. my fear with any NAS has always been if the NAS itself dies and I need to plug the drives into 'something' ASAP to use the data (like when the CPU on my old Synology died without warning) .. the DAS coupled with a micro PC running proxmox TrueNAS or something seems like the solution @@mdd1963

  • @KinoapparaTom
    @KinoapparaTom Před 4 měsíci

    hey! thanks for the video! does this DAS passthrough S.M.A.R.T. data? Are you able to see temps and other details of each drive inside Proxmox?

  • @marshalleq
    @marshalleq Před 5 měsíci

    I wouldn't be surprised to find out this breaks eventually. Every time /I've put ZFS on a device connected by USB ZFS kicks drives out of the pool and a scrub / rebuild etc is required. Takes a few days for that to happen though. I recall some ZFS USB bug about it but not much effort given it's not that common. Would be great if reliable though.

  • @llaumegui
    @llaumegui Před 7 měsíci

    Using UUIDs for disk identification in ZFS is a smart choice! It ensures consistent and reliable disk recognition, making our systems more stable and resilient to changes. A true game-changer for system robustness!

    • @Knirin
      @Knirin Před 4 měsíci +1

      ZFS uses its own internal metadata after you build the pool. It can handle drives being moved around just fine.

  • @dirtybrokkoli
    @dirtybrokkoli Před 7 měsíci +1

    Seems interesting, how is the noise level of this device? I live in a small flat and my partner would kill me if i my homelab stuff becomes the noiselevel of a busy street

  • @HappyfoxBiz
    @HappyfoxBiz Před měsícem

    Windows: "you cannot use that command" user sweats: "please?" windows: "no!"
    Linux: "you made a mistake, you didn't use proper punctuation and capitalisation..." user: *checks homework and correctly retypes* Linux: "you cannot do that..." user: "I am root!" *casts a -f command* Linux: "OK!"

  • @PierricDescamps
    @PierricDescamps Před 6 měsíci

    I'm looking for this either as a 4x or 6x 2.5inch only version, or as a 4x or 6x nvme version. I've seen a video about a PCI express 4x nvme adapter showing drives independently but I do like the idea of usb for easy connection onto smaller hardware like raspberries etc.

    • @apalrdsadventures
      @apalrdsadventures  Před 6 měsíci

      USB3 is not all that fast, compared to NVME or even SATA. So a few 2.5" SSDs will easily outperform the USB3 uplink.

  • @sergiop4856
    @sergiop4856 Před 9 měsíci

    Whats the power consumption with the drives spinned-down? Thanks!

  • @sliiiimjim
    @sliiiimjim Před 3 měsíci

    I purchased one of these after watching this video as it met my requirements, however I am getting a lot of logs in dmesg about resetting the USB handler, and the speeds are inconsistent. When doing a large transfer from it I will hit about 450MB/s for a few minutes then it drops to about 150MB/s and stays there. Wondered if you had the same experience ?

  • @mattiaippolito1625
    @mattiaippolito1625 Před 9 měsíci

    - Do i have any problem if the Truenas server is installed on bare metal hardware and not in a VM? Can I use this box as I would with a SAS enclosure?
    - In proxmox could I use this with chefs?

  • @zyghom
    @zyghom Před 2 měsíci

    Hi, I am thinking DAS for TrueNAS but you said there were problems.
    How about zfs on it as in this video, then TrueNAS as VM, and second disk to TrueNAS from this zfs? So not passing through usb devices but assigning space from this big pool on PVE as hdd in TrueNAS ?

  • @aussieexpat
    @aussieexpat Před dnem

    That power supply gives me the shivers... I'm very concerned about power quality with any USB based solution, but maybe i'm wrong?

  • @pixeldyne_mac
    @pixeldyne_mac Před 4 měsíci

    Sure it's risky but sometimes needed. I use single stripe for game installs. If something goes wrong, I can reinstall them.

  • @juicycs
    @juicycs Před 8 měsíci

    How can i learn more about nas im confused by all the info
    Like trunas unraid
    Different raids for the hard drives
    Docker
    Proxmox
    Is there a good channel or video to learn this stuff thank you!

  • @JJJJJ405
    @JJJJJ405 Před 9 měsíci +1

    Love your contents.
    Question, if you didn’t raid 0 these drives, and you wanted to use them as individual drives, is there a way to put the individual drives that are not being used into sleep for better longevity? I was wondering if this’d be possible in a usb multiple bay enclosure.

    • @apalrdsadventures
      @apalrdsadventures  Před 9 měsíci +1

      The normal Linux utilities *should* work for that (since it should just be a SATA command over UAS), but there's no explicit hardware spin down feature like the large units with staggered spin up.

  • @JosephFerrante
    @JosephFerrante Před 9 měsíci

    Would this work for bare metal Truenas zfs? Looking to provide as backend vm storage for proxmox cluster either via iscsi or nfs over 10gbe

    • @apalrdsadventures
      @apalrdsadventures  Před 9 měsíci

      It will, unless they have blocked usb disks entirely on their end.

  • @karloa7194
    @karloa7194 Před 9 měsíci +1

    Does this DAS auto power-on after the power outage?

  • @DavidAlsh
    @DavidAlsh Před 24 dny

    I have a bunch of drives of different sizes, speeds and ages that I want to use. Is there HDD pool configuration that I can use with some form of parity that I can use in Proxmox directly? I don't want to install a VM with unraid as I want to share the storage between containers but I am not too familiar with RIAD, ZFS and HDD pool configurations.
    .... Striped it is :P

    • @apalrdsadventures
      @apalrdsadventures  Před 24 dny

      in zfs, you can mix and match redundancy in the same pool. Effectively, zfs is a stripe of all of the vdevs, and the vdevs are one of {single disk, mirror, raidz1, raidz2, ...}.
      So ideally you can pair up drives in either mirrors or raidz1, and add that up.
      Remember though that you cannot remove vdevs from a pool, so if you get larger drives later and don't like the same arrangement then you have to create a new pool and copy the data over.

    • @DavidAlsh
      @DavidAlsh Před 24 dny

      @@apalrdsadventures thanks! I'm watching your other videos which are massively helpful too 😂
      This is for a non critical home NAS so redundancy is nice to have but not essential. More important is flexibility to add/remove drives.
      I was wondering if a simple LVM setup is good for my use case.

  • @tech-with-nd
    @tech-with-nd Před 9 měsíci

    true nas might not recognize such stuff. I've experienced in like this one, some times truenas sees only one of two disks, and even restarts and re-connections are not working. And as I understand true NAS does not even support USB-connected drives. That is a small part of knowledge after a short time of usage. Luckily I have not faced issues with corruption or lossing data as described plenty of times on each corner where mentioned disks via USB

    • @notrhj
      @notrhj Před 8 měsíci

      TrueNas and USB are not an enterprise solution but home lab is fine. Im running TrueNas scale bare metal not thru Proxmox and the USB support is OK. I’ve be running the Terramaster 6 drive DAS connected to an HP microserver gen 10 plus v2 that only has room for four disks. The DAS using USB 3 gives me another pool with spares (Raid v2) for replication without saturating the network to another server. The DAS usually stays connected at all times but if you want to disconnect it hot I would export the DAS ZFS and let the drive sync scan finish before pulling the plug.

  • @lucasew
    @lucasew Před 9 měsíci

    12:31 "so I did some testing off camera"

  • @vedranart
    @vedranart Před 9 měsíci

    Is there any DAS that can be connected to two PCs at the same time? :D

    • @apalrdsadventures
      @apalrdsadventures  Před 9 měsíci

      Not USB, but SAS supports redundant operation. It's purely failover redundant though, not for you to mount the filesystem in two places at once.

  • @GeoffSeeley
    @GeoffSeeley Před 9 měsíci

    How is the cooling on it?

  • @shephusted2714
    @shephusted2714 Před 9 měsíci

    the only thing better is 2 das - the price of used spinning rust is getting low enough now that everybody van have 10-20 tb pretty easily and affordably but also keep in mind nvme is down in price - many people will just want to go with a bunch of nvme - much much faster and no moving parts - i still contend people want/need dual nas with 40g dual port cards - when you have a lot of big data plus images then the faster networking is a huge plus

  • @Yandarval
    @Yandarval Před 9 měsíci +2

    Such a shame its priced around the 300 mark. Half that, and it would fly off the shelves.

  • @marc3793
    @marc3793 Před 9 měsíci

    When you say that usb passthrough to TrueNAS was not a good experience, what do you mean? Unreliable?
    Do you think in general drive passthrough doesn't work well or do you think it's related to this device, i.e. the 2 usb hubs used internally in the device?

    • @apalrdsadventures
      @apalrdsadventures  Před 9 měsíci +2

      Passing through the individual SATA devices at the SATA layer works fine. Passing through all of the USB devices at the USB layer caused the TrueNAS (SCALE) VM to crash qemu on the host. It seems like qemu is struggling to keep up with passing USB frames through the xhci emulation layer with the emulated chipset.

    • @marc3793
      @marc3793 Před 9 měsíci

      @apalrdsadventures ah okay thanks. This could be a problem for me then because all I have are Intel NUCs, so all of my drives were going to be over USB 🤨 (as they have lots of USB 10Gb ports and no PCIe)

    • @apalrdsadventures
      @apalrdsadventures  Před 9 měsíci +2

      Without the extra pass-through layer I was able to saturate the 10G link, and with zfs compression I was able to get quite a bit over 1000MB/s write speed, without any USB issues. It's also possible that it's a bug in either qemu, my hardware selection in qemu, or the old kernel that TrueNAS is still using, I can't be sure.

  • @NetBandit70
    @NetBandit70 Před 9 měsíci +17

    For the price of a $300 disk shelf, you could buy a proper case to expand and move your existing NAS into, plus all the necessary accessories. And you wouldn't be relying on rinky-dink USB connectors, or cheap brick power supplies. And if you didn't have a NAS, you could easily build one for that price (minus the hard drives).

    • @HTOP1982
      @HTOP1982 Před 9 měsíci +7

      I think you are missing the target audience for DAS.
      Some companies don't have the resources to deploy another NAS, or to build another NAS.
      A lot of use cases don't require a NAS, but just extra storage.
      Also sometimes you don't want to overload the network, so DAS works in all those instances, and takes very little time to deploy and understand.
      For instance per day I usually generate 1.2 TB of data that needs to be accessible for 6 months or so to me, but only 1Gb for everyone else. At the end I just push it to tape. Our network is only 1Gbps. So if I transfer it to the NAS I make everyone's life miserable, while via DAS I don't even think about it as an issue.

    • @HerrFreese
      @HerrFreese Před 9 měsíci +3

      I think @NetBandit70 meant buying a case in which to fit the components of an existing NAS plus the additional hard drives. In this case of expanding PBS Storage that may also be a valid solution. In other cases (i.e. expanding a compact NAS-Box) it may be not.
      I think it's interesting to see that there are such big USB cases for hard drives.

    • @juliansbrickcity5083
      @juliansbrickcity5083 Před 9 měsíci +3

      I just transplanted a Server from a 1U in a 100 buck 4U case that can hold 15 3.5" drives instead of 4.
      But expanding that further is a bit pricey where I live. The 24 bay solution would be 500 and the 36 bay case is around 700 bucks. Now I am looking into some sas JBOD shelves :}

    • @NetBandit70
      @NetBandit70 Před 9 měsíci +5

      @@juliansbrickcity5083 You have a link on that $100 15 drive case? Sounds really good!!!

  • @kymhaniford
    @kymhaniford Před 8 měsíci

    Just buy a 20TB HDD and be done with it. Way cheaper in the long run being only 1 HDD to power up instead of 6 and the built in USB hub in the DAS. Get the full bandwidth of the HDD when connected directly to the computer. People work out the pricing, running costs and extra complexity and use the KISS theory.

    • @rpm10k.
      @rpm10k. Před 7 měsíci +1

      Have you not heard of the word redundancy? There's a reason we don't go with one big drive.

    • @ThePsho
      @ThePsho Před 4 měsíci

      ​@@rpm10k.Exactly, and especially true for uses like Unraid. Your huge 20tb drive would essentially be your parity drive, so now you're buying another 20tb drive for your array. But to the above point, and in the Unraid scenario, putting all your eggs in one big basket is setting yourself up for one long ass rebuild.
      The sweet spot these days seems to be the 4-10tb range. Something like an 8tb parity and a bunch of 4 and 6tbs in the array. Grab a pair of 1tb SSDs for the cache and you're good to go.
      Then, if (when) a drive goes down, you're looking at hours of a rebuild instead of potentially days.

  • @oscarcharliezulu
    @oscarcharliezulu Před 6 měsíci

    Such a pity it uses a power brick. Could have been so much neater and I’m on a mission to get rid of anything that doesn’t power off mains or USB.

  • @ayporos
    @ayporos Před 9 měsíci

    all that empty space in the side.. and they couldn't just internalize the PSU.
    Hell, you could even just shove that AC/DC adapter in the side, it looks like it'd fit.
    What a shame.

    • @apalrdsadventures
      @apalrdsadventures  Před 9 měsíci

      They use the same case for a NAS, which has a bigger CPU board inside

  • @ValhalQcoholic
    @ValhalQcoholic Před 6 měsíci

    sik RCA audio gen, brah

  • @thewhitefalcon8539
    @thewhitefalcon8539 Před 9 měsíci

    5:45 don't rotate drives like that while they are spinning!

  • @jayt-ph1xd
    @jayt-ph1xd Před 9 měsíci

    Increase your voice volume.

    • @zxcvb_bvcxz
      @zxcvb_bvcxz Před 9 měsíci +2

      Turn your volume up

    • @jayt-ph1xd
      @jayt-ph1xd Před 9 měsíci

      @@zxcvb_bvcxz it's full. Other tech channels are fine with mobile phone speakers. Not this channel. I am always looking for earphones with his videos.

  • @peteradshead2383
    @peteradshead2383 Před 6 měsíci

    I'm looking to add more storage to my to proxmox home server on a asrock mini x300 , 5900g , 64gb , limited on sata ports but it does have 2 usb3.2 gen 2 or what ever they are calling it this week ?
    I did get a usb3 to 4 x 2.5 dock , but it passes the drives this :-
    usb-SABRENT_DISK01_DB98765432146-0:0
    usb-SABRENT_DISK02_DB98765432146-0:1
    Which you would think is brilliant , but if you add or remove a drive it reorders them , so forcing a resilver just by adding a new drive , so a 3 drive raid and remove a drive and it's dead .
    Sound like passing the full drive and it's disk/by-id should solve the problem .