| 主機參考:VPS測評參考推薦/專注分享VPS服務器優惠信息!若您是商家可以在本站進行投稿,查看詳情!此外我們還提供軟文收錄、PayPal代付、廣告贊助等服務,查看詳情! |
| 我們發布的部分優惠活動文章可能存在時效性,購買時建議在本站搜索商家名稱可查看相關文章充分了解該商家!若非中文頁面可使用Edge瀏覽器同步翻譯!PayPal代付/收錄合作 |
服務器ZFS文件系統故障后如何恢復數據?很多人都不太了解,今天小編為了讓大家更加了解數據恢復的過程,所以給大家總結了以下內容,一起往下看吧。
How to recover data after server ZFS file system failure? Many people don't know much about it. Today, in order to let you know more about the process of data recovery, Xiaobian summarized the following contents for you, let's look down.
一、服務器數據恢復環境部署介紹:
1、 Introduction to server data recovery environment deployment:
今天為大家介紹的數據恢復成功案例服務器型號為:ORACLE-SUN-ZFS7320。服務器內涉及硬盤32塊,服務器操作采用的是Windows操作系統。
The server model of the successful data recovery case introduced to you today is oracle-sun-zfs7320. 32 hard disks are involved in the server, and windows operating system is used for server operation.
二、服務器數據恢復故障情況
2、 Server data recovery failure
服務器在正常運行的時候突然崩潰,沒有斷電、進水、異常操作、機房不穩定等外部因素。服務器管理員對設備進行重啟后發現無法進入系統,需要對服務器內的數據進行恢復。
When the server is in normal operation, it suddenly collapses without external factors such as power failure, water inflow, abnormal operation and instability of the computer room. After the server administrator restarts the device, it is found that the device cannot enter the system, and the data in the server needs to be recovered.
三、分析服務器磁盤底層數據
3、 Analyze server disk underlying data
服務器管理員對所有硬盤進行扇區級鏡像后將鏡像文件送到數據恢復中心進行數據恢復。服務器數據恢復工程師對客戶的故障服務器進行底層數據分析得到如下信息:故障服務器采用zfs文件系統;所有磁盤被分為4個組,每組8塊硬盤;熱備盤全部啟用。
The server administrator will send the mirror files to the data recovery center for data recovery after sector level mirror of all hard disks. The server data recovery engineer analyzes the underlying data of the client's fault server and obtains the following information: the fault server adopts ZFS file system; all disks are divided into four groups, each group has eight hard disks; all hot spare disks are enabled.
四、服務器故障情況分析
4、 Server failure analysis
在服務器ZFS文件系統中,池被稱為ZPOOL。ZPOOL的子設備可以有很多種類,包括塊設備、文件、磁盤等等,在本案例中所采用的是其中的一種------三組RAIDZ作為子設備。經過分析發現,三組RAIDZ內有兩組分別啟用熱備盤個數為1和3。在啟用熱備盤后,第一組內仍出現一塊離線盤,第二組內則出現兩塊。以此進行故障現場模擬:三組RAIDZ內第一二組分別出現離線盤,熱備盤及時進行替換;熱備盤無冗余狀態下第一組出現一塊離線盤,第二組出現兩塊離線盤,ZPOOL進入高負荷狀態(每次讀取數據都需要進行校驗得到正確數據);第二組內出現第三塊離線盤,RAIDZ崩潰、ZPOOL下線、服務器崩潰。
In the server ZFS file system, the pool is called zpool. Zpool can have many kinds of sub devices, including block devices, files, disks, etc. in this case, three groups of raidz are used as sub devices. After analysis, it is found that there are two groups of raidz that enable the number of hot spares to be 1 and 3 respectively. After the hot spare is enabled, there is still one offline disk in the first group and two offline disks in the second group. In this way, the fault field simulation is carried out: the first and second groups of raidz have offline disks respectively, and the hot spare disks are replaced in time; when the hot spare disks have no redundancy, the first group has one offline disk, the second group has two offline disks, and zpool enters the high load state (each time reading data needs to be verified to get the correct data); the second group has the third offline disk, and raidz crashes , zpool offline, server crash.
五、重組ZPOOL,追蹤數據入口
5、 Reorganize zpool, track data entry
ZFS管理的存儲池與常規存儲不同,所有磁盤都由ZFS進行管理。常規RAID在存儲數據時,只按照特定的規則組建池,不關心文件在子設備上的位置。而ZFS在數據存儲時會為每次寫入的數據分配適當大小的空間,并計算得到指向子設備的數據指針。這種特性使得RAIDZ缺盤時無法直接進行校驗得到數據,必須將整個ZPOOL作為一個整體進行解析。手工截取事務塊數據,編寫程序獲取最大事務號入口:獲取文件系統入口獲取到文件系統入口后,編寫數據指針解析程序進行地址解析:解析數據指針獲取到文件系統入口點在各磁盤分布情況后,開始手工截取并分析文件系統內部結構,入口分布所在的磁盤組無缺失盤,可直接提取信息。根據ZFS文件系統的數據存儲結構順利找到客戶映射的LUN名稱,進而找到其節點。
The storage pool managed by ZFS is different from conventional storage, and all disks are managed by ZFS. When a regular raid stores data, it only builds a pool according to specific rules, and does not care about the location of files on the sub devices. When ZFS stores data, it allocates a proper amount of space for each write and calculates the data pointer to the sub device. This feature makes it impossible to check the data directly when raidz is short of disk, so the whole zpool must be analyzed as a whole. Manually intercept the transaction block data, and write a program to obtain the maximum transaction number entry: after obtaining the file system entry and obtaining the file system entry, write a data pointer resolver for address resolution: after parsing the data pointer to obtain the file system entry point in each disk distribution, start to manually intercept and analyze the internal structure of the file system, and the disk group where the entry distribution is located is intact Information can be extracted directly if the disk is lost. According to the data storage structure of ZFS file system, find the Lun name mapped by the customer and then find its node.
六、編寫數據提取程序并運行
6、 Write data extraction program and run it
經過仔細分析,發現在此存儲中的ZFS版本與開源版本有較大差別,無法使用公司原先開發的解析程序進行解析,所以重新編寫了數據提取程序。提取數據程序由于磁盤組內缺盤個數較多,每個IO流都需要通過校驗得到,提取進度極為緩慢。與客戶溝通后得知,此ZVOL卷映射到XenServer作為存儲設備,客戶所需的文件在其中一個大小約為2T的vhd內。提取ZVOL卷頭部信息,按照XenStore卷存儲結構進行分析,發現2T vhd在整個卷的尾部,計算得到其起始位置后從此位置開始提取數據。
After careful analysis, it is found that the ZFS version in this storage is quite different from the open source version, so it can't be parsed by the original resolver developed by the company, so the data extraction program is rewritten. Due to the large number of missing disks in the disk group, each IO stream needs to be verified, and the extraction progress is very slow. After communicating with the customer, we know that this zvol volume is mapped to XenServer as a storage device, and the file required by the customer is in one of the VHD with a size of about 2T. Extract the head information of zvol volume and analyze it according to the xenstore volume storage structure. It is found that 2T VHD is at the end of the whole volume. After calculating its starting position, extract the data from this position.
七、驗證數據完整性,服務器數據恢復成功
7、 Verify the data integrity and recover the server data successfully
Vhd提取完畢后,對其內部的壓縮包及圖片、視頻等文件進行驗證,均可正常打開。聯系客戶驗證數據,確定文件數量與系統自動記錄的文件個數一致。驗證文件可用性,文件全部可正常打開,服務器數據恢復成功。
After VHD extraction, the internal compressed package, pictures, videos and other files are verified and can be opened normally. Contact the customer to verify the data and make sure that the number of files is consistent with the number of files automatically recorded by the system. Verify the availability of the file. All the files can be opened normally. The data of the server is recovered successfully.
看完上訴內容,你們對服務器ZFS文件系統故障后如何恢復數據大概了解了嗎?如果想了解更多,歡迎關注主機參考行業資訊頻道哦!
After reading the contents of the appeal, do you have a general understanding of how to recover the data after the server ZFS file system fails? If you want to learn more, please pay attention to the host reference industry information channel!
主機參考,作為業內資深的專業云計算服務提供商、云安全服務提供商,致力于為廣大互聯網企業用戶和傳統行業的企業用戶提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器”等云主機租用服務以及企業上云的綜合解決方案,具有“安全穩定、簡單易用、服務可用性高、性價比高”等特點與優勢,專為企業上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。
Host reference, as a senior professional cloud computing service provider and cloud security service provider in the industry, is committed to providing "cloud server, bare metal server, high defense server, Hong Kong server, US server" and other cloud host rental services as well as integrated solutions for Enterprise Cloud access for Internet enterprise users and traditional industry enterprise users, with "security and stability" Features and advantages such as fixed, simple and easy to use, high service availability and high cost performance "are specially designed for enterprises to build customized cloud applications, which can meet the needs of users' rich and diversified application scenarios.
--------------------------------------------------------------
主機參考,收集國內外VPS,VPS測評,主機測評,云服務器,虛擬主機,獨立服務器,國內外服務器,高性價比建站主機相關優惠信息@m.k2270.com
詳細介紹和測評國外VPS主機,云服務器,國外服務器,國外主機的相關優惠信息,商家背景,網絡帶寬等等,也是目前國內最好的主機云服務器VPS參考測評資訊優惠信息分享平臺
這幾篇文章你可能也喜歡:
- ACEBGP:美國雙ISP殼體IP VPS高速AS9929網絡解鎖流和國際應用
- RAKSMART星期六會員日特別優惠:獨立服務器在第一個月低至24.5美元,云服務器在第一個月折扣20%
- HOSTDARE折扣:日本享受30%的VPS,在Softbank享受75%的折扣,CN2 GIA+AS9929+CMIN2 VPS享受20%的折扣,每年付款的折扣為20%,折扣為18美元!
- kuroit全球VPS/VDS有限時間閃存銷售:3美元,4G內存 +高防御,多臺計算機室(全球VPS論壇)
- RACKNERD APRIS交易進來:KVM VPS年度付款僅為$ 10.28,無限的美國交通服務器每月僅$ 59
本文由主機參考刊發,轉載請注明:服務器ZFS文件系統故障后如何恢復數據 http://m.k2270.com/14141.html
主機參考

















評論前必須登錄!
注冊