I'd hit TrueNAS forums with that. They should be able to help you diagnose what's up. TrueNAS is pretty reliable, I haven't heard of anything like that happening before.
Selfhosted
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:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
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.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
I'll give it a shot. I was asking here in case it was a common thing that everyone else knows about (i.e. "Oh you're running TrueNAS without a UPS? That's a non starter, everyone knows that".
Have been using TrueNAS for 13+ years since the FreeNAS 9.x days. Can attest to its bulletproof-ness in my case.
Would second asking in the iX forums. I've managed to get replication help directly from iX staff before when using the forum. You shouldn't have this issue, and you will find answers.
I've moved my disks to a completely new machine with fresh install and then import my config, reboot and everything is as it was. I've also done the same without my config and imported the pool with no problems, just need to recreate shares, and any jails (a feature which I no longer use) would need to be reconfigured to be 100% functional.
My little dumpster dive NAS made of second hand second rate hardware cab withstand power losses without hitch. You don't need a UPS.
How strange! Been using truenas scale for a couple years now and this is the first I'm hearing about this issue. You have to re add your disks to the pool each time you power cycle??
It seems to either be completely fine and a power cycle makes no difference - or it loses the whole structure. I don't know how I'm supposed to pull the disks back in. It doesn't seem to detect that they're already setup as part of a pool.
The pool I've created doesn't vanish but it seems my only option for it is "manage devices" which takes me to the "Add VDEVs to the Pool" menu where my three disks show up as unassigned. The only presented option seems to be to wipe them in order to add them back to the pool.
Trying to search for this stuff doesn't seem to give me anything useful. I don't know what the intended behaviour is and what it is that I'm doing wrong. I would expect what should happen is that the disks come back online and get automatically added back to the pool again but no, apparently not?
Since ZFS keeps the config info on disk, I'm with another commenter wondering about your disk health.
Check the SMART data for each drive.
Wild shot here, but are you sure your disks are healthy? They might have errors that could throw off truenas
Okay so when you say “unplug the power” do you mean shut it down first or just pull the plug? The latter is a great way to corrupt your storage pools as ZFS uses memory for read and write cache etc by default. You definitely need to do a graceful shutdown especially if there is data that was recently written to disk, that’s why a UPS is so recommended. That said you can usually import an existing pool when that happens, I think there is a UI menu for it now.
The hard disks are on a separate power supply. The TrueNAS software is running on an old laptop so it effectively has UPS protection.
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.
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.
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.
These are internal drives connected to a desktop PSU wired to a USB interface to connect to the laptop.
What's in the logs? What happens when you use zpool at the command line?
Which logs specifically should I be checking?
zpool doesn't see any pools to import. The system does see the disks but I'm not sure why the disks aren't being checked for pools.
I'm not familiar with truenas, but I imagine it must expose system logs. I recall that scale is based on Linux, so dmesg and journalctl should be available at a minimum.