timepants Posted December 13, 2019 Share Posted December 13, 2019 I have 1 parity drive, and 2 storage drives on my server. 1 of the storage drives stopped being recognized by unraid. I could not get it recognized even after reformatting it in unraid. I tested it on a different machine and had no issues. Eventually after removing and re-adding it to unraid multiple times, it recognized it and triggered a data rebuild. 12 hours later, the array is working fine, but it's missing all the data from the disk. I take it that somehow removing it deleted the contents from the parity disk? Any way to get the data back or is it too late for that? Quote Link to comment
itimpi Posted December 13, 2019 Share Posted December 13, 2019 You said that you formatted it? Doing so would write an empty file system to the disk and update parity to reflect this. If the disk was being emulated the format would do this to the emulated disk. Whenever a rebuild happens it will restore exactly what can be seen on the emulated disk. Quote Link to comment
strike Posted December 13, 2019 Share Posted December 13, 2019 6 minutes ago, timepants said: Any way to get the data back or is it too late for that? You best bet is to use something like UFS Explorer to try to recover your data. Also never format a drive unless you intend to empty the drive. Quote Link to comment
timepants Posted December 14, 2019 Author Share Posted December 14, 2019 1 hour ago, itimpi said: You said that you formatted it? Doing so would write an empty file system to the disk and update parity to reflect this. If the disk was being emulated the format would do this to the emulated disk. Whenever a rebuild happens it will restore exactly what can be seen on the emulated disk. The error I was getting with the drive was "Unmountable: Unsupported partition layout". Based on what I read online, stopping the array and reformatting it was what I thought would fix it. If this were to happen again, what exactly should I do to prevent data loss? Quote Link to comment
Squid Posted December 14, 2019 Share Posted December 14, 2019 35 minutes ago, timepants said: If this were to happen again, what exactly should I do to prevent data loss? https://wiki.unraid.net/Check_Disk_Filesystems And ask for help here. Quote Link to comment
timepants Posted December 14, 2019 Author Share Posted December 14, 2019 51 minutes ago, Squid said: https://wiki.unraid.net/Check_Disk_Filesystems And ask for help here. I don't see anything on there specifically mentioning a drive showing as unsupported. Would xfs_repair apply in this case? Quote Link to comment
Squid Posted December 14, 2019 Share Posted December 14, 2019 It's the first thing you'd try. Formatting would always be the absolute last thing. Quote Link to comment
Recommended Posts
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.