Truenas Scale with USB connected hard drives like Sabarent 5/10 drive unit

My Truenas is becoming more and more unstable. I never quite know when it will be working and I get frequent unreadable segment errors on my boot drives which I’ve never figured out how to get rid of. Part of the issue is that I have to use USB boot drives as my box will not boot from its SSD drives and if I use the hard drives for boot it will severely restrict my storage (Truenas is running on a QNAP box).

I’m getting fed up with this and thought I would perhaps try something different but along the way I found a Sabarent disk encloseure that allows attaching up to 5 disks via USBC at 10gbps which would be plenty for my needs. Has anyone tried this? And would it be possible to move the array out of the QNAP box and into this box without needing to reformat etc? i.e. how sensitive is the array to disk order etc.

ZFS does not care about drive order.
But a multi-drive USB enclosure is almost certainly a bad idea. USB is not a stable connection, and anything involving SATA port multipliers is incompatible with ZFS.

Suitable enclosure are SAS enclosures, connected to a LSI HBA in the NAS.

1 Like

Booting from USB(s) can be a bad idea, they’ll probably burn out quickly. Would recommend trying to figure out why it won’t boot from an SSD first, or use a USB<->SATA adapter to avoid burning out your boot drive.

I can’t say I’d recommend using USB/Thunderbolt attached storage, you might get it to work but SATA multipliers are not officially supported and there have historically been a lot of problems with them :). I’ve had luck in the past when I was first starting out (albeit with a PCIe SATA multiplier), but YMMV.

See: Multiply your problems with SATA Port Multipliers and cheap SATA controllers | TrueNAS Community & Why you should avoid USB attached drives for data pool disks | TrueNAS Community

1 Like

@tre4B

If you value your data and USB boot is your only option, use a SSD with higher P/E cycles in an external USB enclosure, rather than cheap inexpensive USB thumb drives.

Personally, I replaced the QNAP Apacer 512MB eUSB DOM with a 16GB SLC eUSB DOM

1 Like
  1. There is a BIG difference between a USB FLASH drive and a USB SSD drive. If you use a flash drive for boot you are asking for trouble. Switch to a USB SSD boot drive ASAP. I use an SSK USB SSD. (I also have swap and an apps pool on the same drive.)

  2. Make sure that you run a scrub on all your pools on a regular basis. This will pick up disk errors at an early stage.

  3. If you are using a USB SSD drive, it will likely support SMART - run SMART short / long tests on a regular basis.

  4. I have no idea what technical issues you may face using an external disk rack connected by USB - but I suspect a fair amount. Some potential issues I have heard about:

    • Disk serials not readable - significant issue with ZFS.
    • SMART not working
    • Disk write sequence not guaranteed - may create corruption on a journalled file system like ZFS.
    • Lack of parallelism / bandwidth constraint.
1 Like

Thank you all for your replies

The boot drives are both M2 drives in a usb container. I did that as I thought it would be more likely to be stable. Something in the QNAP PCle stops the drives it holds from being seen as boot drives. I tried everything I could find before resulting to the USB SSDs

It sounds like adding an enclosure of this type will be have if it even works. I might have to bring forward building a suitable server of some sort. I did run SMART for a while but thought that might have been the cause of the errors so turned it off again. When I get the errors its not only in the boot disks other disks see it as well.