R-Studio enables you to recover data from a failed RAID by creating a virtual RAID. Once a virtual RAID is mounted, R-Studio can recover data from the volume using the same powerful data recovery technology that is used on other disks and volumes. However, the challenge lies in constructing a valid virtual RAID from its constituent disks. Although you may have the correct disks (either physical drives or images) for the RAID, you may not immediately know the parameters for the RAID volume being recovered.
Choosing the correct RAID parameters is crucial to successfully mounting the virtual RAID, and therefore it is essential to a successful RAID data recovery. Oftentimes, RAID parameters may be ambiguous or completely unknown. There are some methods for manually finding RAID parameters (see the article "Finding RAID Parameters"), but manual RAID parameter detection requires a good understanding of RAID technology, file system features and other technical concepts. This makes finding RAID parameters very challenging, even for professional R-Studio users.
To help with this task, R-Studio has introduced its own unique technology for automatic RAID parameter detection. Using it, R-Studio can detect RAID parameters for any file system on a RAID volume, even if the RAID parameters are completely unknown to the user. Utilizing this technology does not require technical expertise about RAID volumes, but understanding a few key software principles about R-Studio's RAID parameter detection will greatly increase your chances of a successful RAID data recovery.
In this article, we will cover a few general notes about using R-Studio's automatic RAID detection. Then, we will illustrate these points by walking through an example operation. Lastly, we will address a few additional steps that can be performed to determine RAID configurations for complex data recovery scenarios.
General Notes Regardless of the data recovery scenario, a few key points should be observed before attempting to automatically detect RAID parameters.
If necessary, the RAID parameter detection operation may be repeated several times.
Basic Automatic RAID Parameter Detection
This example illustrates an automatic RAID parameter detection using a simple case. For a scenario like this one, the process is easy and straightforward.
These steps presume a basic familiarity with R-Studio's functionality. For further information or guidance, refer to the online R-Studio Help documentation.
1. Create a virtual RAID object and add its objects to it. Disregard the disk order, RAID type, block size, etc. Then, click the Auto Detect button.
Fig.1. RAID components Click image to enlarge
2. R-Studio will start the automatic detection process, showing its progress. When it finishes, the RAID Parameters Detection - Completed dialog box will show the results.
Fig.2. Detected RAID layouts Click image to enlarge
R-Studio will automatically select the best variant found.
Please note that in some unusual cases, there may be a difference between the initial and final detected offsets. This is a normal situation and does not affect RAID parameter detection.
Fig.3. Difference between the initial and final detected offsets Click image to enlarge
3. Click the Apply button on the RAID Parameters Detection - Completed dialog box, and the selected RAID layout will be applied to the virtual RAID.
Fig.4. Re-constructed RAID layout Click image to enlarge
4. Preview files to verify the correct parameters were detected. If a valid file system is detected on the RAID, R-Studio will show it. To verify that the correct RAID parameters were detected, you can open the volume and preview some of the files.
Fig.5. Previewed file on a correctly re-constructed RAID Click image to enlarge
Next Steps: What to do if R-Studio cannot detect RAID parameters after the first attempt
There are a number of reasons why R-Studio may not detect RAID parameters correctly after the first attempt. In some cases, the data may be damaged too heavily for automatic RAID parameter detection to be possible. But if the data is more or less intact, there are a few techniques that may help R-Studio detect the correct parameters.
Scan the RAID
Scanning the Virtual Block RAID may help when R-Studio detects apparently correct RAID parameters, but cannot find a valid file system on the detected RAID. This is especially helpful when the space on the RAID components before the offset is filled with 0s. In this case, R-Studio might detect the offset incorrectly for the first time.
Fig.6. Incorrectly found offset for the RAID Click image to enlarge
When this occurs, R-Studio may not find a valid file system on the RAID. The Virtual Block RAID volume will appear in the Drives pane, but there will be no detected file systems beneath it.
Fig.7. No detected file systems Click image to enlarge
In this case, the file system can be found by scanning the RAID. Select the Virtual Block RAID item and click Scan. The detected file systems will be shown beneath the Virtual Block RAID disk.
Fig.8. Detected file system after RAID scan Click image to enlarge
Change RAID Detection Parameters The default RAID detection parameters are calibrated to deliver the most reliable results for the widest range of cases. There are two advanced parameters that can be adjusted as needed: "Offset search performance" and "RAID layout search performance". Adjusting these lowers the threshold for the found offsets or found RAID layouts that are displayed in the results. By default, only the results most likely to be the correct parameters are shown. However, for more complex RAID layouts (for example, RAID 6), the default parameters may filter out the correct offsets or RAID layouts. You can expand the results displayed by decreasing the "Offset search performance" and "RAID layout search performance" parameters by moving the slider toward the "fast" setting.
In the figure below, the default settings were used, and no offsets were detected.
Fig.9. No offsets detected with the default detection parameters Click image to enlarge
After decreasing the "Offset search performance" parameter in the Advanced Options pane and detecting again, the correct offset is found.
Fig.10. A correct offset is detected when the "Offset search performance" parameter is decreased Click image to enlarge
Similarly, the "RAID layouts search performance" parameter can be decreased to find more RAID layouts.
Note that the default settings should be attempted first. For less complex RAID layouts, decreasing either of these settings will display too many results, making determining the correct layout more time consuming.
Select another offset and RAID layout manually This may help when the RAID data is damaged to the point that none of the above steps yield successful results.
Starting with the offset with the highest number of hits, manually select the offset and repeat the detection. Then, manually select a RAID layout with the highest probability. Continue this process of elimination until the correct RAID parameters are found.
Conclusion Recovering data from a failed RAID is a challenge. Detecting the correct RAID parameters is key to a successful recovery. The absolute best case scenario is one where the previous RAID configuration was stored or recorded prior to the crash. Barring that, using R-Studio's built-in automatic RAID parameter detection technology is the next best course of action. R-Studio's automatic RAID parameter detection works with very high reliability for simple cases, and for more complex situations, can be used as a powerful tool for determining the correct RAID offset and RAID layout.