December 2, 20241 yr This is a Weird question and I just in a predicament until a new drive arrives. But is there a way to remove/ Zero out a drive so that the parity ignores it and supplies redundancy for the other drives? For Clarification, I had 2 drives Die in a single day and both Parity Drives are being used to emulate them. 1 Drive is empty and not being used currently, and the other was half full. I have moved all of my files off of the half full emulated drive that is being run off of parity using Unbalanced. The Half full Emulated drive is now completely empty. is there any way for the parity to ignore the drive/ see it as all 0 so incase another drive dies I have a parity ready for it? My expectations are low but I am just wondering if it is possible?
December 3, 20241 yr Community Expert this should work even on a failing drive untested... Understanding the Problem You had two drives fail, and both are being emulated by parity. One emulated drive is now empty after moving its contents. You want the parity system to "ignore" the empty drive so that the parity can provide redundancy for the remaining drives. Key Challenges Parity System Behavior: Unraid's parity does not "ignore" drives. It calculates parity based on all drives in the array, even if they are empty. Risk of Data Loss: Any direct manipulation, such as zeroing out a drive, must be done carefully to avoid damaging the parity for the rest of the drives. Possible Solutions 1. Mark the Drive as Zeroed Use a command like dd to write zeroes to the drive. This would effectively "zero out" the data on the drive. dd if=/dev/zero of=/dev/sdX bs=1M Replace /dev/sdX with the appropriate drive identifier for the empty emulated drive. This will overwrite the entire drive with zeroes. Caution: Ensure you are targeting the correct drive. A mistake here can lead to irrecoverable data loss. 2. Remove the Drive from the Array Stop the array. Go to the "Devices" section in Unraid. Unassign the empty drive. Start the array. Unraid should prompt to rebuild the parity without the drive. This method ensures the parity is recalculated for the remaining drives without the empty drive contributing to the parity data. 3. Emulate a Zeroed Drive Instead of physically zeroing the drive, you can simulate its absence by: Using the New Config tool in Unraid to create a new array configuration excluding the drive. Make sure to select the option to "Preserve current assignments." This will re-sync parity for the remaining drives without the need to physically zero out data. Best Approach Given your situation, the safest method is to use the New Config tool and recalculate parity without the empty drive. Physically zeroing out the drive introduces risks, especially if the drive is already failing. If you choose to use dd, double-check everything and consider running a parity check afterward to ensure array integrity. Additional Considerations Backup Parity Data: If possible, back up critical data before making changes. Monitor Drive Health: If the empty drive is showing signs of failure, remove it from the array completely. Wait for Replacement Drives: If time permits, wait for new drives to arrive and rebuild the array safely. * I Think it would be better to stop the array and unassign the disk
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.