当前位置:网站首页>Storage crash MySQL database recovery case
Storage crash MySQL database recovery case
2022-06-24 02:55:00 【North Asia data security and rescue】
RAID5 disk array , The storage suddenly crashes and cannot be started due to unknown reasons ,RAID5 All virtual machines in the array are lost , among 3 Virtual machines are important data , Need to focus on this 3 Virtual machines for data recovery .
The customer described the fault process as : 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 . Let's take a look at how North Asia engineers operate !
One 、 Analyze the storage bottom hierarchy
Engineers communicate with customers and RAID The analysis of array shows that the underlying structure of fault storage is a storage pool composed of several physical disks , Divided into several LUN, Data recovery is required LUN1, It includes the key recovery 3 Virtual machines .
When the array is analyzed and reorganized, it is found that there are RAID5 Array common missing 2 Block hard disk , The hot spare has been enabled . In this case, the data of the lost disk cannot be directly obtained through verification , Therefore, you can only use full disks of the same size 0 Reorganize the image .
Two 、 Through reorganization RAID Array extraction LUN
Through the further analysis of the storage structure, we can get the storage partition MAP block , And then for each LUN The data block pointer of , By writing a data extraction program 、 extract LUN debris . After extraction, the fragments are spliced , Complete composition LUN.
3、 ... and 、 Extract the files in the virtual machine .
According to the present situation, the Engineer , This failure condition starts after exporting the virtual machine , The virtual machine should fail to start because the operating system is damaged . After exporting the virtual machine, try to start , Same as expected , The operating system is damaged and the virtual machine cannot be started . 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 .
Four 、 Extract data by analyzing database pages
The virtual machine for this data recovery contains mysql database , You can use the particularity of the underlying storage of the database to scan data pages , Extract the data .( There is an episode in this step , Virtual machine enable snapshot , When both the parent disk and the snapshot file are damaged, the normal merge operation cannot be completed , Use the company's independent research and development VMFS The snapshot merging program performs snapshot merging .)
5、 ... and 、 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 is therefore 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 .
6、 ... and 、 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 is lost after the system table 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 client provided the latest version of the 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 .
7、 ... and 、 data validation
Because the database table structures of the two versions are different , So I contacted the application engineer of the client for debugging . Import the platform after debugging , Platform debugging succeeded , This data recovery is successful .
边栏推荐
- Cloud function pressure measurement based on wechat applet
- Start tcapulusdb process
- Is the IP of the fortress machine the IP of the server? How to deploy the fortress machine
- Data backup is required for manual upgrade of WordPress website program
- 2022-2028 global tungsten copper alloy industry research and trend analysis report
- [51nod] 2653 section XOR
- What about foreign trade companies? Is this another difficult year?
- How to access easynvr management platform through web pages without data?
- Solution to session problem of missing laravel jump page
- Vscode common shortcut keys, updating
猜你喜欢

Permission maintenance topic: domain controller permission maintenance

2022-2028 global aircraft audio control panel system industry research and trend analysis report

2022-2028 global anti counterfeiting label industry research and trend analysis report

2022-2028 Global Industry Survey and trend analysis report on portable pressure monitors for wards

2022-2028 global genome editing mutation detection kit industry survey and trend analysis report
Cloudpods golang practice
![[51nod] 3216 Awards](/img/94/fdb32434d1343040d711c76568b281.jpg)
[51nod] 3216 Awards

2022-2028 global portable two-way radio equipment industry research and trend analysis report
![[51nod] 2106 an odd number times](/img/af/59b441420aa4f12fd50f5062a83fae.jpg)
[51nod] 2106 an odd number times

2022-2028 global aircraft wireless intercom system industry research and trend analysis report
随机推荐
What are the performance characteristics of cloud desktop? How to choose the most cost-effective cloud desktop server?
Internal reasons for cloud desktop unable to connect to the server and external reasons for cloud desktop connection failure
PHP verify mailbox format
More than 10 million Android users installed a fraud app and doubled the number of blackmail attacks in the UK | global network security hotspot
Crawler series: using API
How to log in the remote server of Fortress machine working principle of Fortress machine
How much does it cost to rent a cloud game server? Which cloud game server is more reliable?
CPS November additional incentive rules
2022-2028 global aircraft front wheel steering system industry research and trend analysis report
Using the database middleware MYCAT to realize read-write separation (dual master and dual slave)
Production line motor monitoring and maintenance - application case of 5g edge calculation for paperboard line motor maintenance
Easycvr cannot be played when cascaded to the superior platform. Troubleshooting
How to strengthen prison security measures? Technologies you can't imagine
Hook principle
[tcapulusdb knowledge base] manually view the online operation of tcapulusdb
2022-2028 global marine wet exhaust hose industry research and trend analysis report
Tornado code for file download
Iranian gas station paralyzed by cyber attack, babuk blackmail software source code leaked | global network security hotspot
Go language core 36 lecture (go language advanced technology 8) -- learning notes
2022-2028 global pilot night vision goggle industry research and trend analysis report