December 11, 20241 yr I added a new drive to my encrypted unraid array fairly recently. However, I didn't notice until after it's been in use a bit that when it formatted and added the drive, it did not encrypt the new drive, even though the rest of the array is encrypted. So now one drive is hanging out there unencrypted, but partially filled with data, and already part of the parity data. What is the best way for me to fix this 😅 I'm not sure how this happened as it never asked me for filesystem when it added it. It just cleared it, then there was the checkbox for format drive. I feel like in that case it should match what the rest of the array is using, but it did not. Unraid 6.12.10
December 11, 20241 yr Community Expert defaultFsType="xfs" Unless you change that (Settings - Disk Settings) or manually set the disk to a different filesystem before format, unencrypted xfs will be used
December 11, 20241 yr Author 34 minutes ago, JorgeB said: defaultFsType="xfs" Unless you change that (Settings - Disk Settings) or manually set the disk to a different filesystem before format, unencrypted xfs will be used I guess that "makes sense".... I haven't added an additional drive in almost 5 years now, so I don't remember anything like that. UX wise it would have been nice if it had warned me that it intended to format to a different format than the rest of the array uses. Without such a message my natural assumption was it would match the current configuration. What's my best path for fixing this with the least amount of downtime? Is Unraid able to do cryptsetup-reencrypt to convert in maintenance mode? or do i need to painfully drain all data, take it out of the array, clear it, reformat it, and put it back in? If so, how can I minimize any parity rebuilds without losing protection on the array as they take >24 hours each
December 11, 20241 yr Community Expert Solution 21 minutes ago, starlightk7 said: or do i need to painfully drain all data, take it out of the array, clear it, reformat it, and put it back in? If so, how can I minimize any parity rebuilds without losing protection on the array as they take >24 hours each You need to copy data elsewhere; stop array; set disk to be encrypted; start array; format; and then copy back any data if needed. No need to use pre-clear or anything like that. And no parity rebuild would be required as parity is maintained across the steps I mentioned. you might also want to set the default format under Settings->Disk Settings to be encrypted so this situation does not happen again next time you add a drive.
December 12, 20241 yr Author 23 hours ago, itimpi said: You need to copy data elsewhere; stop array; set disk to be encrypted; start array; format; and then copy back any data if needed. No need to use pre-clear or anything like that. And no parity rebuild would be required as parity is maintained across the steps I mentioned. you might also want to set the default format under Settings->Disk Settings to be encrypted so this situation does not happen again next time you add a drive. I was able to correct this fairly painlessly. I thankfully had *just enough* space to copy off still, so I used unbalance to move everything off then reformatted. As you mentioned, following that sequence parity rebuild was not necessary. thank you very much.
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.