this post was submitted on 19 May 2025
33 points (97.1% liked)

Selfhosted

46672 readers
672 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I'm trying to run a load of services and use TrueNAS Scale as the data storage for them. I have three 1 TB disks setup as RAIDZ1 - a single data pool. I've had to unplug the power a few times for various practical reasons and it seems like this setup simply cannot be relied on to function. Sometimes it's fine, sometimes it's not. I feel like I'm taking crazy pills here and cannot for the life of me figure out what I'm supposed to be doing.

I take a look at the storage dashboard and see "Unused disks: 3". Okay, let's add them back to my pool ("main"):

Add Disks To:

  • New Pool
  • Existing Pool

...except there's no pools listed under "existing pool". If I create a new one it just wipes the disks. That's no bloody good.

Thankfully I've yet to store any important data on them as I'm still in the testing phase. As far as I can see though, despite the disks being attached to the system by serial number, it gets confused and doesn't keep them through power disruptions.

Is it worth fannying about with TrueNAS? I feel like I might as well just bin ZFS and use an rsync-based backing up of data (I have several other disks, but only three that are the same size).

you are viewing a single comment's thread
view the rest of the comments
[–] Flamekebab@piefed.social 1 points 3 days ago (4 children)

The hard disks are on a separate power supply. The TrueNAS software is running on an old laptop so it effectively has UPS protection.

[–] bigredgiraffe@lemmy.world 3 points 3 days ago (3 children)

Okay so the disks aren’t also on UPS? That might actually be even worse than the whole thing getting turned off, ZFS is definitely not meant to be run on removable disks like that.

[–] Flamekebab@piefed.social 1 points 3 days ago (2 children)

Haha, yeah. It does make me wonder whether I should bin the whole TrueNAS approach entirely. It seems like a tremendous faff when I could just have the files mirrored to another disk as a backup.

[–] 4am@lemm.ee 1 points 3 days ago* (last edited 3 days ago) (1 children)

If you shut down the computer gracefully first before you power the disks off it should be ok more often than not, but you really should try to have everything on the same system so this can all be coordinated by the OS and the hardware.

As others have said, avoid powering the disks off before the OS has had a chance to shut down or your disks will NOT be in a recoverable state when everything comes back online.

I’m not even sure the setup you are describing would benefit at all from a different storage method, even “regular” writes could be in memory or controller buffers. External drives are not meant to have their power cut.

[–] Flamekebab@piefed.social 2 points 3 days ago

These are internal drives connected to a desktop PSU wired to a USB interface to connect to the laptop.