Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of data recovery in linux Server

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "the method of linux server data recovery". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

[reason for server data recovery]

There are many cases of server data loss, and it is usually impossible to identify the causes of server data loss. The common reasons for loss are: server hard disk failure, administrator or server automatically carry out fsck operation, which may cause more serious data loss or increase the difficulty of server data recovery. The mkfs operation is performed after the server data is lost, and if the operation is not completed, it is easy to cause part of the block group to be all zero. Or the administrator attempts to recover the data after the server data is lost, or the improper operation of the data recovery company may cause further damage to the data in the server and increase the difficulty of data recovery.

[correct method for server data recovery]

First of all, it is necessary to make a full mirror backup of all the data of the failed server, and data recovery must not be analyzed and restored in the original disk (this is the case for all storage media, including the server). Analyze the image file to determine the disk partition composition of the server, the remaining space allocation, what the file system type is, and whether the super block state of the root partition is normal. According to the super block status, check whether the description of the first block group is normal and whether the status of the node area is 0.

Since the description status of the first block group has been queried, and then the other block groups are analyzed in turn according to the description table of the first block group, the query rules. For example, in the sequential server data recovery, we find that the first 26 block groups of the user server are all 0, and the source data areas of the last part of the block group are all 0, but the description table, node, BITMAP and other information of the middle block group area are all normal. There is an obvious phenomenon of user data in the data area in front of and behind the block group.

Try to find the root directory of the server and use this as a clue to restore the root node area of the server, combined with the root directory records to generate a file system tree, (server data recovery has already seen part of the data) check whether the structure of the file system is normal, pay attention to whether the node of the file or folder is 0, trace the file node to find the node area is in the location of the file system. If a file or folder with node area 0 is found in the file system structure check, it is usually difficult to repair and export this part of the data.

[server data recovery recommendations]

If the data inside the server is very important, try to use the raid array of multiple hard drives as the storage environment, and avoid using a single hard disk to build the storage environment; the data in the server must be backed up regularly, and the backup package should not be stored in the same storage body as far as possible, and if the conditions really do not allow it, avoid storing it in a unified partition. After the failure of the server disk, the backup work should be done as soon as possible to avoid repeated attempts by non-professionals to repair; when choosing a data recovery company, try to choose a professional company to operate to avoid intentional or unintentional secondary damage.

This is the end of the content of "the method of linux server data recovery". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report