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.

New RAID1 pool never actually encrypting

Featured Replies

TL;DR 

  • new RAID1 pool created. No partitions.
  • `btrfs encrypted` selected as format, applied. No formatting happened prior to doing this.
  • drives formatted *after* setting btrfs encrypted.

Reference docs used after the first try failed (I've gone through this multiple times thinking I missed a step)

The system has been rebooted. First try, within an hour of creating the pool. Second time after a long wait (24h I think?)

The pool remains on "Drive to be encrypted" with an orange padlock icon (screenshot attached for reference). The first time I rebuilt the cache I forgot about setting the format and saw a different version of this icon (shackle swing left of the body, vs over it).

 

Longer version

Due to a power loss, UPS sent server into graceful shutdown. On the first boot after, two of the four 2TB ssds in a RAID10 pool were missing, and seem to be completely dead - no system recognizes them at all. That's a different saga, as they're the two WD Red SA500; Crucial MX500 drives are fine. But... I seem to have had the WDs in the same slot in the array (or I made mistakes) as nothing I did allowed it to be recovered. Data backup/recovery went fine so no real loss other than time there (and wondering why I bothered with the mirror set at all). However, as part of this I did end up rebuilding the pool with just a RAID1 on the pair of 2TB still working.

 

I've migrated from unencrypted to encrypted drives in the past, and even did a rebuild from RAID1 to RAID10. These all start with a new pool on emptied drives (no partitions etc). I've gone through this process multiple times and it's always worked. This time around, it doesn't. What am I missing?

 

Diagnostics also attached in case those are helpful.

screenshot-to-be-encrypted.png

diagnostics-20250428-1059.zip

Solved by JorgeB

  • Community Expert

due to the shutdown and encrypted. the encryption key was half processed and lossed.

you may need to reboot into a live distro like ubunutu run disks and reformat the drives to be empty raw

 

then launch unraid and select teh btrfs encrypted...

 

when starting the array it will prompt at the bottom to format and you should be presented with a pasphrase to set a unlock...

https://docs.unraid.net/unraid-os/manual/security/data-encryption/

 

 

 

  • Author

I can try clearing externally. I thought doing so in unraid would do the trick. Thanks for the suggestion.

 

The other encrypted drives are all still working/decrypting fine.

  • Community Expert
  • Solution

Do you have a script or something, deleting the encryption key after array start?

  • Author
3 hours ago, JorgeB said:

Do you have a script or something, deleting the encryption key after array start?

Ooh, yes! That actually seems rather likely the cause. Just need to find a minute to babysit a reboot. Can't believe it didn't occur to me.

  • Author

Finally found time to start fresh and indeed, the problem was a missing keyfile *at the time of format* - simple and obvious in hindsight but in the heat of frustration over hardware failed suspiciously and for no apparent reason, that clear view is always tough to find. Appreciate the responses and the point in the right direction. Simply rebooting w/o deleting the keyfile on boot doesn't encrypt an already-formatted drive though - hoped it might since it was formatted understanding it was to be encrypted, but no go.

Edited by _cjd_

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.