I’m currently experimenting with a modular setup for a portable lab and backup rig, and I’d love to tap into the collective wisdom here. Since Framework laptops give us fantastic high-speed USB4 / Thunderbolt 4 ports, I’ve been thinking about building a custom desktop storage expansion box rather than relying on standard commercial USB enclosures that lack proper passthrough support.
My idea is to take a PCIe enclosure (or eGPU chassis), drop in an internal 8-port SAS-SATA HBA controller operating in IT mode, and pass a couple of Mini-SAS to SATA breakout cables out to a 4-bay or 8-bay drive cage. The primary goal is to run a native ZFS pool or Unraid array directly from my Framework laptop when docked at home, getting raw drive SMART data and low-level disk access that standard USB-to-SATA bridges usually obscure or mess up.
Before I start ordering parts, I have a few technical concerns about stability over USB4 tunnels:
Thermal management: PCIe HBAs are designed for server chassis with high airflow. How are people keeping passively cooled 8-port cards from thermal throttling inside tight external PCIe enclosures?
Driver passthrough: Have any Linux users run into issues with mpt3sas or MegaRAID kernel drivers initializing properly over a hot-pluggable Thunderbolt interface upon wake/reconnect?
Power sequencing: Is it safer to power up the drive cage and HBA enclosure before connecting the USB4 cable to the laptop?
I know this is a bit niche compared to traditional eGPU setups, but the modular nature of Framework feels like the perfect pairing for a DIY storage workstation.
Has anyone tried running an 8-port host bus adapter over external PCIe with their Framework? I’d appreciate any hardware recommendations or pitfalls to avoid!
It is recommended to use ZFS with ECC enabled devices. I dont know if Framework Desktop has it .. the Pro chips do.
For stock heatsink from like, Supermicro, Inspur or the like. high density fins maximize surface, but restrict airflow. At 10 to 15W TDP, it gets very toasty. I have to heavily modified mine in a semi-restricted chassis.
For anyone using it in a case with ANY airflow, I recommend the Dell variety for the larger heatsink. They might go by. For you, probably get a 40mm.
Note that SAS2 cards run way less TDP, but you probably want sas3 for the newer firmware anyway.
Its totally fine. And actually, from my experience with SAS drives, a lot of them dont even spin up until a SAS reset (link train?) command is sent.
This is also probably the recommended way. Because it allow the device to initialize waiting for the host, rather than the host initialize and find a “device” thats not responding.
I recommend not poofing PCIe devices out of existence. I know ZFS wont care, nor the SAS card/drives. But would kernel be happy having it yoinked away, not too sure.
I do have a script (that may or may not work) that allow you to spin down select drives for removal. I only do it to the drive, though. the LSI 3008 remains firmly in the slot.
My experience may or may not apply to your wanted enclosure, but since you asked about USB4 tunnels, I can certainly tell you that their functioning is a hit-and-miss in Linux. I had a ticket on the subject with Framework’s support and did extensive testing under the guidance of one of their very knowledgeable guys.
It all depends on your distribution and kernel.
Ubuntu kernel patching makes it work almost fine regarding PCIe tunnels on USB4.
Arch, CachyOS and SystemRescue, which are both based on Arch, don’t work at all.
In the end I got an USB4 enclosure (Terramaster D4 SSD) to work just fine with 2 ZFS pools on 4 SSDs, using an Ubuntu kernel built under Gentoo.
I also have a Terramaster D6-320 enclosure with 6 SATA HDDs that work like a charm, with SMART and all, making 3 ZFS mirror pools, but not on USB4 (which would be a waste anyway, as SATA drives don’t need the 40Gbps bandwidth of USB4).
The description of your configuration seems to have the goal of using SATA drives.
Did you ever think about a Terramaster D6-320 or D9-320 instead? Or any other similar enclosure for SATA drives? There seems to be no shortage of those.
And one final thing: your post is all about USB4 enclosures on Framework laptops, while you post in the Framework Desktop forum. Not that the principle won’t be applicable to the Framework Desktop, but it looks like there’s some confusion on what you want or how you explain it.