In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is to share with you the content of the sample analysis of data recovery of kvm virtual machines under linux system. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. Description of server data recovery
The server that needs data recovery uses Linux operating system and EXT4 file system. Three KVM virtual machines on the server were deleted due to the intern's error. Each virtual machine on the server contains a disk file in qcow2 format and a disk file in raw format with a size of about 1.2T. It is mainly necessary to restore the disk file in raw format.
II. Restore the server virtual machine process
1. Analyze the EXT4 file system in the server and locate the deleted virtual machine disk file node.
2. Get the residual index information of disk files.
3. Check the correctness of the residual index information and repair the indexes that are not seriously damaged.
The picture shows the obtained index and other information:
Figure 1
4. After the repair, the remaining indexes in the server are parsed, and the virtual disk files are extracted from the volume where the virtual machine resides.
5. According to the extraction of virtual disk files, get the free space in the volume that is not indexed.
6. Check the correctness and integrity of the extracted disk files.
7. Get valid information from free space and try to repair virtual disk files (such as nodes, directory items, database pages, etc.).
The picture shows the extracted free space:
Figure 2
III. Results of data recovery
1. Due to the loss of the index, the extracted virtual disk file is not complete. For the database server, if the database file is lost, the database page can be obtained from the free space to repair the database file. However, as part of the page area is covered and occupied, you can only fill as many pages as possible.
2. In the case of the loss of nodes and directory items in the server where the program code is stored, if the node or directory items remain, you can try to make up the nodes and directory items. However, it is found that the nodes and directory items of some files are lost at the same time, which cannot be made up according to the characteristics associated with the nodes and directory items. In addition, according to the characteristics of the program code file, it does not have a certain regularity, if its data area is lost, it can not be made up.
The figure shows the recovered partial directory structure:
IV. Data verification
After trying to patch the virtual disk file and the database file in it as much as possible, the data is verified by the customer. 90% of the server data is recovered, and the data recovery is successful.
Thank you for reading! This is the end of this article on "sample analysis of kvm virtual machine data recovery under linux system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.