当前位置:网站首页>Mysql database recovery case sharing
Mysql database recovery case sharing
2022-06-24 07:41:00 【North Asia data security and rescue】
The case shared this time is about the recovery of stored data , On storage RAID The crash caused the storage to fail to start . Store internal common 6 More than virtual machines , among LINUX virtual machine 3 Important data for customers . The engineer preliminarily analyzed that the storage structure is that all physical disks are in one storage pool , The storage pool is divided into several LUN,LUN1 yes vmfs volume , Three stations LINUX The virtual machine is also in this . 1、 restructuring RAID During the reorganization process, Ben RAID5 defect 2 Block plate ( The hot spare disk replaces the first drop disk after the drop , After that, another disk dropped to make RAID5 In a degraded state . Finally, the disc was scratched when the third disc was dropped RAID collapse ), The data of the lost disk cannot be obtained directly through verification , Therefore, you can only use full disks of the same size 0 Reorganize the image ( This method can only be used in emergency situations , Because it depends on empty images RAID The file system structure will be seriously damaged , It is equivalent to that each strip will be missing two blocks of data ). 2、 extract LUN Analyze the storage structure , Gets the of the storage partition MAP block . Find MAP After the block is parsed, each LUN Data block pointer for , Write a data extraction program to extract LUN debris . After extraction, the fragments are spliced , Complete composition LUN. export LUN All virtual machines in the , Try to start . After exporting the virtual machine, try to start , Same as expected , The operating system is damaged and the virtual machine cannot be started . 3、 Extract the files in the virtual machine When the virtual machine fails to start, you can only take the second place , Extract the files in the virtual machine . Test after taking out the file , Found that most of the files were corrupted , Only a few small files can be opened . After communicating with the customer, I learned that there are... In the virtual machine MYSQL database , Because of the particularity of the underlying storage of the database , Data can be extracted by scanning data pages . After this virtual machine is found, the virtual machine is found to enable snapshot , When both the parent disk and the snapshot file are damaged, the normal merge operation cannot be completed , Using independent research and development of North Asia VMFS The snapshot merging program performs snapshot merging . 4、 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 . 5、 Extract table structure 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 . Extract record : 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 . 6、 Data recovery results 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 , verified , The data can be recovered successfully .
边栏推荐
- Learning to use BACnet gateway of building control system is not so difficult
- A penetration test of c/s Architecture - Request encryption, decryption and test
- Buuctf misc grab from the doll
- Win10 build webservice
- Actual target shooting - skillfully use SMB to take down the off-line host
- Phonics
- [learn FPGA programming from scratch -42]: Vision - technological evolution of chip design in the "post Moorish era" - 1 - current situation
- PNAs: Geometric renormalization reveals the self similarity of multi-scale human connectome
- C code writing specification
- [pointnet] matlab simulation of 3D point cloud target classification and recognition based on pointnet
猜你喜欢

bjdctf_2020_babystack
![[WUSTCTF2020]alison_ likes_ jojo](/img/a9/dcc6f524772cd0b8781289cbaef63f.png)
[WUSTCTF2020]alison_ likes_ jojo

The first common node of two linked lists_ The entry of the link in the linked list (Sword finger offer)

Description of module data serial number positioning area code positioning refers to GBK code

PIP install XXX on the terminal but no module named XXX on pycharm

What are the dazzling skills of spot gold?

Shader 常用函数

More than 60 million shovel excrement officials, can they hold a spring of domestic staple food?

Maxcompute remote connection, uploading and downloading data files
![[signal recognition] signal modulation classification based on deep learning CNN with matlab code](/img/0b/7475cd4cf2ddce912816ab3c29b914.png)
[signal recognition] signal modulation classification based on deep learning CNN with matlab code
随机推荐
Global and Chinese market of water massage column 2022-2028: Research Report on technology, participants, trends, market size and share
[WUSTCTF2020]爬
Deploy L2TP in VPN (Part 1)
湖北专升本-湖师计科
Shader 常用函数
Quickly set up PgSQL for serverless
[image fusion] image fusion based on pseudo Wigner distribution (PWD) with matlab code
How to select a third-party software testing company? 2022 ranking of domestic software testing institutions
Hubei College Upgraded to undergraduate - Hushi family planning department
Anaconda 中使用 You Get
[learn FPGA programming from scratch -41]: vision chapter - Moore's era and Moore's law and the arrival of the post Moore Era
Global and Chinese market of offshore furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of inline drip irrigation 2022-2028: Research Report on technology, participants, trends, market size and share
[从零开始学习FPGA编程-41]:视野篇 - 摩尔时代与摩尔定律以及后摩尔时代的到来
二分专题训练
[WUSTCTF2020]alison_ likes_ jojo
Global and Chinese market of digital fryer 2022-2028: Research Report on technology, participants, trends, market size and share
只显示两行,超出部分省略号显示
RDD basic knowledge points
New ways to play web security [6] preventing repeated use of graphic verification codes