当前位置:网站首页>Virtual machine virtual disk recovery case tutorial
Virtual machine virtual disk recovery case tutorial
2022-06-24 16:23:00 【North Asia data security and rescue】
This small series shares the memory after a sudden power failure ,ESXi The system is not connected to storage , stay FreeNAS Found in UFS2 There is a problem with the file system , Then use fsck Fixed the file system . here ESXi The system can be connected to storage , But found ESXi The system fails to recognize the original data storage and VMFS file system , format VMFS There was nothing in it , In this case, how can we save the data to the greatest extent ?
Preliminary inspection of equipment
After preliminary inspection by the engineer , The physical storage architecture is in one DELL Server , Use FreeNAS To do it iSCSI, Then use two DELL The server does ESXi5.0 The virtualization system of .
FreeNAS Layer for UFS2 file system , Build a sparse file for the entire storage , Hang to ESXi5.0 System .ESXi There are... In the system 5 Virtual machines , Three of them are the most important . a windows2003 The system virtual machine is the local portal of the company . Use ASP.net and PHP Hybrid framework , Use database for SqlServer2005 and mysql 5.1 . One for FreeBSD System , Ran you Mysql database , For other virtual machines . One for windows2003 The server , Store the newly developed program code of the company .
Analyze faults , How to use available information
Analyze faults , Maximize the use of available information . Begin to peel the cocoon , Application architecture hierarchy :FreeNAS(UFS2 file system –> A large sparse pattern file ) –> ESXi 5.0(VMFS File system layer ) -> Virtual disk of a single virtual machine (windows-NTFS file system /FreeBSD-UFS2 file system ).
How does data recovery work ?
The first step is mirroring FreeNAS layer , Then analyze the entire storage , Just one 900 many GB The large files , file name : iscsidata. adopt UFS2 Binary structure of the file system , Locate the iscsidata Of documents Inode data , It is found that this file has been rebuilt ,inode The amount of data pointed to by the pointer is very small .FreeNAS Layer cannot solve , You can't go to the next step VMFS Layer analysis .
collect UFS2 Important structure of file system :
Block size :16KB
Segment size :2KB
Cylinder group size :188176 KB
UFS2 A data pointer accounts for 8 byte , A block can store 2048 A data pointer . Then a secondary pointer block can store :2048*2048*16KB= 64GB data . A three-level pointer block can store 64GB*2048= 128TB data . If you can find iscsidata The three-level pointer block of the file can solve FreeNAS Layer problem . but iscsidata The file was rebuilt , The process and size are the same as the original , It is estimated that some pointer blocks have been overwritten . original iscsidata Of documents inode And the new iscsidata Of documents inode In one place , Try searching , No other useful inode appear . I have to write a program on site to collect useful pointer blocks , because iscsidata The file is in sparse mode , Collection conditions can only be relaxed , A large number of three-level pointer blocks and two-level pointer blocks are collected . Analyze all three-level pointer blocks collected , It's all invalid , nothing iscsidata The three-level pointer block used by the file , Estimated to be newly built iscsidata The file is overwritten by a new ( new iscsidata The document is being attached to ESXi5.0 There's a VMFS Formatting process , and ESXi5.0 Use GPT Partition ,GPT The partition will write redundancy at the end of the disk GPT Header and partition table information data , This will use iscsidata Third level pointer block of file ).
At present, only the collected secondary pointer blocks can be analyzed , For the pointing data with a large number of secondary pointer blocks DUMP, And then from the data in the disk to the secondary pointer . That's a lot of DUMP The data of .
To analyze VMFS layer :
Reformatted VMFS, And primitive UFS2 The pointer to has been lost , cause VMFS Metafile is basically unavailable , No important reference information , Fortunately, none of the virtual machines have snapshots , Can still recover .
Through a single virtual machine layer (windows(NTFS) and FreeBSD(UFS2) File system structure of the system ), Position up to VMFS layer , Through VMFS Layer positioning to DUMP Out of a single 64GB file , Through multiple combinations , Finally, the virtual disks of these three important virtual machines have been completely restored . Upload the recovered web page data and database data to a newly built system , Pull up application , The data is completely free of problems , This data recovery is successful .
边栏推荐
- Leetcode notes of Google boss | necessary for school recruitment!
- Web page live broadcast on demand RTMP streaming platform easydss newly added virtual live broadcast support dash streaming function
- Transpose convolution learning notes
- Embedded Software Engineer written interview guide arm system and architecture
- Bitwise Operators
- 【Prometheus】2. Overview and deployment
- Introduction to new features of ECMAScript 2019 (ES10)
- C. K-th Not Divisible by n(数学+思维) Codeforces Round #640 (Div. 4)
- Global and Chinese market of insect proof clothing 2022-2028: Research Report on technology, participants, trends, market size and share
- Ui- first lesson
猜你喜欢

Some adventurer hybrid versions with potential safety hazards will be recalled

Cognition and difference of service number, subscription number, applet and enterprise number (enterprise wechat)

There are potential safety hazards Land Rover recalls some hybrid vehicles

B. Terry sequence (thinking + greed) codeforces round 665 (Div. 2)

Applet - use of template

C. Three displays(动态规划)Codeforces Round #485 (Div. 2)

Implement Domain Driven Design - use ABP framework - domain logic & application logic

Nifi from introduction to practice (nanny level tutorial) - environment

Applet wxss

My network relationship with "apifox"
随机推荐
Some experiences of K project: global template highlights
Istio FAQ: sidecar startup sequence
Istio FAQ: failed to resolve after enabling smart DNS
Understanding of deep separable convolution, block convolution, extended convolution, transposed convolution (deconvolution)
[tke] troubleshooting tips for container problems
MySQL Advanced Series: locks - locks in InnoDB
Join in ABAP CDs
Cap: multiple attention mechanism, interesting fine-grained classification scheme | AAAI 2021
Ui- first lesson
One article explains Jackson configuration information in detail
Annual contribution! Tencent cloud middleware product upgrade conference is in hot registration!
#夏日挑战赛# HarmonyOS - 实现带日期效果的待办事项
Fastjson 漏洞利用技巧
转置卷积学习笔记
[tke] modify the cluster corendns service address
【应用推荐】最近大火的Apifox & Apipost 上手体验与选型建议
嵌入式开发基础之线程间通信
Interpretation of swin transformer source code
Memo list: useful commands for ffmpeg command line tools
Pytorch transpose convolution