当前位置:网站首页>[server data recovery] data recovery case of RAID5 crash of buddy storage

[server data recovery] data recovery case of RAID5 crash of buddy storage

2022-06-11 04:12:00 North Asia data recovery

Server storage failure :


Built in the same friend store raid5 The disk array crashed for an unknown reason and could not be started ,raid5 All virtual machines in are lost , among 3 The data in the virtual machine is particularly important , The administrator contacted our data recovery center to ask for this 3 Virtual machines for data recovery .


Server storage data recovery process :


1、 Analyze the storage infrastructure .


Through communication with the administrator and raid Analysis of , Understand the underlying structure of fault storage : Multiple physical disks form a storage pool and are divided into multiple disks lun, Data recovery is required lun1,lun1 Including that 3 Virtual machines . As shown in the figure below :


Storage structure

 

2、 restructuring raid.


When analyzing and reorganizing the array , The data recovery engineer finds that there are raid5 defect 2 Block hard disk , The hot spare has been enabled .( Restore the process in which the failure occurred : After the first hard disk is disconnected, the system starts the hot spare disk for replacement , When the second hard disk is disconnected raid5 In a degraded state , The third hard disk is disconnected, resulting in raid Array crash .) In this case, the data of the lost disk cannot be directly obtained through verification , Only full disks of the same size can be used 0 Reorganize the image ( Due to the dependence on empty images raid The structure of the file system will be seriously damaged , It is equivalent to that each strip will be missing two blocks of data , Therefore, unless special circumstances do not recommend such operation ).


The reconstruction raid

 

3、 Through reorganization raid Array extraction LUN. Through the further analysis of the storage structure, we get the result of the storage partition MAP block , To each LUN The data block pointer of . North Asia data recovery engineer writes data extraction program LUN debris . After extraction, the fragments are spliced , Complete composition LUN.


extract LUN

 

4、 export LUN And try to start , Because the operating system is damaged , Virtual machine failed to start .


5、 Extract the files in the virtual machine . Because the virtual machine could not start , Only files in the virtual machine can be extracted , But most of the files are seriously damaged , Only a few files are available , We have to continue to work out other data recovery schemes .


6、 Extract data by analyzing database pages . The virtual machine in this case has mysql database , You can use the particularity of the underlying storage of the database to scan data pages , Extract the data .( Both the parent disk and the snapshot file are damaged , The regular merge operation cannot complete the snapshot merge , Use the... Independently developed by North Asia VMFS The snapshot merging program performs snapshot merging .) The screenshot of the data recovery process is as follows :

 

7、 obtain mysql Data page and analyze . according to mysql Data page features scan and export data pages (innodb The engine can use this scheme ;myisam Because no “ Data pages ” The concept , So this solution is not available ), Analyze the system table to obtain the information of each user table , According to the... Of each table id Split the data page .


8、 Extract table structure 、 Extract record . Because the database has been used for a long time , The table structure has also changed many times , In addition, some data of the system table is lost after the storage is damaged , There is a lot of resistance in the record extraction process . First, get the table structure of each table in the original version of the database : The parent disk before the snapshot was merged because it was written earlier , Use the first drop disk for verification to obtain the complete data of this file , Then extract the table structure of each table in the database , After that, the administrator provides the latest version of database table creation script . Two groups of different table structures are used to extract data records and import them into the recovery environment mysql In the database , Then eliminate the garbled data caused by the change of table structure in each table , Finally, the two sets of data are exported as .sql file .


9、 data validation . Because the database table structures of the two versions are different , So the administrator contacts the application engineer for debugging . Import the platform after debugging , Platform debugging succeeded , The data recovery is completed .

原网站

版权声明
本文为[North Asia data recovery]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206110354566696.html