Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

All-SSD setup - How? (TRIM, Reliability, SSD lifespan...)

Featured Replies

Hello,

 

I recently started to "learn" and use unRAID (my use case is a very little fanless PC, used with 2 SSDs (quiet setup) to stream some contents on the local network, adguard home DNS, store some files/backup and so). And I love it, it's a lot more easy and quickly than managing an Ubuntu Server setup from scratch (docker, containers...) for example. Just install unRAID and done, start installing "Apps".

 

My problem is with the SSDs, I've learnt recently that unRAID doesn't recommend using SSDs on arrays because on arrays TRIM is disabled (and can’t be enabled) - that means the SSD TRIM command will never run, so speeds will go down on the future and probably garbage collection and NAND wear leveling made by the SSDs controller will start to move around current data + deleted non-TRIMed data, virtually like having the SSD full all times, decreasing heavily both SSDs lifespans (write amplification?)

 

I wouldn’t like that - SSDs that could last 8 years (for example) dying in 1-2 years because using a “bad setup”

 

So, what can I do? Any tips? I have seen someone recommending using both SSDs on a “pool” (what’s the difference/implications of using a pool instead of array? What the best format to use? Do TRIM enable itself on pools?) and a flash drive as array disk1 so UnRAID works and starts (doubt: but wouldn’t Docker container be running out of the flash drive?)

 

Doesn't the scheduler "TRIM" option then works on SSDs on array?

 

I’m a little bit lost, and accept all tips you have, better if I can improve without having to start from scratch (erasing everything)

 

I was tempted to have a parity disk, but currently I don't have it and wouldn't mind sacrificing it if it means SSDs can run well on the long term (TRIM?)

 

Thank you so much

Solved by JorgeB

  • Community Expert

Create a pool with them instead.

  • Community Expert

Something about using btrfs?  I know the mention here is as a pool, but would it not also work as array?

Just brainstorming options.

 

  • Community Expert
  • Solution

You can use btrfs or zfs, for 2 devices, and assuming you want redundancy, I would recommend a zfs mirror.

  • Author
2 hours ago, JorgeB said:

You can use btrfs or zfs, for 2 devices, and assuming you want redundancy, I would recommend a zfs mirror.

Great, thanks for the help. I just put the two 2TB SSDs in a Pool (2 slots, ZFS - mirror) - It also said "autotrim ON" - that's it? now trim is working? is there any way I can check it?

 

And now I suppose I have a "good" not compromised setup, yeah? Right now it's:

 

Device: 64GB Samsung Bar Flash Drive

 

Array: 1TB SSD with XFS (Docker containers basically - it's the internal SSD of the miniPC - I know it seems a bit of waste 1TB SSD for this, IDK)

 

Pool: 2x2TB SSD with ZFS mirror (files and data)

 

Thanks

  • Community Expert
1 hour ago, edwardhawitt said:

It also said "autotrim ON" - that's it? now trim is working?

Yes, but still recommend running the scheduled TRIM also, once a day, or once a week, depending on usage.

  • Author
19 minutes ago, JorgeB said:

Yes, but still recommend running the scheduled TRIM also, once a day, or once a week, depending on usage.

Perfect! I have put a schedule for TRIM weekly, hope it works OK (there is any logs that says it's working?)

 

Anyway, thanks a lot for the info and help

  • Community Expert
9 hours ago, edwardhawitt said:

there is any logs that says it's working?

heck the syslog after that day, it will show the TRIM activity

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.