Application Research of LVM Snapshot under the Environment of Linux

Author
PengXingHong
Advisor
LiYi
School
University of Electronic Science and Technology
Major
Computer System Architecture
Classification
TP316.81
Degree
Master's thesis
Year
2012
Downloads
30
Citations
0

Request the full text

Abstract

With the development of information technology, the base of information-data hasincreasingly become the core of an enterprise. Loss of data will cause a fatal strike tothe enterprise. Data security is particularly important for an enterprise. The mosteffective means to prevent data loss is data backup. The backup data must be ensured itsconsistency. During the backup, the original data can’t be changed. Otherwise, thebackup data are almost no sense. In order to ensuring the consistency of backup data,the general way is to set data to be read-only, and then back up the data, this way willseriously affect the company’s business. Using Linux snapshot technology can get aconsistent backup data, within a very short time, which almost does not affect the upperlayer application. Linux snapshot technology tend to be designed as one original volumecorresponds to one snapshot volume, when need multiple snapshots, each snapshotvolume will be dealt independently. In this way, before writing date to the originalvolume, it need to update the data blocks in some or even all of the correspondingsnapshot volumes, which will increase the storage space consumption, and lower writeperformance of the original volume.Based on the Linux source code, to overcome the disadvantage of Linux snapshotthat snapshot volume storage efficiency is low and write performance of originalvolume is poor in application of multi snapshot volumes, I have designed and realizedthe same-origin snapshot iteration storage, which utilizes the correlation of snapshotvolume data, re-organizes storage structure, reduces the storage space consumption ofthe snapshot volume and dramatically improves the write performance of the originalvolume. However, the improved algorithm increased the correlation between thesnapshot volumes, when a snapshot volume is failure, associated with the snapshotvolume is also invalid, which will reduce the security of data. For the problem, I designand realize the automatic alarm function which will alarm when snapshot volumecapacity is low, as well as arrangements the system running on RAID5. The formerdesign, the capacity of the snapshot volume below a threshold will alarm to alert theadministrator using the LVM expansion capabilities command to expand the capacity of the snapshot volume, which is an effective way to avoid the snapshot volume spacedepletion and which will lead the snapshot volume invalid. The RAID5improves theperformance of read and write and, more importantly, provides a tolerance functionwhich can recover data in the event of a physical failure of a disk. Both of them caneffectively make up the problems of security reduce which caused by the storagemethod of the improved snapshot volumes.Using a detailed test program to test the entire system, the test results show that thespeed of disk I/O has increased and the system has a function of fault-tolerant. Whencreating more than one snapshot volumes on one original volume, it can reduce thestorage space consumption and improve the performance of writing original volume. Inextreme cases, when creating5snapshot volumes on one original volume, writeperformance of the original volume can be increased to2.59times. When the capacityof the snapshot volume is low, the automatic alarm function can remind theadministrator to expand capacity of the snapshot volume, avoid the snapshot volumestorage space is exhausted which will lead snapshot failed.

Table of contents

Summary 5-6 ABSTRACT 6-10 first chapter 10-14 1.1 snapshot application background 10 - Research status and development trend of 11 1.2 logical Volume Manager snapshot work and structure 11-12 1.3 of this paper 12-13 1.4 Summary 13-14 The second chapter describes the relevant background knowledge 14-29 2.1 LVM technical presentations 14-20 2.1.1 LVM basic principles 14 2.1.2 LVM mapping framework 14-18 2.1.3 logical operation flow 18-19 2.1.4 LVM and comparison of traditional disk management 19-20 2.2 snapshot technology introduced 20-25 2.2.1 snapshot technology introduced 20-21 2.2 Category .2 snapshot technology 21-23 2.2.3 LVM snapshot technology 23-25 ?? 2.3 RAID5 technology introduced 25-27 2.3.1 RAID Fundamentals 25 2.3.2 RAID main function 25-26 defined 2.3.3 RAID5 of 26-27 2.4 Summary 27-29 Chapter III Linux snapshot technical analysis 29-42 3.1 Linux snapshots main data structure 29-33 3.1.1 The main data structure in memory 29-32 3.1.2 metadata stored on disk structure 32-33 3.2 key source analysis 33 - 39 3.2.1 remap the original volume key source analysis 33-35 3.2.2 snapshot volume remap the key source analysis 35-37 3.2.3 establish the mapping between key source analysis 37-39 3.3 to read and write data mapping process 39-41 3.3.1 read the original volume flow 39-40 3.3.2 write snapshot volume flow 40-41 3.4 Summary 41-42 iteration of the fourth chapter of homologous snapshot storage design and implementation 42-65 4.1 design 42-50 4.1.1 design ideas 42-46 4.1.2 design feasibility discussions 46-48 4.1.3 overall design 48-50 4.2 to achieve 50-64 4.2.1 metadata module implementations 50-51 4.2.2 original volume write modules to achieve 51-53 4.2.3 snapshot volume to achieve read module 53-54 4.2.4 snapshot volume to write modules to achieve achieve 54-60 4.2.5 snapshot volume to delete module low 60-62 4.2.6 snapshot volume capacity automatic alarm module implementations 62-64 4.3 Summary 64-65 Chapter testing and analysis 65-74 5.1 test platform 65 - 66 nbsp 5.1.1 test environment ; 65-66 5.1.2 testing tools 66 5.2 original volume reading and writing performance test 66-69 5.2.1 test Procedure 66-67 5.2.2 test Results 67-68 5.2.3 analysis of test results 68-69 <br / > 5.3 snapshot volumes read and write performance test 69-71 5.3.1 test Procedure 69 5.3.2 test Results 69-70 5.3.3 analysis of test results 70-71 5.4 other functional tests 71-72 5.4.1 snapshot volumes delete function test 71 5.4 .2 snapshot volume capacity is low alarm function test 71-72 5.4.3 RAID5 disk fault tolerance test 72 5.5 Summary 72-74 Chapter VI summary and Outlook 74-75 Thanks 75-76 References made ??during 76-78 attack Shuo research 78-79

Related dissertations

  1. Research and Implementation of Remote Data Disaster Tolerance System on Linux
    SuGuanQun ·Southwest Jiaotong University ·2012 ·Master's thesis
  2. Research of the gPXE Based Intelligent Diskless System Management Technology
  3. Design and Implementation of a Snapshot Storage System Based on a Redirection Framework
  4. Research of320×256CMOS Signal Readout Circuits Technology for IRFPA
  5. Design and Implemention of Multifunctional Retrieval Surrogate Based on Linux
  6. The Media Shared File System Optimization Design
  7. Guarantee Company’s Infrastructure Virtualization Design&Implementation
    ZhuLiXiang ·Shanghai Jiaotong University ·2012 ·Master's thesis
  8. Design and Implementation of a Network-based Continuous Data Protection System
  9. Snapshot and Image Storage Optimization for Cloud Computing Based on Copy-on-Write
    YangTongKai ·Zhejiang University ·2012 ·Master's thesis
  10. The Design of Snapshot and CDP Based on Storage Virtualization
    ZhouZuo ·Hunan University ·2011 ·Master's thesis
  11. A Research on Distributed Image Storage for Desktop Virtualization
  12. The Research of Intelligent Solid-state Flashcache Network Storage System Based on IP-SAN
    DingWen ·Nanjing Forestry University ·2012 ·Master's thesis
  13. Camera Link bus and multi CCD data acquisition and storage technology based on
  14. Yunnan Han Population the Y-SNP Genetic Polymorphism of Y Chromosome Phylogenetic Tree and Forensic Applications
    XuYan ·Kunming Medical University ·2013 ·Master's thesis
  15. A SNaPshot Assay for Genotyping20X-SNOs and Hebei Han Population Genetic Investigation
    WangZuo ·Hebei Medical University ·2012 ·Master's thesis
  16. Study of Traffic Radar Speed Measurement and Snapshot System
    YuTing ·Tianjin University ·2012 ·Master's thesis
  17. Research on Multiple Track Snapshot Camera System
    ZhangFan ·China Jiliang University ·2012 ·Master's thesis
  18. Research on the Organizing Strategy and Some Key Technologies of a Self-adaptive Mass Storage System
    ZhaoZhen ·Huazhong University of Science and Technology ·2006 ·Doctoral dissertation
  19. Research on Data Organize Structure of Evolving Storage Systems
  20. The Construction and Application of A Multiplex Typing System with 44 SNP Loci
    LouChunGuang ·Hebei Medical University ·2010 ·Doctoral dissertation